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

Flash program nRF52840 DK

I have trouble programming the PDK using nrfjprog. I can flash the program fine using Segger Embedded Studio but it doesn't appear to be working using nrfjprog.

Here are the steps I followed:

  1. Flash s140 softdevice using make flash_softdevice in the appropriate directory (worked fine)

  2. Erase the user memory nrfjprog --family nrf52 -e

  3. Program the chip with application.hex nrfjprog --family nrf52 --program application.hex

  4. Reset the chip nrfjprog --family nrf52 -r

Following those steps, I don't get any error but the program doesn't appear to be working. I don't get any messages coming out of the J-Link debugger.

Note: I don't think the hex is the problem as I tried to flash both the hex file generated by gcc and the one obtained from Segger Embedded Studio. Also, I am building on mac.

Related