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

flash the SoftDevice, the bootloader, bootloader settings and the application at once

I am trying to merge Softdevice, bootloader, bootloader setting and application. But unable to do in a single mergehex command. If i do merge seperately ((BL + SD + APP) with Bootloader setting) i am able to merge but after flashing merged file, bootloader starts advertising (as DFU) insted of application.

Parents
  • Hi,

    I am trying to merge Softdevice, bootloader, bootloader setting and application. But unable to do in a single mergehex command.

    mergehex does not support merging more than three hex files in one instance, but there is no problem splitting it up in two smaller operations. The resulting hex will be the same regardless.

    If i do merge seperately ((BL + SD + APP) with Bootloader setting) i am able to merge but after flashing merged file, bootloader starts advertising (as DFU) insted of application.

    This should not be related to how the files were merged, as long as you successfully merged all 4 files one way or the other. How did you generate the bootloader settings .hex (what was the full nrfutil command you used)? Can you double-check that it was generated for the exact application hex you are using?

  • I am using below command to generate setting.hex

    nrfutil settings generate --family NRF52 --application app.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex

    Can you tell me how to generate bootloader setting so bootloader points to application instead of advertising DFU ?

Reply Children
No Data
Related