External Flash (SPI) - MCUBoot - OTA

I have been able to set up external flash for MCUBoot for FOTA.

But after rebooting, the image is the same than before the image upgrade.

I used a sniffer so i could see SPI transmission with external flash during the process but all i can see is writing the new image to the flash, not reading it when swapping.

That's how my partitions are built

And here is my mcuboot.conf in child_image folder

Parents
  • Hi,

     

    Is your partition layout equal on original image vs. the updated .bin file?

    You can ensure that this happens if you take the original_project/build/partitions.yml and copy this to the updated_project/pm_static.yml, and then build the "updated_project".

     

    And here is my mcuboot.conf in child_image folder

    Have you setup the mcuboot overlay for your external flash?

    That should be located in child_image/mcuboot/boards/($MY_BOARD).overlay.

    Note that it must be the secure board, for instance nrf9160dk_nrf9160.overlay, and not the _ns prefixed board.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Is your partition layout equal on original image vs. the updated .bin file?

    You can ensure that this happens if you take the original_project/build/partitions.yml and copy this to the updated_project/pm_static.yml, and then build the "updated_project".

     

    And here is my mcuboot.conf in child_image folder

    Have you setup the mcuboot overlay for your external flash?

    That should be located in child_image/mcuboot/boards/($MY_BOARD).overlay.

    Note that it must be the secure board, for instance nrf9160dk_nrf9160.overlay, and not the _ns prefixed board.

     

    Kind regards,

    Håkon

Children
No Data
Related