Code & dts changes in mcuboot for mapping external flash as SLOT-1

Hi,

I have a nrf52833dk board interfaced with a serial flash through SPI.


1. I want to change nordic provided sample dfu app (nCS_DFU_Sample) to download new firmware file into the external memory (serial flash).

2. I want to change mcuboot source code to swap SLOT-0 with SLOT-1 (placed in serial flash).

Kindly suggest how to proceed with the changes for source files and dts file.

Thanks,

Parents
  • Hi Mohammed, 

    You would need to define the external flash memory in an overlay file. Have a look at the documentation here.


    If you have a nRF52840 DK you can test the following example that I made here. In the example it support DFU update via UART to the external QSPI flash on the nRF52840 DK and then MCUBoot will swap the image on the external flash with the application when you do the "confirm" command. 

Reply
  • Hi Mohammed, 

    You would need to define the external flash memory in an overlay file. Have a look at the documentation here.


    If you have a nRF52840 DK you can test the following example that I made here. In the example it support DFU update via UART to the external QSPI flash on the nRF52840 DK and then MCUBoot will swap the image on the external flash with the application when you do the "confirm" command. 

Children
Related