9 years, 6 months ago.

How to use MK20 with openocd for debugging nrf51822 BLE nano ?

Hi,

I have tried actual openocd from git with mk20 to get connected to nrf51822 on BLE nano. I've used the following configuration files which are shipped with openocd:

openocd -f /usr/local/share/openocd/scripts/interface/cmsis-dap.cfg -f /usr/local/share/openocd/scripts/target/nrf51.cfg

That is the result:

Open On-Chip Debugger 0.9.0-dev-00181-g1ea25b8 (2014-10-14-21:40)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
in procedure 'init'

any ideas?

Best Regards, railwaycoder

Question relating to:

BLE Nano is the smallest Bluetooth 4.1 Low Energy (BLE) development board in the market. The core is Nordic nRF51822 (an ARM Cortex-M0 SoC plus BLE capability) running at 16MHz …

Hi,

I haven't used openOCD for a while with cmsis-dap. Just want to share that there's pyOCD which recently received some bug fixing regarding NRF51 target.

https://github.com/mbedmicro/pyOCD

posted by Martin Kojtal 17 Oct 2014

Hi, thanks for that hint. At the moment pyOCD works fine for me. But it is really slow while uploading with gdb...

posted by railway coder 05 Nov 2014

Unfortunately, pyOCD doesn't support Mac OS X at the moment.

posted by Rei Vilo 06 Jan 2015
Be the first to answer this question.