Hello,
I just buyed a TSDZ2B motor 250W from aliexpress and I had some struggles to flash the Open Source Firmware (OSF) on it.
I'd like to explain you how did I solved it because I didn't found much forum explaining this and maybe it could help other folks.
1 - What was my problem ?
I was able to cummunicate with the motor like it is done in the tutorials :
empoweredpeople.co.uk
and
github.com
but when to read the memory of the motor with the ST Visual Programmer software I had to click three time to get a reading to work.
Then when I tried to flash the new Firmware I had some errors and the writting was not possible.
2 - What did I tried that didnot solved my issue :
I've reduce the size of my wire to connect to the motor from 10cm down to 2cm but the problem was still the same
I was initially using the cheapest fake STM link V2 from aliexpress and changed it by one I bought on amazon with a genuine STM32 chip in it. It did not solved the issue.
2 - What did solved my issue :
As explained by ddebruin here : Help! - TSDZ2 connection error with ST-LinkV2
I bought this particular STM link V2 from waveshare : STM32 STM8 Programmers & Debuggers ST-LINK/V2 (mini)
It juste worked firs try like a charm !
Thank you so much to ddebruin and I hope this post could help other fellows !
I'm exited to mount the motor on my bike and enjoy ridin open source !
Cheers
I just buyed a TSDZ2B motor 250W from aliexpress and I had some struggles to flash the Open Source Firmware (OSF) on it.
I'd like to explain you how did I solved it because I didn't found much forum explaining this and maybe it could help other folks.
1 - What was my problem ?
I was able to cummunicate with the motor like it is done in the tutorials :

TongSheng TSDZ2 what Firmware options are there?
If you find this article useful and you would like to support the work we do as an All Ability Cycling charity please consider sending us a small domain via our PayPal Charity fund page. UPDATED MA…

Home
TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays - emmebrusa/TSDZ2-Smart-EBike-1
but when to read the memory of the motor with the ST Visual Programmer software I had to click three time to get a reading to work.
Then when I tried to flash the new Firmware I had some errors and the writting was not possible.
2 - What did I tried that didnot solved my issue :
I've reduce the size of my wire to connect to the motor from 10cm down to 2cm but the problem was still the same
I was initially using the cheapest fake STM link V2 from aliexpress and changed it by one I bought on amazon with a genuine STM32 chip in it. It did not solved the issue.
2 - What did solved my issue :
As explained by ddebruin here : Help! - TSDZ2 connection error with ST-LinkV2
I bought this particular STM link V2 from waveshare : STM32 STM8 Programmers & Debuggers ST-LINK/V2 (mini)
It juste worked firs try like a charm !
Thank you so much to ddebruin and I hope this post could help other fellows !
I'm exited to mount the motor on my bike and enjoy ridin open source !
Cheers