Hello,
I am working on a project with the nrf5340, on ncs version 2.1.2, though I plan to bring it into v2.2.0.
I have been working on this sample on the side because Multi-Image DFU is a must for my application. While there are issues unresolved on the thread, (about iOS being faulty when running DFU more than once), it is the only sample that has uploaded 2 images through BLE and successfully updated the device. However, I have run into some complications in implementing this code into my firmware.
The sample structure is very simple:
My project is more involved. I am struggling to figure out where the mcuboot.conf will be added, and how to add its configurations for the mcuboot bootloader. I have several questions that I have been trying to research, so I am reaching out for help here while I continue to try.
When building my project with the following CMakeLists.txt, I can see in the build output that it seems to build my child image and mcuboot configurations, but how can I be sure?
When the build is complete, the dfu_application.zip contains the following even though the mcuboot.conf states "UPDATEABLE_IMAGE=2"
How would I get the cpu_net image into this dfu_application.zip? Am I on the right track?
Here is my project structure:
My project_folder/CMakeLists.txt looks like:
My project_folder/cpu_app/CMakeLists.txt looks like:
My project_folder/cpu_net/CMakeLists.txt looks like: