TSDZ open source firmware upgrade help

Joined
Jul 20, 2019
Messages
6
Location
Toronto
I am new to the ebike world. Purchased a TSDZ kit through Luna Cycle in January and installed it on my wife,s bike so we could travel together. Common story I'm sure.
Not happy with the performance, (it would not perform consistently), I began the research and found casainho's contribution.
(I wish I had found Electrify Bike Company (EBC) first!)
I purchased the the KT-LCD3 and have flashed both it and the motor. I also installed the hack for a temperature sensor.
I used the wiring harness provided (5 wire) with the KT-LCD3and wired it directly into the board in the TSDZ.
I've followed every step going over it numerous times and also confirming the software flashing using the latest version, v0.19.0 but am coming up with only 8's all over the LCD.
Any hints?
 
This could indicate that either the KT-LCD3 or the motor itself isn't booting up, and I'm not really certain about what's the best to troubleshoot.
First of all, did you do a full power-cycle, e.g. disconnected the battery, of the system after flashing ?

Secondly the STM8 chips have three areas, Flash/Program, EEPROM, and Option bytes. I noticed that mine is really picky on the option bytes, and won't boot if they're set wrongly. Did you try to reset those to your backup ?
 
We uploaded the original Option Byte data that we saved from the beginning. The only value that was different was AFR3 D0 was set to TIM3_CH2 was set to TIM1_BKIN originally.
The 2 files we've used so far are KT-LCD3-v0.19.0.hex for the LCD controller using STM8S105x6 and TSDZ2-v0.19.0.hex for the motor controller.
We followed parts 1 thru 4 on the youtube channel and even swapped the yellow and green wires for tx and rx as per his bug correction. But we're still getting the "8"s all on the screen. Any other tips?
Thanks in advance,
 
1. Make sure motor controller firmware is correctly flashed and you did choose STM8 version, the one with 32kbytrs flash memory
2. Make sure the UART TX and RX are correctly connected
3. Make sure the bake sensors are not active

Usually are only this 3 things. LCD3 seems to be correctly working.
 
Okay, so I've performed all the checks and even switched wires to make sure we were wired correctly.
Still nothing but 8's on the LCD
 
switchbacksteve said:
Okay, so I've performed all the checks and even switched wires to make sure we were wired correctly.
Still nothing but 8's on the LCD
Are you sure you flashed correctly the motor controller firmware? How did you do it?

And the firmware takes care automatically of the needed option bytes.
 
I followed the video link provided with the you tube video series. The only thing I didn't do was to mix up the wires like he did.
I got a confirmation verifying a good upload.

If there is a better set of directions to follow I would love to see them!
 
switchbacksteve said:
I followed the video link provided with the you tube video series. The only thing I didn't do was to mix up the wires like he did.
I got a confirmation verifying a good upload.

If there is a better set of directions to follow I would love to see them!
Try do a full erase and don't forget to select the processor version stm8s105?6 and not the stm8s105?4.

Then make sure UART TX and RX pins are connected following the wiki table: https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Wire-LCD-to-TSDZ2

And then make sure the bake sensor wires are unconnected!!
 
switchbacksteve said:
I am not running brake sensors. How would that change my configuration?
If you are not using, then I expect the brake signal to be not active. Anyway, check the brake wire and make sure it is not connected to anything:

brake: this signal is active low, meaning that when brakes are not active, this wire has 5V and with brakes active this wire has 0 volts.
Leave this wire unconnected if you will not be using brake sensors.


When you turn on the system and brake sensor are active, the motor controller will halt and then the LCD will do like that, all symbols active until receive communication from the motor controller.

Also, make sure you are using the same version v0.19.0 for both LCD and TSDZ2.
 
Back
Top