Page 4 of 12

Re: I have problems with OpenOCD!

Posted: Fri Jun 07, 2019 1:48 am
by ultrasnit


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

alright, so you have a layer 1 issues, send picts on wiring.. do you have lights on your st-link and are you sure you loaded all the drivers to the stick.. can you computer see the stick?
also did you get a pop up for port 4444 to be opened and did you in fact allow it to be opened?
Here can u see the codes

C:\Users\Badabing DMX\Desktop\openocd-0.10.0>.\bin-x64\openocd.exe -f .\scripts\interface\stlink-v2.cfg -f .\scripts\target\nrf51.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
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
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 v31 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.173839
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'

Re: I have problems with OpenOCD!

Posted: Fri Jun 07, 2019 3:31 am
by ca2014mp2


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

alright, so you have a layer 1 issues, send picts on wiring.. do you have lights on your st-link and are you sure you loaded all the drivers to the stick.. can you computer see the stick?
There is no light in the dashboard, but the st link diode lights up. The pc can see the stick and the terminal kan see the stick to
it's down to your wiring..

Re: I have problems with OpenOCD!

Posted: Fri Jun 07, 2019 3:42 am
by ca2014mp2



alright, so you have a layer 1 issues, send picts on wiring.. do you have lights on your st-link and are you sure you loaded all the drivers to the stick.. can you computer see the stick?
also did you get a pop up for port 4444 to be opened and did you in fact allow it to be opened?
Here can u see the codes

C:\Users\Badabing DMX\Desktop\openocd-0.10.0>.\bin-x64\openocd.exe -f .\scripts\interface\stlink-v2.cfg -f .\scripts\target\nrf51.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
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
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 v31 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.173839
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'

Your script is different than mine... where did you get it? I used the one from this site.. if different change it..

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 4:07 am
by mandosd49
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?

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 4:28 am
by ca2014mp2
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..

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 5:00 am
by mandosd49
yeah, that sucks,
I was so exited, only to find the stupid error:

Error: Init mode failed (unable to connect to target)

Does the Dash need to be power on to the scooter, NO right. the 3.3 volts wlll power it on?

IDK, that sucks, thinkging about trying this on old windows 7 pc

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 5:02 am
by ca2014mp2
yeah, that sucks,
I was so exited, only to find the stupid error:

Error: Init mode failed (unable to connect to target)

Does the Dash need to be power on to the scooter, NO right. the 3.3 volts wlll power it on?

IDK, that sucks, thinkging about trying this on old windows 7 pc

No, windows version is not your issue.. again dude answer my questions or I can't help.. where did you get your software for osd?

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 5:04 am
by ca2014mp2
yeah, that sucks,
I was so exited, only to find the stupid error:

Error: Init mode failed (unable to connect to target)

Does the Dash need to be power on to the scooter, NO right. the 3.3 volts wlll power it on?

IDK, that sucks, thinkging about trying this on old windows 7 pc

No, windows version is not your issue.. again dude answer my questions or I can't help.. where did you get your software for osd?
and no , you dont need to have it powered other than the power to the cap c9

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 5:18 am
by mandosd49
i got all my software from this guide
I got my OSD from a broken abandoned jump scooter seway.

This is the OCD I'm using

OpenOCD:
http://www.freddiechopin.info/en/downlo ... ocd-0.10.0

I measure the volts at c9 cap, white everything is plugged in and only getting 2.4 volts

Re: How to flash your Ninebot Scooter

Posted: Fri Jun 07, 2019 5:34 am
by mandosd49
Unless the Pin Read out on my ST Link is backword or flipped.
Do they make manufactoruing mistakes on this little devices.

I have them exact same as the Pictures posted by the other guy here with the same issue.