Generating bootloader settings

nRF Util

tags
nRF Util

You can run nrfutil nrf5sdk-tools settings generate to generate a bootloader settings page and store it in a HEX file. To see the list of options, run the nrfutil nrf5sdk-tools settings generate --help command.

For example, you can run the following command:

nrfutil nrf5sdk-tools settings generate --family NRF52840 --application app.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings.hex

In this command:

  • --family specifies the nRF device family.
  • --application specifies the application HEX file installed on the device.
  • --application-version specifies the application version.
  • --bootloader-version specifies the bootloader version.
  • --bl-settings-version specifies the bootloader settings version for the given nRF5 SDK version.
  • settings.hex is the name of the file that will contain the bootloader settings page.

After generating the bootloader settings page, you can use mergehex and nrfjprog to program it to the device. See the nRF Command Line Tools documentation for more information.

Tip

See Zigbee OTA Upgrade Client Example and Zigbee OTA Upgrade Server Example with image transfer over BLE for an example of how this command is used in a full DFU procedure.