Need help converting stock TSDZ2 from 48V to 52V

skestans

100 W
Joined
Jul 11, 2019
Messages
208
Location
Switzerland
I have a tsdz2 running the stock firmware along with a 850c display.

I can’t successfully flash the display to the open source firmware yet but I do need to use my bicycle until I figure it out.

I charged my 52V battery close to full, and now the voltage is too high for a 48V battery and the 48V motor goes into failsafe mode where it won’t provide any assistance. If I provide a lower voltage (51V) with a generator instead, everything works fine.

I tried flashing the 52V version of the firmware following the eco-ebike instructions but it won’t work using the windows software. The ST software says it can’t get a connection. I’m using three wires: +5V, GND, and SWIM.

If I use the stm8flash utility in Linux, I can dump the firmware and write to the motor. But if I try to flash the 52V version of the firmware (from eco-ebike), I’m getting an error that it can’t write to addresses below 0x4000:

Code:
 $ sudo ./stm8flash -c stlinkv2 -p stm8s105?6 -w ~/Downloads/52vdatamemory.s19
Determine FLASH area
Due to its file extension (or lack thereof), "/home/user/Downloads/52vdatamemory.s19" is considered as MOTOROLA S-RECORD format!
Address 00004000 is out of range at line 1

How do I flash this image to the motor?

And why won’t the windows software work when the Linux ones does?
 
Hi
Linux fan here cos windows sucks :lol: so I'll try and give a little feedback...
Why are you using a file from 'eco-bike' website?
The latest open source firmware is here methinks:
https://github.com/OpenSource-EBike-firmware/TSDZ2-Smart-EBike/releases/tag/v0.20.0-beta.1
The file you use is an ascii text file with .hex extension........you can open the file with 'notepad' or something similar and look at the contents....
Good luck!
EDIT to say always back up first! Like they say 'Jesus saves'!!!! :wink:
see this wiki page here and instructions at bottom
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Flash-the-firmware-on-TSDZ2
 
frenchie said:
Hi
Linux fan here cos windows sucks :lol: so I'll try and give a little feedback...
Why are you using a file from 'eco-bike' website?
The latest open source firmware is here methinks:
https://github.com/OpenSource-EBike-firmware/TSDZ2-Smart-EBike/releases/tag/v0.20.0-beta.1
The file you use is an ascii text file with .hex extension........you can open the file with 'notepad' or something similar and look at the contents....
Good luck!
EDIT to say always back up first! Like they say 'Jesus saves'!!!! :wink:
see this wiki page here and instructions at bottom
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Flash-the-firmware-on-TSDZ2

I haven’t figured out how to flash my display yet but I need to use my 52V battery. So while I figure out how to flash the display, I want to keep the original tongsheng firmware but in 52V instead of 48V. I can’t use the open source firmware without also flashing the display.
 
ah yes I see the display is a bit more involved....but this is another example of why windows is sh!te ie that apt burn program :shock: :confused:
it insists on selecting a 'com port'....a com port is a serial port.....I haven't used one of those for about 10 years :roll:
I want to use a 'USB port' cos I'm modern and trendy like that :lol:
Anyway what display do you want to flash?
 
frenchie said:
ah yes I see the display is a bit more involved....but this is another example of why windows is sh!te ie that apt burn program :shock: :confused:
it insists on selecting a 'com port'....a com port is a serial port.....I haven't used one of those for about 10 years :roll:
I want to use a 'USB port' cos I'm modern and trendy like that :lol:
Anyway what display do you want to flash?

It’s a com port because the interface is serial. The usb dongle is translating serial signal to usb because modern machines don’t have a serial port anymore.
 
Back
Top