Use the settings command to generate and display a bootloader settings page.
nrfutil settings generate --family NRF52840 --application app.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings.hex
Enter the following command to display the contents of the generated HEX file:
nrfutil settings display settings.hex
Each nRF device has a corresponding --family
setting:
Family setting | nRF devices |
---|---|
NRF51 | nRF51xxx |
NRF52 | nRF52832, nRF52833 |
NRF52QFAB | nRF52832-QFAB, nRF52820 |
NRF52810 | nRF52810, nRF52811, nRF52805 |
NRF52840 | nRF52840 |
The --bl-settings-version
depends on the SDK version:
SDK version | BL settings version |
---|---|
<=12.0 | 1 |
>=15.3.0 | 2 |
The DFU bootloader settings version supported and used by your selected SDK is listed in the nrf_dfu_types.h file in the bootloader library. Even though bootloaders compiled from an nRF5 SDK 15.3.0 or later can only use version 2, they can be configured to support a version 1 settings page. When a new bootloader with a version 1 settings page boots, the bootloader translates the settings page to version 2 before booting. If a version 2 settings page is used, boot validation for SoftDevice and Application can be generated with the settings page using the --sd-boot-validation and --app-boot-validation commands.