TSDZ2 EBike wireless standard (like Specialized Turbo Levo) - OpenSource

Filippods said:
rananna said:
Filippods said:
To be as clear as possible, this is the complete procedure i have followed:
1- Flashed bootloader (**Verified OK**)
1- Wired all the board and motor and double checked
2- Flashed motor firmware v1.1.1 (hex file)
3- Entered in DFU mode (power on from battery switch -> very long press of white big button on nrf52840)
4- Opened Nrf Connect, scan for devices, connect to TSDZ2_DFU
5- Uploaded the distribution packet you uploaded here (.zip)
6- Upload done, disconnecting
7- Pushing the reset button (the small, side one) only green led blinks
8- I cannot see any bluetooth device in:
-Ebike v0.31 Android app
-Smartphone bluetooth device list
-PC bluetooth device list
9- moreover: the devices is not bonded with my devices, i've tried with 3 different smartphones, i'm testing also another board (this one is not wired) with the same results.

Thank you
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
 
rananna said:
I
Filippods said:
rananna said:
Filippods said:
To be as clear as possible, this is the complete procedure i have followed:
1- Flashed bootloader (**Verified OK**)
1- Wired all the board and motor and double checked
2- Flashed motor firmware v1.1.1 (hex file)
3- Entered in DFU mode (power on from battery switch -> very long press of white big button on nrf52840)
4- Opened Nrf Connect, scan for devices, connect to TSDZ2_DFU
5- Uploaded the distribution packet you uploaded here (.zip)
6- Upload done, disconnecting
7- Pushing the reset button (the small, side one) only green led blinks
8- I cannot see any bluetooth device in:
-Ebike v0.31 Android app
-Smartphone bluetooth device list
-PC bluetooth device list
9- moreover: the devices is not bonded with my devices, i've tried with 3 different smartphones, i'm testing also another board (this one is not wired) with the same results.

Thank you
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
Your video looks fine.
I just repeated all the steps myself with my board.
At the end of the flash( when the graph is all the way to the right) the red, yellow and green leds light once in succession ( no need to press reset)
I presume you do not see this?
You are right, i see nothing
 
Filippods said:
rananna said:
I
Filippods said:
rananna said:
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
Your video looks fine.
I just repeated all the steps myself with my board.
At the end of the flash( when the graph is all the way to the right) the red, yellow and green leds light once in succession ( no need to press reset)
I presume you do not see this?
You are right, i see nothing
Power supply or maybe a faulty bootloader flash.
Can you try another power supply?
 
rananna said:
Filippods said:
rananna said:
Filippods said:
To be as clear as possible, this is the complete procedure i have followed:
1- Flashed bootloader (**Verified OK**)
1- Wired all the board and motor and double checked
2- Flashed motor firmware v1.1.1 (hex file)
3- Entered in DFU mode (power on from battery switch -> very long press of white big button on nrf52840)
4- Opened Nrf Connect, scan for devices, connect to TSDZ2_DFU
5- Uploaded the distribution packet you uploaded here (.zip)
6- Upload done, disconnecting
7- Pushing the reset button (the small, side one) only green led blinks
8- I cannot see any bluetooth device in:
-Ebike v0.31 Android app
-Smartphone bluetooth device list
-PC bluetooth device list
9- moreover: the devices is not bonded with my devices, i've tried with 3 different smartphones, i'm testing also another board (this one is not wired) with the same results.

Thank you
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?

The wired board is powered by 5v dd7818ta (checked with multimeter).
The not wired one is powered by a bench psu to vbus e gnd at 3.3v
 
rananna said:
Filippods said:
rananna said:
Filippods said:
To be as clear as possible, this is the complete procedure i have followed:
1- Flashed bootloader (**Verified OK**)
1- Wired all the board and motor and double checked
2- Flashed motor firmware v1.1.1 (hex file)
3- Entered in DFU mode (power on from battery switch -> very long press of white big button on nrf52840)
4- Opened Nrf Connect, scan for devices, connect to TSDZ2_DFU
5- Uploaded the distribution packet you uploaded here (.zip)
6- Upload done, disconnecting
7- Pushing the reset button (the small, side one) only green led blinks
8- I cannot see any bluetooth device in:
-Ebike v0.31 Android app
-Smartphone bluetooth device list
-PC bluetooth device list
9- moreover: the devices is not bonded with my devices, i've tried with 3 different smartphones, i'm testing also another board (this one is not wired) with the same results.

Thank you
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
I would like to test a hunch.
Could you please flash this file?View attachment TSDZ2_wireless_ota_update.zip
 
rananna said:
rananna said:
Filippods said:
rananna said:
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
I would like to test a hunch.
Could you please flash this file?TSDZ2_wireless_ota_update.zip

