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

Application won't run, unable debug

Hi, I'm unable to run any application on nrf51 DK (Keil used). When I start debug (no matter what application I load), program always cycles between 2 instructions:

0x000006CC BF20 WFE
0x000006CE E7FD B 0x000006CC

This happens even when blinky example is loaded.

Previously everything worked until I made a program which generated hard fault. After that I'm unable to run/debug any application. But I'm not sure whether that hardfault is the cause of the problem.

Parents Reply
  • The problem is that once you have softdevice+application working, you have to erase full flash either using nrfgostudio or "nrfjprog -e". If you do not erase the softdevice before trying blank project from Keil, if wont erase softdevice because of the Nordic flash algorithm for Keil. Try "nrfjprog -e" from command line and try your blank blinky project, i am sure that it will work. There is nothing wrong with your DK

Children
No Data
Related