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

DFU in external memory

Hi,

I am working on doing a DFU over UART into my nrf52840 DK using the external memory provided. I want to be able to store the new init and firmware packages into external memory, then be able to move it from external to flash after validation. I am having trouble trying to figure out how to go about doing this. I have been going through some of the Devzone posts and know this is possible, but I am still confused about where to start with going about this. I still consider myself a beginner with Nordic, so any help is appreciated!

Parents Reply
  • OK, I see you already created a ticket for this here:  nrf5_SDK secure bootloader with external QSPI Flash Image . What you are trying to do is different from the scenario described by OP.

    Since you're receiving updates from the main app, you should enable the NRF_BL_DFU_ALLOW_UPDATE_FROM_APP setting in the bootloader. This will allow the app to store the init command (i.e., the content of the *.dat file) directly on the bootloader settings page. Next, in nrf_bootloader.c, modify the postvalidate() function to utilize the QSPI driver API for accessing the FW image. Lastly, you have to modify the nrf_bootloader_fw_activate() function to enable the copying of the FW image from external flash to internal flash.

Children
No Data
Related