Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

This thread discusses a similar problem. First poster found corrosion in the VLDC5 cable. Second poster found it in his battery cradle. Both caused a voltage drop under load that shut down the bike.


If the new motor uses the old VLCD5, the problem could be in its cable or in the unit itself.

The thread also mentions running the system w/o the display. Not sure it wll work, as I've never tried it.
Thanks for the link. I read the article and his problem was slightly different to mine. His screen went off in any power level over 1, but mine goes off at any level.
With my old unit i tried the LCD on a second bike and it worked, so that was not the problem.
With the NEW unit I removed everything from the old install, including cables and LCD. I also tried a second battery from another bike (that works)
So, with the new install if I remove the chain off the chainwheel I can press the 6km function and the motor will turn. As soon as I connect the chain back on the motor will engage and turn off straight away. This is the same problem the old one was having. Batteries tested were both connected directly to motor with XT 60 plugs.
 
Last edited:
I am becoming totaly foolish with the flashing system.
I tried many and many things and every time i get the same thing on the STVP.
when i try the first time i can read
----------------------------
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.
------------------------------------------------
If i try a second time to read data i get the same thing but if i try again a third time i can read data on the memory.
It's always the same thing. I need to attempt 3 times to connect.

When i am connected it's oK and i can save datas.
The problemn is for flashing with the configurator ...
It creates the file correctly but impossible for it to write ... i can read the same thing ...
-----------
Error : Cannot communicate with the device !Check the SWIM cable connection and check
....
------------

What is going wrong ?
Thanks for your help
 
Hello Everybody ! I just arrived here and I have the exact same issue that the previous post.
I manage the flash from the ST Visual but not from the Java configurator... and always get this error:

>>> Loading file ../../bin/main.ihx in PROGRAM MEMORY image in computer
> Filling DATA MEMORY image in computer with Blank Value
> Loading file data_empty.ihx in DATA MEMORY image in computer
> Programming PROGRAM MEMORY
(API) 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.

< < < Programming PROGRAM MEMORY fails

Flashing using STVP failed. Press key to try STM8FLASH tool..
stm8flash -c stlinkv2 -p stm8s105?6 -s eeprom -w data_empty.ihx
Determine EEPROM area
Due to its file extension (or lack thereof), "data_empty.ihx" is considered as INTEL HEX format!
1024 bytes at 0x4000... Tries exceeded
make: *** [clear_eeprom] Error -1
stm8flash -c stlinkv2 -p stm8s105?6 -w ../../bin/main.ihx
Determine FLASH area
Due to its file extension (or lack thereof), "../../bin/main.ihx" is considered as INTEL HEX format!
28085 bytes at 0x8000... Tries exceeded
make: *** [flash] Error -1

Flashing error!!, press key to try again
 
I am becoming totaly foolish with the flashing system.
I tried many and many things and every time i get the same thing on the STVP.
when i try the first time i can read
----------------------------
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.
------------------------------------------------
If i try a second time to read data i get the same thing but if i try again a third time i can read data on the memory.
It's always the same thing. I need to attempt 3 times to connect.

When i am connected it's oK and i can save datas.
The problemn is for flashing with the configurator ...
It creates the file correctly but impossible for it to write ... i can read the same thing ...
-----------
Error : Cannot communicate with the device !Check the SWIM cable connection and check
....
------------

What is going wrong ?
Thanks for your help
Did you manage sonething ? I have same issue...
 
hi, i want to measure torque sensor output from stm8s105
do you know the pin number of torque sensor input pin number on stm8s105?
regards
 
The thread below is more regularly used than this thread

 
Back
Top