I'm using an nRF52 (SDK11.0.0, s132) and am able to generate a hex and axf via Keil/uVision. It uploads and works just fine using a Segger J-Link. I want to try some lower cost debugger options and am trying OpenOCD v0.9 along with Olimex ARM-USB-TINY-H (with supporting adapters ARM-JTAG-SWD and ARM-JTAG-20-10).
I didn't see an nrf52.cfg file so I got one from here. I lowered the adapter speed to 500kHz in the .cfg.
I tried to program the softdevice first via:
openocd -s c:/Toolchain/share/openocd/scripts -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -f target/nrf52.cfg -c "program s132_nrf52_2.0.0_softdevice.hex verify"
but I keep getting:
** Programming Started ** embedded:startup.tcl:454: Error: ** Programming Failed ** in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 510 at file "embedded:startup.tcl", line 454
I also tried upload the appliction axf using gdb (after having uploaded the softdevice via the J-Link). It doesn't "fail" but I don't think that the code upload since the board doesn't do anything (no lighting of a heartbeat LED) when I run the fw after flashing. Using gdb gives the following message:
warning: Loadable segment "RW_IRAM1" outside of ELF segments
Any help would be appreciated in getting OpenOCD/Olimex tools working to flash my board.