It is possible to do a bad flash, but a complete brick imho isn't possible.pxl666 said:hey . is it possible to brick tsdz2 with vlcd6 with stlink .......
The STV2link is very sensitive for the wiring. The wires must be as short as possible.pxl666 said:as of now it seems that st-link broke somehow. we tried to read memory from different motor and it failed too . seems like it broke during flash and this broke the process of flashing which resulted in faulty controller . my friend has another st-link so we will try if this one would work . I will report soon hopefully
Elinx said:The STV2link is very sensitive for the wiring. The wires must be as short as possible.pxl666 said:as of now it seems that st-link broke somehow. we tried to read memory from different motor and it failed too . seems like it broke during flash and this broke the process of flashing which resulted in faulty controller . my friend has another st-link so we will try if this one would work . I will report soon hopefully
The best is to use the original wire sockets with some shrinktubes to connect the speedsensor socket of the tsdz2.
You haven't said which error you got when connected
posted error in previous post , motor is not working , display is not showing speed like it has lost connection with controllerElinx said:It is possible to do a bad flash, but a complete brick imho isn't possible.pxl666 said:hey . is it possible to brick tsdz2 with vlcd6 with stlink .......
The firmware consist of 3 files. If one of them is corrupted, you have a bad flash.
Flashing again can solve this for two files with the Java configurator.
The third file (optionbyte) only can flashed manually with STVP.
To get the sequence clear:
Which error you got with flashing?
Did the motor run after flashing?
This error is with the second STlink? The one from your friend?pxl666 said:....
posted error in previous post ...
The 4e wire is connected to the Reset pin, but that isn't used, so isn't needed to connect. You only need 3 wires.pxl666 said:...
is this any difference that i power on the main battery and not the 5v from stlink ? and i use only GND and SWIM but i see other ppl use 4 wires for connection ...?
First you said that your STlink doesn't read another tsdz2, a few post later you say it does fine.pxl666 said:okay . so with all the data provided - it there a chance to unbrick controller somehow ? if stvp can't read it ?
Elinx said:First you said that your STlink doesn't read another tsdz2, a few post later you say it does fine.pxl666 said:okay . so with all the data provided - it there a chance to unbrick controller somehow ? if stvp can't read it ?
imho it looks that something is wrong with connecting several times.
What exactly has happend with the controller you can't know, if you aren't 100% sure about the connections.
One thing you can try first is to use the 3.3V of the STlink instead of the 5V. Sometimes that does work.
If your STM32 really is bricked, the easiest way is to replace the complete controller.
Yes, 3.3V from STlink to Voltage pin together with Gnd and Swimpxl666 said:...
3.3v you mean third wire from stlink and not ebike battery ?
imho flashing is only a connection with the SWIM pin on the STM32, Voltage and GND.pxl666 said:just realized that the display might have gone off during flashing ? Is that possible and would this cause bad flash?
Good to hear everything worked out now.pxl666 said:... i fixed this thing .... do i have to take out battery with this setup ....