What happens when the bootloader settings page is not programmed with the bootloader to the device?
This page is automatically created and all the versions set to 0? Or the dfu skips version verification?
What happens when the bootloader settings page is not programmed with the bootloader to the device?
This page is automatically created and all the versions set to 0? Or the dfu skips version verification?
On startup the bootloader will call nrf_dfu_settings_init()
( in nrf_dfu_init()
in nrf_dfu.c), which checks the CRC of the bootloader settings page. If the page is not present(i.e. it is set to all 0xFFs), then the page is reset to 0s and the settings version is set to NRF_DFU_SETTINGS_VERSION=1
(defined in preprocessor symbols).
The device will then stay in bootloader mode, waiting for an application update, which will set the dfu settings page to the values corresponding to the image that has been received, e.g. application CRC , application version etc ... .
Best regards
Bjørn
On startup the bootloader will call nrf_dfu_settings_init()
( in nrf_dfu_init()
in nrf_dfu.c), which checks the CRC of the bootloader settings page. If the page is not present(i.e. it is set to all 0xFFs), then the page is reset to 0s and the settings version is set to NRF_DFU_SETTINGS_VERSION=1
(defined in preprocessor symbols).
The device will then stay in bootloader mode, waiting for an application update, which will set the dfu settings page to the values corresponding to the image that has been received, e.g. application CRC , application version etc ... .
Best regards
Bjørn