How to flash your Ninebot Scooter

ultrasnit
Posts: 6
Joined: Thu Jun 06, 2019 11:47 pm

Re: How to flash your Ninebot Scooter

Postby ultrasnit Fri Jun 07, 2019 10:02 am

Im getting the exact same error,
same circumstances, everything wired up ok

Error: init mode failed (unable to connect to the target)

Im on a windows 10 computer.

Did you find a resolution to your issue?
win 10 is fine. where did you get your program, your script is different than mine. I got mine here. No resolution on my issues. I'm too new and these guys are acting like I'm not here.. oh well,, i'll keep HELPING others as they don't help me. Whatcha going to do?
You really sure you got your wiring sorted, you keep avoiding a pict so i'm assuming you have that right.. I would point to the software you are using..
I send the pic on page 3 buddy, I appreciate your help! check page 3 there u can see
Brix
Posts: 3
Joined: Fri Jun 07, 2019 1:10 pm

Re: How to flash your Ninebot Scooter

Postby Brix Fri Jun 07, 2019 1:13 pm

to flash a clone dashboard add these steps

Open Telnet using this command in this new window: telnet 127.0.0.1 4444
type

init
reset halt
nrf51 mass_erase

Now it’s time for the flashing part, copy the dashboard firmware file (full_BLE.bin) to the OpenOCD folder (at the root, not bin or any other folder)
run this command: program full_BLE.bin
Done! Now it should be using original Ninebot firmware.
The dash has now been converted successfully to a real OEM dash!
Last edited by Brix on Sat Jun 08, 2019 6:28 pm, edited 1 time in total.
mandosd49
Posts: 9
Joined: Fri Jun 07, 2019 4:06 am

Re: How to flash your Ninebot Scooter

Postby mandosd49 Fri Jun 07, 2019 1:55 pm

The telnet command won't work yet because the previouse command didn't work.

It suppose to say: now accepting connections on telnet port 4444

But it just errors instead.

I think I got a lemon st link v2 :(
mandosd49
Posts: 9
Joined: Fri Jun 07, 2019 4:06 am

Re: How to flash your Ninebot Scooter

Postby mandosd49 Fri Jun 07, 2019 3:36 pm

Guys.

I figured out the Problem,, Ok so I was getting the exact error as the other guys.
Turns out the ST Link Pin read out on the out metal casing is Incorrect/ different from the read out on the actual PBC board after I took it apart.
the Grnd swdio and swclk wear not correct: So yeah it was DUE to the wiring. Due to incorrect Pin read out on the out casing of the ST Link.

Now i got this..

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
adapter speed: 1000 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v34 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.156673
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints

Info : accepting 'telnet' connection on tcp/4444
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0

** Programming Started **
auto erase enabled
Error: couldn't open full_BLE.bin
embedded:startup.tcl:476: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 532
at file "embedded:startup.tcl", line 476
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0

** Programming Started **
auto erase enabled
Warn : Unknown device (HWID 0x000000d2)
Warn : using fast async flash loader. This is currently supported
Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0x000007c0
wrote 262144 bytes from file full_BLE.bin in 11.951851s (21.419 KiB/s)
** Programming Finished **


At first i didn't but the BLE.bin file in the openoCD folder so I got error running the Program command
THen i didn't it again, and it said Programming Finish..

Does that Last part in Bold look ok, Is it flashed now?

Thx
mandosd49
Posts: 9
Joined: Fri Jun 07, 2019 4:06 am

Re: I have problems with OpenOCD!

Postby mandosd49 Fri Jun 07, 2019 3:42 pm

I got this error: Error: Init mode failed (unable to connect to target)

All soldering is fine, and I try with 3 Dashboards..

Can anyone help me?
are you able to see the telnet connection? any errors?

in telnet type "usage" without the " and see if you get a response
I got this message:

C:\Users\Badabing DMX>telnet 127.0.0.1 4444
Connecting To 127.0.0.1...Could not open connection to the host, on port 4444: Connect failed
Pull out the PCB board out of the Outter Aluminum casing of the st link, Verify the Pin outs from the PCB marking from the board it self, not the casing.
I had the exact same issue.. Turn out the FUck$#ing Markings on the case are off/ wrong. after i put the connections correctly it worked
see my previous message;)
ca2014mp2
Posts: 15
Joined: Thu Jun 06, 2019 9:17 pm

