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

write to nRF52840 dk with hex file by command line

I want to write to nRF52840  the example "ble_app_hrs_pca10056" from nRF5_SDK_15.2.0 by command line.

first I merge 3 hex file (bootloader, softdevice and app) with the command :

mergehex -m qspi_bootloader_pca10056.hex  s140_nrf52_6.1.1_softdevice.hex  ble_app_hrs_pca10056_s140.hex  -o output_file.hex

after i write to 52840 with the command:

nrfjprog -f NRF52 --program output_file.hex --chiperase

 and then restart it with command:

nrfjprog -f nrf52 --reset

when i check it i cant see signal from the device.
maybe I do something wrong and i appreciate if someone can tell me what to do (or/and even write link to files) 

I only want to burn the hex file (no matter the example)

Related