TSDZ2B programing fail and how to solve it

auber38

1 µW
Joined
Jun 16, 2020
Messages
3
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 :

and

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
 
Small add-on :
I fused the motor without having the battery connected and with the STM link V2 configured on 5v.
 
Back
Top