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

Example program doesn't start execution

This are the contents of disassembly window on all optimisation levels. Program is stuck switching between two operations:

MOVS  r0, r0
DCD   0xFFFFFFFF

I'm running ble_app_template on nRF51 DK (nRF51422_QFAC). What's going on?

_

Parents
  • Hi

    There are two types of examples in the SDK:

    • Peripheral examples: Those do not require softdevice and are therefore not using BLE or ANT. Those examples are flashed to an empty nRF51 chip and are flashed at the beginning of the flash memory, at address 0x00000000.
    • Softdevice examples: Those require softdevice to be flashed to the chip first. Then you flash your application. For instructions how to do that, see this link. The ble_app_template should be used together with the S110 softdevice. The S110 softdevice is flased to start of flash at memory location 0x00000000 and occupies flash space up to 0x00016000. The ble_app_template is then flashed on top of the softdevice, i.e. at memory location 0x16000. You can also see this in nRFgo Studio like in the image below.

    image description

    This is reflected in the ROM setting in Keil in the ble_app_template example

    image description

  • Got it. I though Keil we're supposed to load SoftDevice and then load the application on top of it. As it turns out SofDevice can only be programmed via nRFgo Studio?

Reply Children
No Data
Related