I saw your video on over the air update vis BLE. What if I want to download the app_update.bin file to my device via a cellular modem and then proceed with the update. I am assuming I would copy the app_update.bin to S1 and then tell the bootloader to activate it? Is this the correct approach and if so is there an example that you know of that would illustrate the portion “copy the app_update.bin to S1 and then tell the bootloader to activate it”?
Over The air update
Hi @davepatton
If I understand correctly you’re trying to use/implement FOTA and you’re trying to figure out the inner workings. You can check out this sample which uses FOTA via HTTP
nrf/samples/cellular/http_update/application_update
More specifically it uses the CONFIG_FOTA_DOWNLOAD
CONFIG_DOWNLOAD_CLIENT
and CONFIG_DFU_TARGET
to write a .bin image into the free secondary slot. You’ll have to dig in like to nrf/subsys/net/lib/fota_download/src/fota_download.c
to get the answers you’re seeking.
Hopefully that should help!