Re: How to flash your Ninebot Scooter

Postby ca2014mp2 Fri Jun 07, 2019 5:34 pm

Guys.

I figured out the Problem,, Ok so I was getting the exact error as the other guys.
Turns out the ST Link Pin read out on the out metal casing is Incorrect/ different from the read out on the actual PBC board after I took it apart.
the Grnd swdio and swclk wear not correct: So yeah it was DUE to the wiring. Due to incorrect Pin read out on the out casing of the ST Link.

Now i got this..

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
adapter speed: 1000 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v34 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.156673
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints

Info : accepting 'telnet' connection on tcp/4444
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0

** Programming Started **
auto erase enabled
Error: couldn't open full_BLE.bin
embedded:startup.tcl:476: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 532
at file "embedded:startup.tcl", line 476
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0

** Programming Started **
auto erase enabled
Warn : Unknown device (HWID 0x000000d2)
Warn : using fast async flash loader. This is currently supported
Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000001e msp: 0x000007c0
wrote 262144 bytes from file full_BLE.bin in 11.951851s (21.419 KiB/s)
** Programming Finished **


At first i didn't but the BLE.bin file in the openoCD folder so I got error running the Program command
THen i didn't it again, and it said Programming Finish..

Does that Last part in Bold look ok, Is it flashed now?

Thx
Ok I'm back, I didn't get your pictures, but it looks like you did a great job getting it done.. Nice. Someone sent me a response on doing a mass erase which I tried to do when I found the list of commands to try but I had the syntex wrong and so now I'm getting ready to try that command line..
You did write it well, good job where are you at now? Have you plugged it in?
ca2014mp2
Posts: 15
Joined: Thu Jun 06, 2019 9:17 pm

Re: How to flash your Ninebot Scooter

Postby ca2014mp2 Fri Jun 07, 2019 5:42 pm

to flash a clone dashboard add these steps

Open Telnet using this command in this new window: telnet 127.0.0.1 4444
type

ini
reset halt
nrf51 mass_erase

Now it’s time for the flashing part, copy the dashboard firmware file (full_BLE.bin) to the OpenOCD folder (at the root, not bin or any other folder)
run this command: program full_BLE.bin
Done! Now it should be using original Ninebot firmware.
The dash has now been converted successfully to a real OEM dash!
Brix... duuuuuuuuuddde... I'm doing the dance, doing the dance... that worked!!!
mandosd49
Posts: 9
Joined: Fri Jun 07, 2019 4:06 am

Re: How to flash your Ninebot Scooter

Postby mandosd49 Fri Jun 07, 2019 5:45 pm

I have not plugged it into the scooter yet to test it.
waiting to get home to do that.

ok thats good know that that the write/flash seems to be good.

i'll test it tonight.
ca2014mp2
Posts: 15
Joined: Thu Jun 06, 2019 9:17 pm

Re: How to flash your Ninebot Scooter

Postby ca2014mp2 Fri Jun 07, 2019 6:01 pm

I have not plugged it into the scooter yet to test it.
waiting to get home to do that.

ok thats good know that that the write/flash seems to be good.

i'll test it tonight.
I'm testing now... I'll post what I find
ca2014mp2
Posts: 15
Joined: Thu Jun 06, 2019 9:17 pm

Re: How to flash your Ninebot Scooter

Postby ca2014mp2 Fri Jun 07, 2019 7:07 pm

I have not plugged it into the scooter yet to test it.
waiting to get home to do that.

ok thats good know that that the write/flash seems to be good.

i'll test it tonight.
I'm testing now... I'll post what I find
i worked.. yeah!!! followed the instructions to the letter only one gap in the at the point of the using the downgranding software to push the custom bin up it reads something like hit connect and flash but you have to connect read version then flash.. nothing complex at all just a missing step.. everything else is by the letter.. I have it up and running,.. only thing is i have a red S on the display. I'm not sure what it mean but i did get a warning that this scooter is set to over speed so maybe that's just another warning.. maybe not.. not sure but the wheel spins and I wanna keep testing..
good luck let me know how you work out.

Return to “Ninebot ES and E-series”

Who is online

Users browsing this forum: No registered users and 33 guests