This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sparkfun nRF52832 breakout board always keep the SWDIO(D)pin high when using openOCD to flash bootloader

Hi,

i am trying to flash the softdevice bootloader in Sparkfun nRF52832 breakout board using RPI2 + openOCD through SWD. debug port initialize is failed all the time.i can see that the SWDIO(D)pin is always high.can someone please help me on this?

Following is the OpenOCD outout.

Open On-Chip Debugger 0.10.0+dev-00001-g0ecee83 (2017-02-11-05:21) Licensed under GNU GPL v2 For bug reports, read openocd.org/.../bugs.html BCM2835 GPIO nums: swclk = 25, swdio = 24 BCM2835 GPIO config: srst = 18 srst_only separate srst_gates_jtag srst_push_pull connect_deassert_srst adapter speed: 10000 kHz cortex_m reset_config sysresetreq srst_only separate srst_nogate srst_push_pull connect_deassert_srst 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 4061 kHz Info : SWD DPIDR 0x0013ed9c Error: Could not initialize the debug port TargetName Type Endian TapName State


0* nrf52.cpu cortex_m little nrf52.cpu unknown Info : SWD DPIDR 00000000 Info : SWD DPIDR 00000000 Info : SWD DPIDR 00000000 Error: Could not initialize the debug port Error: Target not examined, will not halt after reset! TARGET: nrf52.cpu - Not halted in procedure 'reset' called at file "openocd.cfg", line 18 in procedure 'ocd_bouncer'

Related