Hi ,
I am developing an application which uses nrf52833. I want to perform OTA using 4g module(from Quectel). As per my understanding and explorations, there can be two methods to do that.
1- Saving the ota file received via 4g module to external spi flash and then giving control to bootloader mcuboot to validate and write the firmware from external spi flash to primary slot.
2- Modifying the smp protocol and DFU code to write the firmware directly to secondary slot(Internal Flash , no involvement of NOR Flash) and then giving control to bootloader mcuboot to validate and write the firmware from secondary slot to primary slot..
I had already started working on 1st part, but someone suggested to use the 2nd idea. Which way is more convenient and easier to implement ?
If i am misunderstanding anything, which knowledge part should i review
Thanks