ok, i've also refleshed the bootloader:
c:\OpenOCD\bin>openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/nrf52.cfg -c "program TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex verify" -c "exit"
Open On-Chip Debugger 0.10.0 (2020-12-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.
A high level adapter (like a ST-Link) you are currently using cannot access
the CTRL-AP so 'nrf52_recover' command will not work.
Do not enable UICR APPROTECT.

Info : clock speed 1000 kHz
Info : STLINK V2J35S7 (API v2) VID:pID 0483:3748
Info : Target voltage: 3.214708
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for nrf52.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : nRF52840-xxAA(build code: D0) 1024kB Flash, 256kB RAM
Info : Padding image section 0 at 0x00000b00 with 1272 bytes
Info : Flash write discontinued at 0x0002f740, next section at 0x000eb000
Warn : Adding extra erase range, 0x0002f740 .. 0x0002ffff
Warn : Adding extra erase range, 0x000fc9e8 .. 0x000fcfff
** Programming Finished **
** Verify Started **
** Verified OK **
 
Filippods said:
rananna said:
rananna said:
Filippods said:
I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
I would like to test a hunch.
Could you please flash this file?TSDZ2_wireless_ota_update.zip

ok, i've also refleshed the bootloader:
c:\OpenOCD\bin>openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/nrf52.cfg -c "program TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex verify" -c "exit"
Open On-Chip Debugger 0.10.0 (2020-12-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.
A high level adapter (like a ST-Link) you are currently using cannot access
the CTRL-AP so 'nrf52_recover' command will not work.
Do not enable UICR APPROTECT.

Info : clock speed 1000 kHz
Info : STLINK V2J35S7 (API v2) VID:pID 0483:3748
Info : Target voltage: 3.214708
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for nrf52.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : nRF52840-xxAA(build code: D0) 1024kB Flash, 256kB RAM
Info : Padding image section 0 at 0x00000b00 with 1272 bytes
Info : Flash write discontinued at 0x0002f740, next section at 0x000eb000
Warn : Adding extra erase range, 0x0002f740 .. 0x0002ffff
Warn : Adding extra erase range, 0x000fc9e8 .. 0x000fcfff
** Programming Finished **
** Verify Started **
** Verified OK **

What happened when you flashed the latest firmware I sent you?
Did you see the leds flash?
 
rananna said:
rananna said:
Filippods said:
rananna said:
Everything you write looks ok.
However, the firmware is clearly not updating.
With the new firmware I sent you installed, you should definitely see red yellow and green leds light up when you reset the board using the small button( not the white button)
If you can, please record a video of the nrf connect app performing the update.
You should see a graph populate from left to right and when it completes do any messages display on the app?
Thanks for helping us track down the issue.

I've already linked the video: https://youtu.be/VOAJNL1PY3s
Could be an issue realated to a bootloader flashing error?
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
I would like to test a hunch.
Could you please flash this file?TSDZ2_wireless_ota_update.zip

Flashed, same issue
 
rananna said:
Filippods said:
rananna said:
rananna said:
We do not have too many things left to check.
one is a faulty board.
However, since this is happening to two boards it seems unlikely that BOTH boards are faulty.
The other thing that can affect flashing is the power supply going to the board.
Are you powering with 3.3V or 5V?
Can you try another power supply?
what board pin is the voltage connected to?
I would like to test a hunch.
Could you please flash this file?TSDZ2_wireless_ota_update.zip

ok, i've also refleshed the bootloader:
c:\OpenOCD\bin>openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/nrf52.cfg -c "program TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex verify" -c "exit"
Open On-Chip Debugger 0.10.0 (2020-12-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.
A high level adapter (like a ST-Link) you are currently using cannot access
the CTRL-AP so 'nrf52_recover' command will not work.
Do not enable UICR APPROTECT.

Info : clock speed 1000 kHz
Info : STLINK V2J35S7 (API v2) VID:pID 0483:3748
Info : Target voltage: 3.214708
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for nrf52.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : nRF52840-xxAA(build code: D0) 1024kB Flash, 256kB RAM
Info : Padding image section 0 at 0x00000b00 with 1272 bytes
Info : Flash write discontinued at 0x0002f740, next section at 0x000eb000
Warn : Adding extra erase range, 0x0002f740 .. 0x0002ffff
Warn : Adding extra erase range, 0x000fc9e8 .. 0x000fcfff
** Programming Finished **
** Verify Started **
** Verified OK **

What happened when you flashed the latest firmware I sent you?
Did you see the leds flash?

No leds flashing
 
Something strange happened: after i flashed your latest file.zip i've flashed alsi the bootloader.zip via nrf app... The red led starts blinking, but still not appearing on bluetooth device list.

So i've tried to reflash the file.zip v0.62... no leds blinking, no device on the list
 
Filippods said:
Something strange happened: after i flashed your latest file.zip i've flashed alsi the bootloader.zip via nrf app... The red led starts blinking, but still not appearing on bluetooth device list.

So i've tried to reflash the file.zip v0.62... no leds blinking, no device on the list

OK, just to see if it is related to the wireless controller files, please flash this wireless remote file and tell me if after flashing you see the red, yellow and green leds light up, followed by a red flashing led.
You will not see anything in bluetooth for the wireless remote.
here it is:View attachment TSDZ2_wireless_remote_ota_update.zip
 
rananna said:
Filippods said:
Something strange happened: after i flashed your latest file.zip i've flashed alsi the bootloader.zip via nrf app... The red led starts blinking, but still not appearing on bluetooth device list.

So i've tried to reflash the file.zip v0.62... no leds blinking, no device on the list

OK, just to see if it is related to the wireless controller files, please flash this wireless remote file and tell me if after flashing you see the red, yellow and green leds light up, followed by a red flashing led.
You will not see anything in bluetooth for the wireless remote.
here it is:TSDZ2_wireless_remote_ota_update.zip

After flashing remote.zip
https://youtu.be/SDJtHnjnFdg
 
Filippods said:
rananna said:
Filippods said:
Something strange happened: after i flashed your latest file.zip i've flashed alsi the bootloader.zip via nrf app... The red led starts blinking, but still not appearing on bluetooth device list.

So i've tried to reflash the file.zip v0.62... no leds blinking, no device on the list

OK, just to see if it is related to the wireless controller files, please flash this wireless remote file and tell me if after flashing you see the red, yellow and green leds light up, followed by a red flashing led.
You will not see anything in bluetooth for the wireless remote.
here it is:TSDZ2_wireless_remote_ota_update.zip

After flashing remote.zip
https://youtu.be/SDJtHnjnFdg

Ok progress finally!
This is exactly what the remote should do after successful flashing.
 
rananna said:
Filippods said:
rananna said:
Filippods said:
Something strange happened: after i flashed your latest file.zip i've flashed alsi the bootloader.zip via nrf app... The red led starts blinking, but still not appearing on bluetooth device list.

So i've tried to reflash the file.zip v0.62... no leds blinking, no device on the list

OK, just to see if it is related to the wireless controller files, please flash this wireless remote file and tell me if after flashing you see the red, yellow and green leds light up, followed by a red flashing led.
You will not see anything in bluetooth for the wireless remote.
here it is:TSDZ2_wireless_remote_ota_update.zip

After flashing remote.zip
https://youtu.be/SDJtHnjnFdg

Ok progress finally!
This is exactly what the remote should do after successful flashing.
I have asked @casainho to check a potential issue with the wireless controller.
He is away now, will check tomorrow.
It is possible that this could explain the issues you are having with flashing.
 
rananna said:
I have asked @casainho to check a potential issue with the wireless controller.
He is away now, will check tomorrow.
It is possible that this could explain the issues you are having with flashing.


:D :D :D :D :D :D :D :D :D :D

Great! Tomorrow i'll be online!
 
rananna said:
Filippods said:
rananna said:
I have asked @casainho to check a potential issue with the wireless controller.
He is away now, will check tomorrow.
It is possible that this could explain the issues you are having with flashing.


:D :D :D :D :D :D :D :D :D :D

Great! Tomorrow i'll be online!
Please try this file when you get a chanceTSDZ2_wireless_ota_update.zip

It doesn't work
 
Filippods said:
rananna said:
Filippods said:
rananna said:
I have asked @casainho to check a potential issue with the wireless controller.
He is away now, will check tomorrow.
It is possible that this could explain the issues you are having with flashing.


:D :D :D :D :D :D :D :D :D :D

Great! Tomorrow i'll be online!
Please try this file when you get a chanceTSDZ2_wireless_ota_update.zip

It doesn't work

one last attempt.View attachment TSDZ2_wireless_ota_update.zip
 
rananna said:
rananna said:
Filippods said:
rananna said:
Please try this file when you get a chanceTSDZ2_wireless_ota_update.zip

It doesn't work

one last attempt.TSDZ2_wireless_ota_update.zip

I also made a change to the booloader.
please flash this and try one of the last files.TSDZ2_bootloader_ota_update.zip

I've fashed both in the order you indicated, im sorry but they dont work.
 
Filippods said:
rananna said:
rananna said:
Filippods said:
It doesn't work

one last attempt.TSDZ2_wireless_ota_update.zip

I also made a change to the booloader.
please flash this and try one of the last files.TSDZ2_bootloader_ota_update.zip

I've fashed both in the order you indicated, im sorry but they dont work.
Thanks for that.
This flashing process is working well for others.
I hope we can come up with some ideas on getting this to also work in your case.
Quite a conundrum!
 
rananna said:
Filippods said:
rananna said:
rananna said:
one last attempt.TSDZ2_wireless_ota_update.zip

I also made a change to the booloader.
please flash this and try one of the last files.TSDZ2_bootloader_ota_update.zip

I've fashed both in the order you indicated, im sorry but they dont work.
Thanks for that.
This flashing process is working well for others.
I hope we can come up with some ideas on getting this to also work in your case.
Quite a conundrum!
Thank you
 
Back
Top