We have been evaluating the nRF5340 and nRF7002 for use in a new product and we are currently looking at our Wi-Fi FOTA options. For reference, we are using an nRF7002 DK with NCS v3.0.0. We are using MCUboot and we have the secondary partitions for the app core and network core stored on the external flash along with both partitions for the Wi-Fi firmware patch.
We have set up a simple HTTPS server to download the images from and I used code from the cellular sample to implement the FOTA Download library. This works when updating the app core image, but this does not work when updating other images since the FOTA Download library uses a hard-coded image number of 0 when calling to the DFU Target library. After modifying the FOTA Download library to accept an image number, I am able to update all 3 images.
Is there a reason the FOTA Download library uses the hard-coded image number? Would using this modified version of the FOTA Download library be a reasonable solution? Does this solution work as a simultaneous multi-image update given that the application only marks the images to swap once all 3 have been downloaded?