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.

Parents Reply
  • To my knowledge you dont have this command in the mesh SDK.

    You can flash it by entering the folder Mesh_SDK_folder\external\softdevice\s140_5.0.0-3.alpha, and then use the nrfjprog command like this: nrfjprog --family nrf52 --program s140_nrf52840_5.0.0-3.alpha_softdevice.hex

    You can also combine step 1 and 2 like this: nrfjprog --family nrf52 -e && nrfjprog --family nrf52 --program s140_nrf52840_5.0.0-3.alpha_softdevice.hex

Children
No Data
Related