# Failed to program my target nrf52

**URL:** <https://community.sparkfun.com/t/failed-to-program-my-target-nrf52/35132>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [January 1, 2018, 9:18pm UTC](https://community.sparkfun.com/t/failed-to-program-my-target-nrf52/35132 "2018-01-01T21:18:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neodimio91](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neodimio91](https://community.sparkfun.com/u/neodimio91)\
**Post date:** [January 1, 2018, 9:18pm UTC](https://community.sparkfun.com/t/failed-to-program-my-target-nrf52/35132/1 "2018-01-01T21:18:53Z")

</div>

Hi! I’ve got this error! Hope someone can help! I’m not able to understand what I’m doing wrong!

openocd -f interface/stlink-v2-1.cfg -f target/nrf52.cfg -c “program blinky\_pca10056.hex verify reset exit”

Open On-Chip Debugger 0.10.0 (2017-08-21) [[https://github.com/sysprogs/openocd](https://github.com/sysprogs/openocd)]

Licensed under GNU GPL v2

For bug reports, read

[http://openocd.org/doc/doxygen/bugs.html](http://openocd.org/doc/doxygen/bugs.html)

Info : auto-selecting first available session transport “hla\_swd”. To override use ‘transport select ’.

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

adapter speed: 10000 kHz

Info : Unable to match requested speed 10000 kHz, using 4000 kHz

Info : Unable to match requested speed 10000 kHz, using 4000 kHz

Info : clock speed 4000 kHz

Info : STLINK v2 JTAG v28 API v2 SWIM v17 VID 0x0483 PID 0x374B

Info : using stlink api v2

Info : Target voltage: 3.264950

Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints

target halted due to debug-request, current mode: Thread

xPSR: 0x01000000 pc: 0x00000214 msp: 0x20002008

\*\* Programming Started \*\*

\*\* Programming Failed \*\*

shutdown command invoked

embedded:startup.tcl:502: Error:

in procedure ‘flash’ called at file “embedded:startup.tcl”, line 502
