Page 1 of 1

Nucleo / OpenOCD

Posted: Sun Oct 19, 2014 10:50 am
by Tabulous
just trying to get the nucleo-f103rb demo running, but open ocd is complaining about

Open On-Chip Debugger 0.8.0-dev-00094-gc658229 (2013-07-21-11:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Runtime Error: C:/ChibiStudio/tools/openocd/bin/../scripts/target/stm32f1x.cfg:27: invalid command name "jtag_ntrst_delay"
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "C:\ChibiStudio\tools\openocd\scripts\board\st_nucleo_f103rb.cfg", line 7
at file "C:/ChibiStudio/tools/openocd/bin/../scripts/target/stm32f1x.cfg", line 27

Re: Nucleo / OpenOCD

Posted: Sun Oct 19, 2014 10:55 am
by Giovanni
Are you selecting ST-Link v2-1? it is different from the one on discovery boards.

Giovanni

Re: Nucleo / OpenOCD

Posted: Sun Oct 19, 2014 10:58 am
by Tabulous
yes but i downloaded it from the web.......


could you provide the stlink_v2-1, and any other cfg files for the board / target etc ?

Re: Nucleo / OpenOCD

Posted: Sun Oct 19, 2014 11:09 am
by Giovanni
I am using the files in OpenOCD 0.8.0, are you using ChibiStudio? it should work as-is: openocd -c "telnet_port 4444" -f "interface/stlink-v2-1.cfg" -f "st_nucleo_f103rb.cfg"

I attached the Eclipse debug configuration.

RT-STM32F103RB-NUCLEO (OpenOCD, Flash and Run).zip
(1.13 KiB) Downloaded 315 times


Have you installed the drivers? also those are different.

Giovanni

Re: Nucleo / OpenOCD

Posted: Sun Oct 19, 2014 11:11 am
by Tabulous
Thanks now got it working :-)