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

Blinky compiles and loads but doesn't execute?

  • Using gcc-arm-none-eabi-4_8-2014q1-20140314

  • Using nRF51_SDK_8 Using nRF51 dongle

  • Build in nRF51_SDK_8/examples/peripheral/blinky/pca10031/s110/armgcc succeeds

  • Copy nrf51422_xxac.hex to Windows so I can use nrfjprog to download and execute

  • Light flashes asynchronously during download, but stops after couple seconds

Output of nrfjprog:

C:\Program Files (x86)\Nordic Semiconductor\nrf51\bin>nrfjprog --reset --program nrf51422_xxac.hex
Parsing hex file(s).
Checking that there is no data to be written in region 0.
Checking that there are no UICR conflicts.
Checking that the area to download is erased, and erasing if necessary.
Erasing page 96.
Programming.
Applying system reset.

Any ideas? I'm trying to evaluate chips, working dev systems is also important. Thanks.

  • looks like the version of blinky you downloaded is not standalone. it seems to be downloaded to page 96, which means that this app expected S110 softdevice to be downloaded first.

    you have to compile and flash blank version from this path nRF51_SDK_8.0.0_5fc2c3a\examples\peripheral\blinky\pca10028\blank\armgcc so that this is downloaded to Page 0 of the flash and the program starts execution without any dependencies.

Related