Thanks for the reply! Update: I wired it nicely with an external JST connector so I don't have to open it up each time I flash. Also, I think your instructions may be backward (at least they were for me)
The connections to STLinkV2 clone:
• pin1: do not connect
• pin2: connect to STLinkV2 RST pin
• pin3: connect to STLinkV2 GND pin
• pin4: connect to STLinkV2 SWIM pin
PIN1 (not connected)
(in the same order from left to right as the KT-S controllers and it worked for me.
Well, I do indeed need to flash the option bytes now to remove write protection.
I'm going to try factory defaults first, as I don't know how to only modify certain values (and I don't understand the Alternate Function Remapping that your values seems to do. I will report back!
I'll be doing
echo "00 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > option_bytes_pwm_n_channels_enabled.bin
echo "00 00 ff 20 df 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > option_bytes_pwm_n_channels_enabled.bin
controller datasheet here:
https://www.mouser.com/datasheet/2/389/ ... 956362.pdf
there are more bytes to be written, but I'm not sure how to skip bytes to actually "factory reset" it.
UPDATE: I flashed the option bytes of the "factory reset (though I know I'm missing the last values, but then was unable to use the keys to power up the display. I wired in PIN1 into 5v from my STLinkV2 and was able to flash the lightly recommended OPT bytes.
I then flashed the LCD3_TSDZ2_firmware_v1.bin and when I power it up, it everything is just "ON" and no buttons respond.
Any suggestions on how to proceed? Perhaps I need to flash new option bytes?