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

Version numbers for Secure DFU

Why do the version numbers have to be as follows for a merged hex file to be able to exit the dfu mode when flashed externally as a combined hex file (SD +BL + BL settings + App)?

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

I would want the application version to start around 1 and move forward as we have OTA updates.

Also, how does the verification work on the nrfutil "application-version-string" option?

nrfutil settings generate --help

Usage: nrfutil settings generate [OPTIONS] HEX_FILE

Options:

--family [NRF51|NRF52] nRF IC family: NRF51 or NRF52

--application TEXT The application firmware file. This can be omitted if the target IC does not contain an application in flash. Requires --application-version or --application- version-string.

--application-version INTEGER The application version.

--application-version-string TEXT

                              The application version string, e.g
                              "2.7.31".

--bootloader-version INTEGER The bootloader version.

--bl-settings-version INTEGER The Bootloader settings version.

Defined in nrf_dfu_types.h, the following apply toreleased SDKs

                              |SDK12|1|  (SDK12 is 1).

--help Show this message and exit.

Parents Reply Children
Related