Hello,
We want to flag the bootloader to activate an firmware upgrade that we downloaded and validated in the application code. I am trying to set bank_1.bank_code to NRF_DFU_BANK_VALID_APP, which I think is all that is needed to trigger an activation in the bootloader, but the change is not persisting in the bootloader. Here is what I currently have in the test app:
//System Start nrf_bootloader_mbr_addrs_populate(); uint8_t ret_code = nrf_dfu_settings_init(false); s_dfu_settings.bank_1.bank_code = NRF_DFU_BANK_VALID_APP; ret_code = nrf_dfu_settings_write(NULL); //System Reboot
I don't think I can call the validation functions directly because we're using QSPI as bank 1, so there is no address to point those functions to. I really want to do all of the validation myself, and then "trick" the bootloader into thinking that everything is good and to proceed with the activation.
Thank you!
-nRF52840
-nRF5 SDK 17.1
-pca10056_s140_ble_debug DFU bootloader