Open UteAkaKute opened 3 months ago
Nothing to do with the TSDZ2 firmware.
Things to try:
@dzid26 Wow thanks for the quick reply!
Bike charger is not connected while trying to flash
Turning off the ebike battery and unpowering the USB does not make a difference, I have also tried this numerous times when power cycling
switching to 3.3V also does not make a difference, I have tried this before.
I was able to flash optionbyte This also did not change things. I did see this optionbyte was different from the option byte I backed up:
S104480000B3 S104480100B2 S10448032888 S104480500AE S104480700AC S104480900AA S104480b00A8 S104480d00A6 S104487e0035 S9030000FC
Also: I get the same STVP error message first two tikes trying to flash like I did when reading memory in STVP.
Quick note, I measured the voltage across GND and SWIM which is 5V, which indicates I should be able to flash (if i understood correctly)
Turning off the ebike battery and unpowering the USB does not make a difference, I have also tried this numerous times when power cycling
Looking at my old note https://github.com/vdudouyt/stm8flash/issues/123#issuecomment-2053753930 I have one thing to add. - When you power down the controller, wait 5minutes for the capacitors to discharge.
Other than that, it could be simply broken contact.
I have tried this waiting for capacitor discharge a number of times now, also to no avail. I remember now I might have programmed optionbyte using STM8S105x6 instead of STM8S105x4 which I was supposed to do I think. Now for some reason I can't read or program at all using STVP. The bike itself does still work. I'm ordering a new and better quality STLink somewhere to see if the connection issue might be due to a bad stlink. I read this here: https://www.pedelecs.co.uk/forum/threads/tsdz2-connection-error-with-st-linkv2.41873/
Wouldnt a broken contact be weird considering I was able to read and program?
Hey everyone!
I'm trying to flash using a 36V TSDZ2 with XH18 display. The program seems to compile just fine but I am not able to get it to flash.
I have checked the SWIM connections which seem to be just fine. I doubt this is actually a hardware issue since I have been able to back up the stock firmware using STVP by reading the program memory, data memory, and option byte. STVP sometimes also gives this error, but I am able to read it after one more try.
I have been power cycling while pulling the RST pin low on my ST-LINK V2 using the GND pin. I have updated the firmware on my STLINK v2 using STM32CubeProgrammer I have checked the main.hex (which seemed fine and not corrupted) and I have checked data_empty.hex, which was not in .../bin. ? I have checked the STlink connections numerous times.
Does anyone know what I can do to solve this flashing issue?