Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Probabilmente stai usando un sistema a 32 bit.
Prova a sostituire i file nella cartella /tools/cygwin/bin con quelli contenuti nel file bin_32.zip.
yes 32. bit i have tried that several times no good.i have 32 bit sdcc could that be problem
i am trying on desktop pc which is x64.
thanks for reply
 
Thanks. Typically I cant get ST.com to send me a verification email !

FFS! Why is this stuff so janky.

Edit: got the emails 12 hrs later...

Got the firmware updated and tried again:

Obviously it still doesn't work, but new error message.

I've checked for continuity on all pins and its good. I've tried with 5v and 3.3v. I've tried with 2 different STlink V2's, the cables are as short as physically possible, the software is all installed exactly as required. I've tried with x4 and x6 in STVP

Error : Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.

If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:
Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.

Error : < PROGRAM MEMORY reading failed.
Error : < Operation aborted.


I'm about ready to chuck this motor in the bin and pick up something else.
 
Are you sure that you don't have the newer controller version (sold only by enerprof as far as I know)?
Don't know - bought from PSWPower in 2021

All drivers updated for st link.

I'm going to try a hardware calibration of the torque sensor and leave it at that.

I don't trust the firmware install not to brick it even if it does ever connect.
 
bought from PSWPower in 2021
This should normally be the old flashable controller.

There were reports about ST-Link V2 adapters with wrong labeled housings. You can check if the labeling on the case matches the labeling on the PCB.
Otherwise I have no more idea.

My normal procedure:
1. disconnect the battery from the motor
2. connect SWIM, GND and 5V to the connector that leads to the motor.
3. start the flashing
 
I have been sucessfully using java configurator to flash my TSDZ's for a file now and been successful until now. For some reason I get error 2 when compiling. I though maybe ST-Link failed but connects to the controller OK using ST Progammer . I have tried of 3 x different Win10 Pro laptops. I have an earlier version - V20.1C from 20/12/2020 on my desktop PC which still works (23) BUT none of the latest version now work but they did. I consider myself relativley IT literate but this has me stuck. Have tried un-installing and reinstalling JAVA - deleted old files in case one is corrupt, re downlaoded latest version, can't get past compile error. What have I done to change things?
 

Attachments

  • java config build error.PNG
    java config build error.PNG
    27.3 KB · Views: 16
  • java config settings.PNG
    java config settings.PNG
    73.8 KB · Views: 14
I bought a speed sensor to make a programming cable with it. However, after I just cut the sensor off of it, I see it only has 3 wires: red, black and white.
I'm guessing that I can't program with this?

Should I get an extension cable instead of a speed sensor? Or does anyone know where I can buy either a speed sensor or extension cable with the right wires? (I am from the Netherlands, so preferably options that are shippable here. Got this one from pswpower.)
 
...
Should I get an extension cable instead of a speed sensor? ....
You need a complete wired connector, which isn't the case with a speedsensorcable. I don't know if the extension cable is completely wired
But it is easy to connect the STlink wire sockets directly if you put some heatshrink tubes over these sockets.
 
Hello,

I successfully flashed the firmware via STVP. However in the Java Configurator the throttle is greyed out and my controller (vlcd5) has a hand throttle.
How would I enable it?

Cheers, thanks for the work you've put to this, feels totally different
 
hey - did anyone succedeed to use dz41 with factory tsdz2 or OSF ? without display FW change?
 
Got the firmware updated and tried again:

Obviously it still doesn't work, but new error message.

I've checked for continuity on all pins and its good. I've tried with 5v and 3.3v. I've tried with 2 different STlink V2's, the cables are as short as physically possible, the software is all installed exactly as required. I've tried with x4 and x6 in STVP

Error : Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.

If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider:
Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.

Error : < PROGRAM MEMORY reading failed.
Error : < Operation aborted.


I'm about ready to chuck this motor in the bin and pick up something else.
Same problem here, I have three different clones and an original st link.
Tried updating firmware and drivers.
I had the custom firmware on the tsdz2.
Month back tried to flash again and got the controller stuck, shows 00 on the display, now pedaling manually and waiting on a new controller.
Really loved the custom firmware but not sure if I dare try flash on the new controller.

Using laptop with 64bit win 10.
 

Attachments

  • 20230427_132739.jpg
    20230427_132739.jpg
    2.4 MB · Views: 16
I have similar problem, i can not programming my 2 controleres now. It started when i was sucsessfully programming but if it was ended my laptop power off. Now it is blocked with the same pop up window. I tryed programming in another tsdz2 with the same results. But fortunately I have an wery old controller with another separate programmig cable and it is programming without any problem. I tryed two ST links with the same results. ST links are OK and programmer too. I am not sure if the bad wired programming wires can demage something in the controller.
 
If the wiring is correct, I don't think you will damage the controller.
If st-link has already been used successfully on the same controller, two assumptions can be made:
1 - software or driver problem on the PC.
2 - Flashing attempt with display on, or display on with PC connected. This is to be avoided, I have been reporting problems with VLCD5, it will damage the display.
 
Hi, can anybody help how to connect st link to tsdz2b, its only 3 pin speed sensor, so I just want to know the easiest way to flash this motor with originsl vcld5. Is still possible with this 3pin speed conector(and how to connect to st link) or I havevto use cabel to vcld5 to flash it?? Thanks for any help
several pictures
you have to try , i was able to connect with battery on and display on
 
Does somebody know if or how are the input circuit guarded? Does somebody have a schematic of the input circuit for programming?
 
Can you check it out?

Temporarily set:
"Data 1" to 13
"Time to displayed data 1" to 250 (25 sec)
"Number of data auto displayed" to 1
"Auto display data with lights on" enabled
Compile & Flash

Then do the following:
Turn on the display, the level is 1-ECO.
Turn on the lights, E02 is displayed.
Change level to 0-OFF, "ADC throttle value min" is displayed, it should be 4.7
Take the throttle to the max, "ADC throttle value max" is displayed, it should be 17.6
Let me know if it's OK.
These instructions to test the throttle don't work with the latest update anymore? I have TSDZ2-Smart-EBike-1-20.1C.2-update-2.
 
Back
Top