I configured openOCD and gcc compiler. But i got following error. i gave following command on terminal.
i created one file that is manual.cfg and contain in that file as follows.
Code: Select all
#nRF52832 Target
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/nrf52.cfg]
and ran following command.
Code: Select all
openocd -d2 -f manual.cfg
Code: Select all
fish@fish-VirtualBox:~/openocd$ openocd -d2 -f manual.cfg
Open On-Chip Debugger 0.7.0 (2013-10-22-17:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
debug_level: 2
Runtime Error: embedded:startup.tcl:47: Can't find target/nrf51.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "embedded:startup.tcl", line 47
I googled for the same, but didn't help that much.
I tried again following.
Code: Select all
fish@fish-:~/openocd$ openocd -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl
Open On-Chip Debugger 0.7.0 (2013-10-22-17:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Runtime Error: embedded:startup.tcl:47: Can't find target/nrf51_stlink.tcl
in procedure 'script'
at file "embedded:startup.tcl", line 47
try 2:
Code: Select all
fish@fish-:~/openocd$ openocd -f interface/stlink-v2.cfg -f src/target/nrf51_stlink.tcl
Open On-Chip Debugger 0.7.0 (2013-10-22-17:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
WARNING: target/nrf51_stlink.cfg is deprecated, please switch to target/nrf51.cfg
Runtime Error: embedded:startup.tcl:47: Can't find target/nrf51.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "embedded:startup.tcl", line 47
Code: Select all
fish@fish-:~/openocd$ openocd -f interface/stlink-v2.cfg -d2 -f src/target/nrf51.cfg
Open On-Chip Debugger 0.7.0 (2013-10-22-17:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
debug_level: 2
Error: session's transport is not selected.
Runtime Error: embedded:startup.tcl:20:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'swj_newdap' called at file "src/target/nrf51.cfg", line 33
in procedure 'transport' called at file "/usr/share/openocd/scripts/target/swj-dp.tcl", line 22
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 20