pi@raspberrypi:~/opencd $ sudo openocd -f interface/raspberrypi-native.cfg -c "transport select swd; set WORKAREASIZE 0" -f 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
BCM2835 GPIO nums: swclk = 25, swdio = 24
0
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
Info : clock speed 1006 kHz
Info : SWD DPIDR 0x013f9150
Error: Could not initialize the debug port
Another attempt:
pi@raspberrypi:~/opencd $ sudo openocd -f r1.cfg
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
BCM2835 GPIO nums: swclk = 25, swdio = 24
BCM2835 GPIO nums: swclk = 25, swdio = 24
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
none separate
adapter_nsrst_delay: 100
adapter_nsrst_assert_width: 100
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
Info : clock speed 1006 kHz
Info : SWD DPIDR 0x00bdc150
Error: Could not initialize the debug port
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* nrf51.cpu cortex_m little nrf51.cpu unknown
Info : SWD DPIDR 0x00000007
Error: Could not initialize the debug port
Error: Target not examined, reset NOT asserted!
in procedure 'reset' called at file "r1.cfg", line 17
in procedure 'ocd_bouncer'
My config file is [r1.cfg]
source [find interface/raspberrypi-native.cfg]
transport select swd
bcm2835gpio_swd_nums 25 24
[#bcm2835gpio_srst_num](http://forum.espruino.com/search/?q=%23bcm2835gpio_srst_num) 18
set CHIPNAME nrf51
source [find target/nrf51.cfg]
reset_config srst_nogate
adapter_nsrst_delay 100
adapter_nsrst_assert_width 100
init
targets
reset
reset halt
poll
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@fanoush,
I have installed OpenOCD. running but with error
Another attempt:
My config file is [r1.cfg]
Any advice?