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

The 'nrfjprog' command is not working properly

Hi,

  • During bluetooth DFU

I want to generate the file 'setting.hex' in the folder through 'app.hex', and burn the four files in the folder 'bootloader.hex' and 'softDevice. Hex' into the chip through the command 'nrfjprog' in the batch.  I have installed 'Command Line Tools' in my computer, but I still cannot successfully burn it into the chip when using batch processing. Could you please help me to find out how to solve this problem?  

  • Here are the details in batch processing:

    @echo off

    nrfutil settings generate --family NRF52840 --application app.hex --application-version 3 --bootloader-version 3 --bl-settings-version 1 bl_settings.hex

    nrfjprog -e
    nrfjprog --program softdevice.hex
    nrfjprog --program bootloader.hex
    nrfjprog --program bl_settings.hex
    nrfjprog --program app.hex
    nrfjprog --reset

    pause

Related