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:
-
Flash s140 softdevice using
make flash_softdevice
in the appropriate directory (worked fine) -
Erase the user memory
nrfjprog --family nrf52 -e
-
Program the chip with application.hex
nrfjprog --family nrf52 --program application.hex
-
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.