Nucleo / OpenOCD

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Nucleo / OpenOCD

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Nucleo / OpenOCD

Post by Giovanni »

Are you selecting ST-Link v2-1? it is different from the one on discovery boards.

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Nucleo / OpenOCD

Post 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 ?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Nucleo / OpenOCD

Post 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
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Nucleo / OpenOCD

Post by Tabulous »

Thanks now got it working :-)
Post Reply