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:
--familyspecifies the nRF device family.--applicationspecifies the application HEX file installed on the device.--application-versionspecifies the application version.--bootloader-versionspecifies the bootloader version.--bl-settings-versionspecifies the bootloader settings version for the given nRF5 SDK version.settings.hexis 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.