FOTA downloading but failing to boot into the new image

Hardware: thingy91X

mfw_nrf91x1_2.0.4

ncs-v3.3.0

using the COAP nRF cloud FOTA sample

I have tried to update my device following the dev academy sample. 

I flashed V1.0.0 onto the device, edited the version to V1.1 in VERSION and then ran a pristine build, created a bundle, and set up a FOTA job on nRF cloud, 

the device downloaded the FOTA image and restarted but did not apply the updated image. I have attached the logs below, it is still showing as V1.0.0 on nRF cloud

(These logs are from the initial test with the REST sample however the same issue was seen with COAP sample)

```

[00:12:22.157,440] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
%MDMEV: PRACH CE-LEVEL 0
+CSCON: 1
[00:12:24.048,553] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:24.058,410] <inf> nrf_cloud_fota_poll: Starting FOTA download of bundles.nrfcloud.com/64c49359-9733-4f53-b5ed-8a92b8d20fc6/at_monitor.signed.bin
[00:12:24.072,540] <inf> nrf_cloud_fota_poll: Updating FOTA job status...
[00:12:24.799,163] <inf> nrf_cloud_fota_poll: FOTA job updated, status: 1
[00:12:24.806,915] <wrn> downloader: Protocol not specified for bundles.nrfcloud.com/64c49359-9733-4f53-b5ed-8a92b8d20fc6/at_monitor.signed.bin, attempting https://
[00:12:25.060,638] <inf> downloader: Setting up TLS credentials, sec tag count 1
[00:12:25.068,603] <inf> downloader: Connecting to 2600:9000:28eb:7200:7:76af:9a40:93a1
[00:12:25.077,575] <inf> downloader: Failed to connect on IPv6 (err -118), attempting IPv4
[00:12:25.287,933] <inf> downloader: Setting up TLS credentials, sec tag count 1
[00:12:25.295,898] <inf> downloader: Connecting to 3.174.46.73
[00:12:27.769,409] <inf> downloader: Downloaded 1700/93731 bytes (1%)
[00:12:28.443,359] <inf> downloader: Downloaded 2190/93731 bytes (2%)
[00:12:28.452,301] <inf> downloader: Downloaded 3400/93731 bytes (3%)
[00:12:28.766,845] <inf> downloader: Downloaded 4906/93731 bytes (5%)
[00:12:28.829,620] <inf> downloader: Downloaded 5100/93731 bytes (5%)
[00:12:29.168,914] <inf> downloader: Downloaded 6606/93731 bytes (7%)
[00:12:29.181,182] <inf> downloader: Downloaded 6800/93731 bytes (7%)
[00:12:29.488,403] <inf> downloader: Downloaded 8306/93731 bytes (8%)
[00:12:29.500,701] <inf> downloader: Downloaded 8500/93731 bytes (9%)
[00:12:29.808,868] <inf> downloader: Downloaded 10005/93731 bytes (10%)
[00:12:29.871,734] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:30.769,439] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:30.779,388] <inf> downloader: Downloaded 10200/93731 bytes (10%)
[00:12:31.116,882] <inf> downloader: Downloaded 11704/93731 bytes (12%)
[00:12:31.129,364] <inf> downloader: Downloaded 11900/93731 bytes (12%)
[00:12:31.488,922] <inf> downloader: Downloaded 13404/93731 bytes (14%)
[00:12:31.551,910] <inf> downloader: Downloaded 13600/93731 bytes (14%)
[00:12:31.927,459] <inf> downloader: Downloaded 15104/93731 bytes (16%)
[00:12:31.939,910] <inf> downloader: Downloaded 15300/93731 bytes (16%)
[00:12:32.364,471] <inf> downloader: Downloaded 15780/93731 bytes (16%)
[00:12:32.373,565] <inf> downloader: Downloaded 17000/93731 bytes (18%)
[00:12:32.777,404] <inf> downloader: Downloaded 17480/93731 bytes (18%)
[00:12:32.786,529] <inf> downloader: Downloaded 18700/93731 bytes (19%)
[00:12:33.090,393] <inf> downloader: Downloaded 19180/93731 bytes (20%)
[00:12:33.099,243] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:34.221,588] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:34.231,658] <inf> downloader: Downloaded 20400/93731 bytes (21%)
[00:12:34.725,402] <inf> downloader: Downloaded 21904/93731 bytes (23%)
[00:12:34.788,391] <inf> downloader: Downloaded 22100/93731 bytes (23%)
[00:12:35.196,502] <inf> downloader: Downloaded 22580/93731 bytes (24%)
[00:12:35.205,627] <inf> downloader: Downloaded 23800/93731 bytes (25%)
[00:12:35.673,614] <inf> downloader: Downloaded 25304/93731 bytes (26%)
[00:12:35.735,839] <inf> downloader: Downloaded 25500/93731 bytes (27%)
[00:12:36.153,381] <inf> downloader: Downloaded 27004/93731 bytes (28%)
[00:12:36.164,367] <inf> downloader: Downloaded 27200/93731 bytes (29%)
[00:12:36.622,467] <inf> downloader: Downloaded 27680/93731 bytes (29%)
[00:12:36.631,103] <inf> downloader: Downloaded 28900/93731 bytes (30%)
[00:12:36.640,716] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:37.505,554] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:37.937,500] <inf> downloader: Downloaded 29379/93731 bytes (31%)
[00:12:37.996,643] <inf> downloader: Downloaded 30600/93731 bytes (32%)
[00:12:38.461,639] <inf> downloader: Downloaded 32103/93731 bytes (34%)
[00:12:38.472,625] <inf> downloader: Downloaded 32300/93731 bytes (34%)
[00:12:38.840,057] <inf> downloader: Downloaded 33803/93731 bytes (36%)
[00:12:38.902,557] <inf> downloader: Downloaded 34000/93731 bytes (36%)
[00:12:39.286,346] <inf> downloader: Downloaded 35503/93731 bytes (37%)
[00:12:39.298,797] <inf> downloader: Downloaded 35700/93731 bytes (38%)
[00:12:39.737,548] <inf> downloader: Downloaded 36179/93731 bytes (38%)
[00:12:39.746,673] <inf> downloader: Downloaded 37400/93731 bytes (39%)
[00:12:40.196,899] <inf> downloader: Downloaded 38903/93731 bytes (41%)
[00:12:40.207,519] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:41.001,617] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:41.011,566] <inf> downloader: Downloaded 39100/93731 bytes (41%)
[00:12:41.355,651] <inf> downloader: Downloaded 40603/93731 bytes (43%)
[00:12:41.368,133] <inf> downloader: Downloaded 40800/93731 bytes (43%)
[00:12:41.807,128] <inf> downloader: Downloaded 42303/93731 bytes (45%)
[00:12:41.870,117] <inf> downloader: Downloaded 42500/93731 bytes (45%)
[00:12:42.232,086] <inf> downloader: Downloaded 44003/93731 bytes (46%)
[00:12:42.242,889] <inf> downloader: Downloaded 44200/93731 bytes (47%)
[00:12:42.607,086] <inf> downloader: Downloaded 45703/93731 bytes (48%)
[00:12:42.670,043] <inf> downloader: Downloaded 45900/93731 bytes (48%)
[00:12:43.006,103] <inf> downloader: Downloaded 47403/93731 bytes (50%)
[00:12:43.018,432] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:43.927,642] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:43.937,591] <inf> downloader: Downloaded 47600/93731 bytes (50%)
[00:12:44.242,614] <inf> downloader: Downloaded 49103/93731 bytes (52%)
[00:12:44.255,096] <inf> downloader: Downloaded 49300/93731 bytes (52%)
[00:12:44.572,845] <inf> downloader: Downloaded 50803/93731 bytes (54%)
[00:12:44.635,833] <inf> downloader: Downloaded 51000/93731 bytes (54%)
[00:12:45.009,368] <inf> downloader: Downloaded 52503/93731 bytes (56%)
[00:12:45.021,850] <inf> downloader: Downloaded 52700/93731 bytes (56%)
[00:12:45.337,158] <inf> downloader: Downloaded 54203/93731 bytes (57%)
[00:12:45.400,115] <inf> downloader: Downloaded 54400/93731 bytes (58%)
[00:12:45.736,602] <inf> downloader: Downloaded 55903/93731 bytes (59%)
[00:12:45.749,053] <inf> downloader: Downloaded 56100/93731 bytes (59%)
[00:12:46.041,107] <inf> downloader: Downloaded 57603/93731 bytes (61%)
[00:12:46.053,436] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:46.846,649] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:46.856,597] <inf> downloader: Downloaded 57800/93731 bytes (61%)
[00:12:47.205,535] <inf> downloader: Downloaded 59303/93731 bytes (63%)
[00:12:47.268,524] <inf> downloader: Downloaded 59500/93731 bytes (63%)
[00:12:47.657,653] <inf> downloader: Downloaded 59979/93731 bytes (63%)
[00:12:47.666,748] <inf> downloader: Downloaded 61200/93731 bytes (65%)
[00:12:47.969,207] <inf> downloader: Downloaded 62703/93731 bytes (66%)
[00:12:48.032,135] <inf> downloader: Downloaded 62900/93731 bytes (67%)
[00:12:48.342,529] <inf> downloader: Downloaded 64403/93731 bytes (68%)
[00:12:48.354,980] <inf> downloader: Downloaded 64600/93731 bytes (68%)
[00:12:48.693,695] <inf> downloader: Downloaded 65079/93731 bytes (69%)
[00:12:48.702,789] <inf> downloader: Downloaded 66300/93731 bytes (70%)
[00:12:48.763,916] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:49.526,763] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:49.842,773] <inf> downloader: Downloaded 67803/93731 bytes (72%)
[00:12:49.855,224] <inf> downloader: Downloaded 68000/93731 bytes (72%)
[00:12:50.209,167] <inf> downloader: Downloaded 69503/93731 bytes (74%)
[00:12:50.221,649] <inf> downloader: Downloaded 69700/93731 bytes (74%)
[00:12:50.515,106] <inf> downloader: Downloaded 71203/93731 bytes (75%)
[00:12:50.578,094] <inf> downloader: Downloaded 71400/93731 bytes (76%)
[00:12:50.901,245] <inf> downloader: Downloaded 72903/93731 bytes (77%)
[00:12:50.913,696] <inf> downloader: Downloaded 73100/93731 bytes (77%)
[00:12:51.249,603] <inf> downloader: Downloaded 74603/93731 bytes (79%)
[00:12:51.312,561] <inf> downloader: Downloaded 74800/93731 bytes (79%)
[00:12:51.611,175] <inf> downloader: Downloaded 76303/93731 bytes (81%)
[00:12:51.623,504] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:52.481,750] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:52.491,699] <inf> downloader: Downloaded 76500/93731 bytes (81%)
[00:12:52.828,125] <inf> downloader: Downloaded 78003/93731 bytes (83%)
[00:12:52.840,576] <inf> downloader: Downloaded 78200/93731 bytes (83%)
[00:12:53.129,394] <inf> downloader: Downloaded 79703/93731 bytes (85%)
[00:12:53.192,382] <inf> downloader: Downloaded 79900/93731 bytes (85%)
[00:12:53.532,989] <inf> downloader: Downloaded 81403/93731 bytes (86%)
[00:12:53.543,762] <inf> downloader: Downloaded 81600/93731 bytes (87%)
[00:12:53.853,057] <inf> downloader: Downloaded 83103/93731 bytes (88%)
[00:12:53.916,015] <inf> downloader: Downloaded 83300/93731 bytes (88%)
[00:12:54.290,771] <inf> downloader: Downloaded 83779/93731 bytes (89%)
[00:12:54.299,926] <inf> downloader: Downloaded 85000/93731 bytes (90%)
[00:12:54.312,225] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:55.271,789] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:55.558,410] <inf> downloader: Downloaded 86503/93731 bytes (92%)
[00:12:55.569,183] <inf> downloader: Downloaded 86700/93731 bytes (92%)
[00:12:55.940,979] <inf> downloader: Downloaded 88203/93731 bytes (94%)
[00:12:55.953,460] <inf> downloader: Downloaded 88400/93731 bytes (94%)
[00:12:56.271,575] <inf> downloader: Downloaded 89903/93731 bytes (95%)
[00:12:56.284,057] <inf> downloader: Downloaded 90100/93731 bytes (96%)
[00:12:56.596,343] <inf> downloader: Downloaded 91603/93731 bytes (97%)
[00:12:56.659,301] <inf> downloader: Downloaded 91800/93731 bytes (97%)
[00:12:56.969,604] <inf> downloader: Downloaded 93303/93731 bytes (99%)
[00:12:56.982,055] <inf> downloader: Downloaded 93500/93731 bytes (99%)
[00:12:57.215,423] <inf> downloader: Downloaded 93731/93731 bytes (100%)
[00:12:57.224,334] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:12:58.007,873] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:12:58.017,700] <inf> downloader: Download complete
[00:12:58.026,580] <inf> dfu_target_mcuboot: MCUBoot image-0 upgrade scheduled. Reset device to apply
+CEREG: 0
+CGEV: ME DETACH
[00:12:58.422,027] <inf> nrf_cloud_rest_fota: Network connectivity lost!
+CSCON: 0
[00:12:58.720,092] <inf> nrf_cloud_rest_fota: Rebooting in 10s to complete FOTA update...
*** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
*** Using Zephyr OS v4.3.99-fd9204a02d52 ***
Attempting to boot slot 0.
Attempting to boot from address 0x8200.
I: Trying to get Firmware version
I: Verifying signature against key 0.
I: Hash: 0x3e...f9
I: Firmware signature verified.
Firmware version 2
[00:00:00.255,065] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
[00:00:00.308,502] <inf> nrf_cloud_rest_fota: nRF Cloud REST FOTA Sample, version: 1.0.0
[00:00:00.715,179] <inf> nrf_cloud_fota_common: Saved job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0, validate: 1, bl: 0x0
[00:00:00.728,332] <inf> nrf_cloud_rest_fota: Application Name: nRF_Cloud_REST_FOTA_Sample
[00:00:00.737,091] <inf> nrf_cloud_rest_fota: nRF Connect SDK version: 3.1.1-e2a97fe2578a
[00:00:00.949,645] <inf> nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
[00:00:00.960,174] <inf> nrf_cloud_credentials: CA Size: 1792, AWS: Likely, CoAP: Likely
[00:00:00.968,780] <inf> nrf_cloud_rest_fota: nRF Cloud credentials detected!
[00:00:00.976,440] <inf> nrf_cloud_rest_fota: Enabling connectivity...
+CGEV: EXCE STATUS 0
+CEREG: 2,"A042","07A82E1E",7
%MDMEV: PRACH CE-LEVEL 0
+CSCON: 1
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
%MDMEV: SEARCH STATUS 2
+CEREG: 5,"A042","07A82E1E",7,,,"11100000","11100000"
[00:00:04.337,982] <inf> nrf_cloud_rest_fota: Connected to LTE
[00:00:04.731,781] <inf> nrf_cloud_rest_fota: Waiting for modem to acquire network time...
[00:00:07.741,821] <inf> nrf_cloud_rest_fota: Network time obtained
[00:00:07.748,535] <inf> nrf_cloud_rest_fota: Sending device status...
[00:00:07.764,038] <inf> nrf_cloud_info: Device ID: 5042394b-3538-4725-8039-09253fa4cad8
[00:00:07.773,284] <inf> nrf_cloud_info: IMEI: 357387860001833
[00:00:07.872,467] <inf> nrf_cloud_info: UUID: 5042394b-3538-4725-8039-09253fa4cad8
[00:00:07.887,908] <inf> nrf_cloud_info: Modem FW: mfw_nrf91x1_2.0.4
[00:00:07.894,805] <inf> nrf_cloud_info: Protocol: REST
[00:00:07.901,306] <inf> nrf_cloud_info: Download protocol: HTTPS
[00:00:07.907,897] <inf> nrf_cloud_info: Sec tag: 16842753
[00:00:07.914,764] <inf> nrf_cloud_info: Host name: api.nrfcloud.com
[00:00:11.096,923] <inf> nrf_cloud_rest_fota: FOTA enabled in device shadow
[00:00:11.104,370] <inf> nrf_cloud_fota_poll: Updating FOTA job status...
[00:00:11.892,517] <inf> nrf_cloud_fota_poll: FOTA job updated, status: 3
[00:00:11.928,375] <inf> nrf_cloud_fota_poll: Waiting 30 seconds for job update to be processed by nRF Cloud...
+CSCON: 0
+CEREG: 5,"A042","07C2770A",7,,,"11100000","11100000"
[00:00:41.939,056] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
%MDMEV: PRACH CE-LEVEL 0
+CSCON: 1
[00:00:43.309,814] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:00:43.319,641] <inf> nrf_cloud_fota_poll: Starting FOTA download of bundles.nrfcloud.com/64c49359-9733-4f53-b5ed-8a92b8d20fc6/at_monitor.signed.bin
[00:00:43.333,770] <inf> nrf_cloud_fota_poll: Updating FOTA job status...
[00:00:44.050,994] <inf> nrf_cloud_fota_poll: FOTA job updated, status: 1
[00:00:44.058,746] <wrn> downloader: Protocol not specified for bundles.nrfcloud.com/64c49359-9733-4f53-b5ed-8a92b8d20fc6/at_monitor.signed.bin, attempting https://
[00:00:44.304,840] <inf> downloader: Setting up TLS credentials, sec tag count 1
[00:00:44.312,805] <inf> downloader: Connecting to 2600:9000:28eb:bc00:7:76af:9a40:93a1
[00:00:44.321,929] <inf> downloader: Failed to connect on IPv6 (err -118), attempting IPv4
[00:00:44.522,460] <inf> downloader: Setting up TLS credentials, sec tag count 1
[00:00:44.530,426] <inf> downloader: Connecting to 3.174.46.32
[00:00:46.691,192] <inf> downloader: Downloaded 1700/93731 bytes (1%)
[00:00:47.180,023] <inf> downloader: Downloaded 3205/93731 bytes (3%)
[00:00:47.192,321] <inf> downloader: Downloaded 3400/93731 bytes (3%)
[00:00:47.831,237] <inf> downloader: Downloaded 3881/93731 bytes (4%)
[00:00:47.840,209] <inf> downloader: Downloaded 5100/93731 bytes (5%)
[00:00:48.386,413] <inf> downloader: Downloaded 6605/93731 bytes (7%)
[00:00:48.398,712] <inf> downloader: Downloaded 6800/93731 bytes (7%)
[00:00:49.019,165] <inf> downloader: Downloaded 8305/93731 bytes (8%)
[00:00:49.031,494] <inf> downloader: Downloaded 8500/93731 bytes (9%)
[00:00:49.736,175] <inf> downloader: Downloaded 10004/93731 bytes (10%)
[00:00:49.799,011] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:00:50.824,920] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:00:50.834,869] <inf> downloader: Downloaded 10200/93731 bytes (10%)
[00:00:51.889,221] <inf> downloader: Downloaded 10679/93731 bytes (11%)
[00:00:51.898,345] <inf> downloader: Downloaded 11900/93731 bytes (12%)
[00:00:52.459,320] <inf> downloader: Downloaded 12379/93731 bytes (13%)
[00:00:52.468,414] <inf> downloader: Downloaded 13600/93731 bytes (14%)
[00:00:52.989,349] <inf> downloader: Downloaded 14079/93731 bytes (15%)
[00:00:52.998,443] <inf> downloader: Downloaded 15300/93731 bytes (16%)
[00:00:53.496,887] <inf> downloader: Downloaded 16803/93731 bytes (17%)
[00:00:53.509,338] <inf> downloader: Downloaded 17000/93731 bytes (18%)
[00:00:54.236,358] <inf> downloader: Downloaded 17479/93731 bytes (18%)
[00:00:54.245,483] <inf> downloader: Downloaded 18700/93731 bytes (19%)
[00:00:54.956,970] <inf> downloader: Downloaded 20203/93731 bytes (21%)
[00:00:54.969,299] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
[00:00:55.977,630] <inf> nrf_cloud_fota_poll: FOTA Job: 67418bff-32e2-4d3a-b415-4ac02c5bde25, type: 0

[00:00:55.987,579] <inf> downloader: Downloaded 20400/93731 bytes (21%)

```

Parents
  • Hello,

    can you show the logs with a few more logging options enabled? First off you can enable CONFIG_MCUBOOT_LOG_LEVEL_INF or even CONFIG_MCUBOOT_LOG_LEVEL_DBG for more explicit logging information.

  • Hello Hakon,

    CONFIG_MCUBOOT_LOG_LEVEL_X doesn't compile for me, I instead used CONFIG_MCUBOOT_UTIL_LOG_LEVEL_DBG

    logs and prj.conf are below. all is default except the line you asked for at the bottom

    it is still booting into " nRF Cloud CoAP FOTA Sample, version: 1.0.0" when V1.1.0 is on nRF cloud

    [00:02:42.866,607] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
    [00:02:43.320,770] <inf> nrf_cloud_fota_poll: FOTA Job: 1c33c419-47ba-4902-9dfa-079ee1ac4c56, type: 0

    [00:02:43.824,127] <inf> downloader: Downloaded 269312/297723 bytes (90%)
    [00:02:44.287,109] <inf> downloader: Downloaded 270336/297723 bytes (90%)
    [00:02:44.769,714] <inf> downloader: Downloaded 271360/297723 bytes (91%)
    [00:02:45.298,126] <inf> downloader: Downloaded 272384/297723 bytes (91%)
    [00:02:45.697,143] <inf> downloader: Downloaded 273408/297723 bytes (91%)
    [00:02:46.103,149] <inf> downloader: Downloaded 274432/297723 bytes (92%)
    [00:02:46.703,430] <inf> downloader: Downloaded 275456/297723 bytes (92%)
    [00:02:47.303,161] <inf> downloader: Downloaded 276480/297723 bytes (92%)
    [00:02:47.809,753] <inf> downloader: Downloaded 277504/297723 bytes (93%)
    [00:02:48.252,746] <inf> downloader: Downloaded 278528/297723 bytes (93%)
    [00:02:48.665,191] <inf> downloader: Downloaded 279552/297723 bytes (93%)
    [00:02:49.129,211] <inf> downloader: Downloaded 280576/297723 bytes (94%)
    [00:02:49.527,343] <inf> downloader: Downloaded 281600/297723 bytes (94%)
    [00:02:49.964,111] <inf> downloader: Downloaded 282624/297723 bytes (94%)
    [00:02:50.579,193] <inf> downloader: Downloaded 283648/297723 bytes (95%)
    [00:02:51.343,231] <inf> downloader: Downloaded 284672/297723 bytes (95%)
    [00:02:52.263,153] <inf> downloader: Downloaded 285696/297723 bytes (95%)
    [00:02:53.075,836] <inf> downloader: Downloaded 286720/297723 bytes (96%)
    [00:02:53.803,833] <inf> downloader: Downloaded 287744/297723 bytes (96%)
    [00:02:54.451,812] <inf> downloader: Downloaded 288768/297723 bytes (96%)
    [00:02:55.087,280] <inf> downloader: Downloaded 289792/297723 bytes (97%)
    [00:02:55.695,465] <inf> downloader: Downloaded 290816/297723 bytes (97%)
    [00:02:56.247,863] <inf> downloader: Downloaded 291840/297723 bytes (98%)
    [00:02:56.883,850] <inf> downloader: Downloaded 292864/297723 bytes (98%)
    [00:02:57.427,459] <inf> downloader: Downloaded 293888/297723 bytes (98%)
    [00:02:58.011,291] <inf> downloader: Downloaded 294912/297723 bytes (99%)
    [00:02:58.513,916] <inf> downloader: Downloaded 295936/297723 bytes (99%)
    [00:02:59.031,890] <inf> downloader: Downloaded 296960/297723 bytes (99%)
    [00:02:59.874,267] <inf> downloader: Downloaded 297723/297723 bytes (100%)
    [00:02:59.883,300] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
    [00:03:00.670,959] <inf> nrf_cloud_fota_poll: FOTA Job: 1c33c419-47ba-4902-9dfa-079ee1ac4c56, type: 0

    [00:03:00.680,786] <inf> downloader: Download complete
    [00:03:00.688,507] <dbg> mcuboot_util: boot_set_next: boot_set_next: fa 0x6cda4 active == 0, confirm == 0
    [00:03:00.699,218] <dbg> mcuboot_util: boot_write_magic: boot_write_magic: fa_id=2 off=0xcfff0 (0xcfff0)
    [00:03:00.709,533] <dbg> mcuboot_util: boot_write_swap_info: writing swap_info; fa_id=2 off=0xcffd8 (0xcffd8), swap_type=0x2 image_num=0x0
    [00:03:00.722,534] <dbg> mcuboot_util: boot_write_trailer: boot_write_trailer: for 0x6cda4 at 851928, size = 1
    [00:03:00.733,367] <inf> dfu_target_mcuboot: MCUBoot image-0 upgrade scheduled. Reset device to apply
    +CEREG: 0
    +CGEV: ME DETACH
    [00:03:01.425,201] <inf> nrf_cloud_coap_fota_sample: Network connectivity lost!
    +CSCON: 0
    [00:03:01.731,750] <inf> nrf_cloud_coap_fota_sample: Rebooting in 10s to complete FOTA update...
    *** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �[00:00:00.255,157] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
    *** Booting My Application v1.0.0-ba167d9f3db4 ***
    *** Using nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    [00:00:00.313,385] <inf> nrf_cloud_coap_fota_sample: nRF Cloud CoAP FOTA Sample, version: 1.0.0
    [00:00:00.775,299] <inf> nrf_cloud_fota_common: Saved job: 1c33c419-47ba-4902-9dfa-079ee1ac4c56, type: 0, validate: 1, bl: 0x0
    [00:00:00.788,574] <inf> nrf_cloud_coap_fota_sample: Application Name: N/A
    [00:00:00.795,928] <inf> nrf_cloud_coap_fota_sample: nRF Connect SDK version: 3.3.0-ba167d9f3db4
    [00:00:01.022,186] <inf> nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
    [00:00:01.032,714] <inf> nrf_cloud_credentials: CA Size: 1792, AWS: Likely, CoAP: Likely
    [00:00:01.041,320] <inf> nrf_cloud_coap_fota_sample: nRF Cloud credentials detected!
    [00:00:01.049,591] <inf> nrf_cloud_coap_fota_sample: Enabling connectivity...
    +CGEV: EXCE STATUS 0
    +CEREG: 2,"A042","07A82E1E",7
    %MDMEV: PRACH CE-LEVEL 0
    +CSCON: 1
    +CGEV: ME PDN ACT 0,0
    +CNEC_ESM: 50,0
    %MDMEV: SEARCH STATUS 2
    +CEREG: 5,"A042","07A82E1E",7,,,"11100000","11100000"
    [00:00:04.291,442] <inf> nrf_cloud_coap_fota_sample: Connected to LTE
    [00:00:04.777,374] <inf> nrf_cloud_coap_fota_sample: Waiting for modem to acquire network time...
    [00:00:07.796,081] <inf> nrf_cloud_coap_fota_sample: Network time obtained
    [00:00:07.803,436] <inf> nrf_cloud_info: Device ID: 5042394b-3538-4725-8039-09253fa4cad8
    [00:00:07.818,969] <inf> nrf_cloud_info: IMEI:      357387860001833
    [00:00:07.918,518] <inf> nrf_cloud_info: UUID:      5042394b-3538-4725-8039-09253fa4cad8
    [00:00:07.927,459] <inf> nrf_cloud_info: Modem FW:  mfw_nrf91x1_2.0.4
    [00:00:07.934,387] <inf> nrf_cloud_info: Protocol:          CoAP
    [00:00:07.940,887] <inf> nrf_cloud_info: Download protocol: CoAP
    [00:00:07.947,387] <inf> nrf_cloud_info: Sec tag:           16842753
    [00:00:07.954,254] <inf> nrf_cloud_info: CoAP JWT Sec tag:  16842753
    [00:00:07.961,120] <inf> nrf_cloud_info: Host name:         coap.nrfcloud.com
    [00:00:10.159,149] <inf> nrf_cloud_coap_transport: Request authorization with JWT
    [00:00:10.494,934] <inf> nrf_cloud_coap_transport: Authorization result_code: 2.01
    [00:00:10.503,234] <inf> nrf_cloud_coap_transport: Authorized
    [00:00:10.509,643] <inf> nrf_cloud_coap_transport: DTLS CID is active
    [00:00:11.142,242] <inf> nrf_cloud_coap_fota_sample: Sending device status...
    [00:00:11.462,219] <inf> nrf_cloud_coap_fota_sample: FOTA enabled in device shadow
    [00:00:11.470,275] <inf> nrf_cloud_fota_poll: Updating FOTA job status...
    [00:00:11.750,061] <inf> nrf_cloud_fota_poll: FOTA job updated, status: 3
    [00:00:11.805,816] <inf> nrf_cloud_fota_poll: Waiting 30 seconds for job update to be processed by nRF Cloud...
    +CSCON: 0
    +CEREG: 5,"A042","07C2770A",7,,,"11100000","11100000"
    [00:00:41.816,497] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
    %MDMEV: PRACH CE-LEVEL 0
    %MDMEV: PRACH CE-LEVEL 1
    +CSCON: 1
    [00:00:43.866,058] <inf> nrf_cloud_fota_poll: FOTA Job: 1c33c419-47ba-4902-9dfa-079ee1ac4c56, type: 0

    [00:00:43.875,885] <inf> nrf_cloud_fota_poll: Starting FOTA download of bundles.nrfcloud.com/663414a5-5d4e-4161-b60e-094604d5f326/nrf_cloud_coap_fota.signed.bin
    [00:00:43.890,808] <inf> nrf_cloud_fota_poll: Updating FOTA job status...
    [00:00:44.223,205] <inf> nrf_cloud_fota_poll: FOTA job updated, status: 1
    [00:00:44.232,177] <inf> downloader: Setting up TLS credentials, sec tag count 1
    [00:00:44.240,539] <inf> downloader: Connecting to 2600:1f18:56ff:3d00::547c
    [00:00:44.248,504] <inf> downloader: Failed to connect on IPv6 (err -118), attempting IPv4
    [00:00:44.258,056] <inf> downloader: Setting up TLS credentials, sec tag count 1
    [00:00:44.266,235] <inf> downloader: Connecting to 23.22.110.24
    %MDMEV: PRACH CE-LEVEL 0
    %MDMEV: PRACH CE-LEVEL 1
    [00:00:48.346,282] <inf> downloader: Downloaded 1024/297723 bytes (0%)
    [00:00:49.024,902] <inf> downloader: Downloaded 2048/297723 bytes (0%)
    [00:00:49.436,370] <inf> downloader: Downloaded 3072/297723 bytes (1%)

    # TF-M config
    CONFIG_TFM_PROFILE_TYPE_MINIMAL=y

    # Sample
    CONFIG_NRF_CLOUD_COAP_FOTA_SAMPLE_LOG_LEVEL_INF=y

    # nRF Cloud CoAP
    CONFIG_NRF_CLOUD=y
    CONFIG_NRF_CLOUD_COAP=y
    CONFIG_NRF_CLOUD_COAP_DOWNLOADS=y
    CONFIG_NRF_CLOUD_CHECK_CREDENTIALS=y
    CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y

    # CoAP Client
    CONFIG_COAP_CLIENT_BLOCK_SIZE=1024
    CONFIG_COAP_CLIENT_STACK_SIZE=6144
    CONFIG_COAP_CLIENT_THREAD_PRIORITY=0
    CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=192

    # Networking
    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_OFFLOAD=y

    # Enable LTE Connectivity using Connection Manager
    CONFIG_NET_IPV4=y
    CONFIG_NET_IPV6=y
    CONFIG_NET_IPV6_NBR_CACHE=n
    CONFIG_NET_IPV6_MLD=n
    CONFIG_NET_CONNECTION_MANAGER=y
    CONFIG_NRF_MODEM_LIB=y
    CONFIG_NRF_MODEM_LIB_NET_IF=y
    CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_DOWN=y
    CONFIG_NRF_MODEM_LIB_NET_IF_DOWN_DEFAULT_LTE_DISCONNECT=y
    CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
    CONFIG_NET_MGMT_EVENT_STACK_SIZE=2048

    # FOTA
    CONFIG_NRF_CLOUD_FOTA_POLL=y
    # FOTA download
    CONFIG_FOTA_DOWNLOAD=y
    CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
    CONFIG_DFU_TARGET=y
    CONFIG_DOWNLOADER=y
    CONFIG_DOWNLOADER_STACK_SIZE=3072

    # MCUBOOT
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_IMG_MANAGER=y
    CONFIG_STREAM_FLASH=y
    CONFIG_MCUBOOT_IMG_MANAGER=y
    CONFIG_IMG_ERASE_PROGRESSIVELY=y
    CONFIG_SECURE_BOOT=y
    CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n

    # Settings
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_FCB=y
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_FCB=y
    CONFIG_MPU_ALLOW_FLASH_WRITE=y

    # Button/LED support
    CONFIG_DK_LIBRARY=y

    # LTE Link
    CONFIG_LTE_LINK_CONTROL=y

    # AT Host library - Used to send AT commands directy from an UART terminal and to allow
    #            integration with nRF Connect for Desktop applications.
    CONFIG_AT_HOST_LIBRARY=y
    # Extended AT host stack size since some nrf_cloud credentials are longer than 1024 bytes.
    CONFIG_AT_MONITOR_HEAP_SIZE=4096
    CONFIG_AT_HOST_STACK_SIZE=2048

    # Modem info
    CONFIG_MODEM_INFO=y
    CONFIG_MODEM_INFO_ADD_DEVICE=y
    CONFIG_MODEM_INFO_ADD_NETWORK=y
    CONFIG_MODEM_INFO_ADD_SIM=y
    CONFIG_MODEM_INFO_ADD_SIM_ICCID=y
    CONFIG_MODEM_INFO_ADD_SIM_IMSI=y

    # System
    CONFIG_HEAP_MEM_POOL_SIZE=8192
    CONFIG_MAIN_STACK_SIZE=3072
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    CONFIG_ASSERT=y
    CONFIG_REBOOT=y
    CONFIG_FPU=y
    CONFIG_PICOLIBC_IO_FLOAT=y
    CONFIG_EVENTS=y
    CONFIG_POSIX_API=y

    # Logging
    CONFIG_LOG=y
    CONFIG_LOG_MODE_IMMEDIATE=y
    CONFIG_UART_INTERRUPT_DRIVEN=y

    # Modem key management
    CONFIG_MODEM_KEY_MGMT=y
    CONFIG_MODEM_JWT=y
    CONFIG_NRF_CLOUD_SEC_TAG=16842753

    CONFIG_LTE_LC_PSM_MODULE=y
    CONFIG_LTE_LINK_CONTROL=y

    #Requested by Hakon on dev forum
    CONFIG_MCUBOOT_UTIL_LOG_LEVEL_DBG=y

  • This is for V1.0.0

    external_flash (0x2000000 - 32768kB):
    +------------------------------------------------+
    | 0x0: mcuboot_secondary (0xd0000 - 832kB) |
    | 0xd0000: fmfu_storage (0x400000 - 4096kB) |
    | 0x4d0000: settings_storage (0x2000 - 8kB) |
    | 0x4d2000: external_flash (0x1b2e000 - 27832kB) |
    +------------------------------------------------+
    
    flash_primary (0x100000 - 1024kB):
    +--------------------------------------------------+
    +---0x0: b0_container (0x8000 - 32kB)--------------+
    | 0x0: b0 (0x8000 - 32kB) |
    +---0x8000: s0 (0x14000 - 80kB)--------------------+
    | 0x8000: s0_pad (0x200 - 512B) |
    +---0x8200: s0_image (0x13e00 - 79kB)--------------+
    | 0x8200: mcuboot (0x13e00 - 79kB) |
    +---0x1c000: s1 (0x14000 - 80kB)-------------------+
    | 0x1c000: s1_pad (0x200 - 512B) |
    | 0x1c200: s1_image (0x13e00 - 79kB) |
    +---0x30000: mcuboot_primary (0xd0000 - 832kB)-----+
    +---0x30000: tfm_secure (0x8000 - 32kB)------------+
    | 0x30000: mcuboot_pad (0x200 - 512B) |
    +---0x30200: app_image (0xcfe00 - 831kB)-----------+
    +---0x30200: mcuboot_primary_app (0xcfe00 - 831kB)-+
    | 0x30200: tfm (0x7e00 - 31kB) |
    +---0x38000: tfm_nonsecure (0xc8000 - 800kB)-------+
    | 0x38000: app (0xc8000 - 800kB) |
    +--------------------------------------------------+
    
    otp (0x2f4 - 756B):
    +------------------------------------+
    | 0xff8108: provision (0x280 - 640B) |
    | 0xff8388: otp (0x74 - 116B) |
    +------------------------------------+
    
    sram_primary (0x40000 - 256kB):
    +--------------------------------------------------+
    +---0x20000000: mcuboot_sram (0x40000 - 256kB)-----+
    +---0x20000000: sram_secure (0x4000 - 16kB)--------+
    | 0x20000000: tfm_sram (0x4000 - 16kB) |
    +---0x20004000: sram_nonsecure (0x3c000 - 240kB)---+
    +---0x20004000: nrf_modem_lib_sram (0x4568 - 17kB)-+
    | 0x20004000: nrf_modem_lib_ctrl (0x4e8 - 1kB) |
    | 0x200044e8: nrf_modem_lib_tx (0x2080 - 8kB) |
    | 0x20006568: nrf_modem_lib_rx (0x2000 - 8kB) |
    +--------------------------------------------------+
    | 0x20008568: sram_primary (0x37a98 - 222kB) |
    +--------------------------------------------------+

    This is for V1.1.0

    external_flash (0x2000000 - 32768kB):
    +------------------------------------------------+
    | 0x0: mcuboot_secondary (0xd0000 - 832kB) |
    | 0xd0000: fmfu_storage (0x400000 - 4096kB) |
    | 0x4d0000: settings_storage (0x2000 - 8kB) |
    | 0x4d2000: external_flash (0x1b2e000 - 27832kB) |
    +------------------------------------------------+
    
    flash_primary (0x100000 - 1024kB):
    +--------------------------------------------------+
    +---0x0: b0_container (0x8000 - 32kB)--------------+
    | 0x0: b0 (0x8000 - 32kB) |
    +---0x8000: s0 (0x14000 - 80kB)--------------------+
    | 0x8000: s0_pad (0x200 - 512B) |
    +---0x8200: s0_image (0x13e00 - 79kB)--------------+
    | 0x8200: mcuboot (0x13e00 - 79kB) |
    +---0x1c000: s1 (0x14000 - 80kB)-------------------+
    | 0x1c000: s1_pad (0x200 - 512B) |
    | 0x1c200: s1_image (0x13e00 - 79kB) |
    +---0x30000: mcuboot_primary (0xd0000 - 832kB)-----+
    +---0x30000: tfm_secure (0x8000 - 32kB)------------+
    | 0x30000: mcuboot_pad (0x200 - 512B) |
    +---0x30200: app_image (0xcfe00 - 831kB)-----------+
    +---0x30200: mcuboot_primary_app (0xcfe00 - 831kB)-+
    | 0x30200: tfm (0x7e00 - 31kB) |
    +---0x38000: tfm_nonsecure (0xc8000 - 800kB)-------+
    | 0x38000: app (0xc8000 - 800kB) |
    +--------------------------------------------------+
    
    otp (0x2f4 - 756B):
    +------------------------------------+
    | 0xff8108: provision (0x280 - 640B) |
    | 0xff8388: otp (0x74 - 116B) |
    +------------------------------------+
    
    sram_primary (0x40000 - 256kB):
    +--------------------------------------------------+
    +---0x20000000: mcuboot_sram (0x40000 - 256kB)-----+
    +---0x20000000: sram_secure (0x4000 - 16kB)--------+
    | 0x20000000: tfm_sram (0x4000 - 16kB) |
    +---0x20004000: sram_nonsecure (0x3c000 - 240kB)---+
    +---0x20004000: nrf_modem_lib_sram (0x4568 - 17kB)-+
    | 0x20004000: nrf_modem_lib_ctrl (0x4e8 - 1kB) |
    | 0x200044e8: nrf_modem_lib_tx (0x2080 - 8kB) |
    | 0x20006568: nrf_modem_lib_rx (0x2000 - 8kB) |
    +--------------------------------------------------+
    | 0x20008568: sram_primary (0x37a98 - 222kB) |
    +--------------------------------------------------+

    All I changed between them is 

    VERSION_MINOR = 1 in VERSION
  • Could you share your sysbuild/mcuboot.conf and sysbuild/mcuboot.overlay (or equivalent) so we can verify the MCUboot-side external flash configuration?

  • nrf_cloud_coap_fota.zip

    Hi Hakon,

    I am doing this with a complketely fresh install of V3.3.0

    I cannot see a mcuboot.conf  or sysbuild/mcuboot.overlay in ncs/v3.3.0/nrf/sysbuild

  • You may fetch the ".conf" from "build/mcuboot/zephyr" directory along with the "partitions.yml" from "build" directory.

    By the way, maybe Nordic has just not retested FOTA for Thingies as in NCS 3.2.3 (see migrating app using mcuboot to NCS 3.2.3 - issue with MCUboot image IDs automatically assigned? ). Then it would be much faster to do that test on Nordic's side instead of trying to gather all the info from the user.

  • I have managed to get some more logs out of the device 

     > <wrn> nrf_cloud_fota_common: Bootloader slot unchanged, FOTA update invalidated

    nRF cloud is now saying "Complete with Errors" for the download

    I have tried both the dfu_mcuboot and dfu_appllication.zips and it gives me the same error with both

    [00:02:13.057,434] <inf> downloader: Downloaded 45046/45046 bytes (100%)
    [00:02:13.066,284] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
    [00:02:13.498,199] <inf> nrf_cloud_fota_poll: FOTA Job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2
    
    [00:02:13.507,995] <inf> downloader: Download complete
    [00:02:13.516,479] <dbg> mcuboot_util: boot_set_next: boot_set_next: fa 0x6ceb4 active == 0, confirm == 0
    [00:02:13.527,191] <dbg> mcuboot_util: boot_write_magic: boot_write_magic: fa_id=2 off=0xcfff0 (0xcfff0)
    [00:02:13.537,506] <dbg> mcuboot_util: boot_write_swap_info: writing swap_info; fa_id=2 off=0xcffd8 (0xcffd8), swap_type=0x2 image_num=0x0
    [00:02:13.550,506] <dbg> mcuboot_util: boot_write_trailer: boot_write_trailer: for 0x6ceb4 at 851928, size = 1
    [00:02:13.561,309] <inf> dfu_target_mcuboot: MCUBoot image-0 upgrade scheduled. Reset device to apply
    +CEREG: 0
    +CGEV: ME DETACH
    [00:02:14.250,518] <inf> nrf_cloud_coap_fota_sample: Network connectivity lost!
    +CSCON: 0
    [00:02:14.672,729] <inf> nrf_cloud_coap_fota_sample: Rebooting in 10s to complete FOTA update...
    *** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �*** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �[00:00:00.255,065] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
    *** Booting My Application v1.0.0-ba167d9f3db4 ***
    *** Using nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    [00:00:00.313,415] <inf> nrf_cloud_coap_fota_sample: nRF Cloud CoAP FOTA Sample, version: 1.0.0
    [00:00:00.837,493] <dbg> nrf_cloud_fota_common: fota_settings_set: Settings key: job, size: 40
    [00:00:00.847,015] <inf> nrf_cloud_fota_common: Saved job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2, validate: 1, bl: 0x3
    [00:00:00.860,290] <inf> nrf_cloud_fota_common: Bootloader FOTA update will be processed on reboot
    [00:00:00.939,788] <inf> nrf_cloud_coap_fota_sample: Rebooting...
    *** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �[00:00:00.255,096] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
    *** Booting My Application v1.0.0-ba167d9f3db4 ***
    *** Using nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    [00:00:00.313,446] <inf> nrf_cloud_coap_fota_sample: nRF Cloud CoAP FOTA Sample, version: 1.0.0
    [00:00:00.841,766] <dbg> nrf_cloud_fota_common: fota_settings_set: Settings key: job, size: 40
    [00:00:00.851,287] <inf> nrf_cloud_fota_common: Saved job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2, validate: 1, bl: 0x7
    [00:00:00.864,746] <wrn> nrf_cloud_fota_common: Bootloader slot unchanged, FOTA update invalidated
    [00:00:00.874,450] <inf> nrf_cloud_coap_fota_sample: Application Name: N/A
    [00:00:00.881,866] <inf> nrf_cloud_coap_fota_sample: nRF Connect SDK version: 3.3.0-ba167d9f3db4
    [00:00:01.120,208] <inf> nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
    [00:00:01.130,737] <inf> nrf_cloud_credentials: CA Size: 1792, AWS: Likely, CoAP: Likely
    [00:00:01.139,343] <inf> nrf_cloud_coap_fota_sample: nRF Cloud credentials detected!
    [00:00:01.147,613] <inf> nrf_cloud_coap_fota_sample: Enabling connectivity...
    

    Here is my partitions.yml

    app:
      address: 0x38000
      end_address: 0x100000
      region: flash_primary
      size: 0xc8000
    app_image:
      address: 0x30200
      end_address: 0x100000
      region: flash_primary
      size: 0xcfe00
      span:
      - tfm
      - app
    b0:
      address: 0x0
      end_address: 0x8000
      region: flash_primary
      size: 0x8000
    b0_container:
      address: 0x0
      end_address: 0x8000
      region: flash_primary
      size: 0x8000
      span:
      - b0
    external_flash:
      address: 0x4d2000
      end_address: 0x2000000
      region: external_flash
      size: 0x1b2e000
    fmfu_storage:
      address: 0xd0000
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0x4d0000
      region: external_flash
      size: 0x400000
    mcuboot:
      address: 0x8200
      end_address: 0x1c000
      region: flash_primary
      size: 0x13e00
    mcuboot_pad:
      address: 0x30000
      end_address: 0x30200
      region: flash_primary
      size: 0x200
    mcuboot_primary:
      address: 0x30000
      end_address: 0x100000
      region: flash_primary
      size: 0xd0000
      span:
      - mcuboot_pad
      - app
      - tfm
    mcuboot_primary_app:
      address: 0x30200
      end_address: 0x100000
      region: flash_primary
      size: 0xcfe00
      span:
      - tfm
      - app
    mcuboot_secondary:
      address: 0x0
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0xd0000
      region: external_flash
      share_size:
      - mcuboot_primary
      size: 0xd0000
    mcuboot_sram:
      address: 0x20000000
      end_address: 0x20040000
      orig_span: &id001
      - nrf_modem_lib_rx
      - nrf_modem_lib_ctrl
      - sram_primary
      - nrf_modem_lib_tx
      - tfm_sram
      region: sram_primary
      size: 0x40000
      span: *id001
    nrf_modem_lib_ctrl:
      address: 0x20004000
      end_address: 0x200044e8
      inside:
      - sram_nonsecure
      placement:
        after:
        - tfm_sram
        - start
      region: sram_primary
      size: 0x4e8
    nrf_modem_lib_rx:
      address: 0x20006568
      end_address: 0x20008568
      inside:
      - sram_nonsecure
      placement:
        after:
        - nrf_modem_lib_tx
      region: sram_primary
      size: 0x2000
    nrf_modem_lib_sram:
      address: 0x20004000
      end_address: 0x20008568
      orig_span: &id002
      - nrf_modem_lib_ctrl
      - nrf_modem_lib_tx
      - nrf_modem_lib_rx
      region: sram_primary
      size: 0x4568
      span: *id002
    nrf_modem_lib_tx:
      address: 0x200044e8
      end_address: 0x20006568
      inside:
      - sram_nonsecure
      placement:
        after:
        - nrf_modem_lib_ctrl
      region: sram_primary
      size: 0x2080
    otp:
      address: 0xff8388
      end_address: 0xff83fc
      region: otp
      size: 0x74
    provision:
      address: 0xff8108
      end_address: 0xff8388
      region: otp
      size: 0x280
    s0:
      address: 0x8000
      end_address: 0x1c000
      region: flash_primary
      size: 0x14000
      span:
      - mcuboot
      - s0_pad
    s0_image:
      address: 0x8200
      end_address: 0x1c000
      region: flash_primary
      size: 0x13e00
      span:
      - mcuboot
    s0_pad:
      address: 0x8000
      end_address: 0x8200
      region: flash_primary
      share_size:
      - mcuboot_pad
      size: 0x200
    s1:
      address: 0x1c000
      end_address: 0x30000
      region: flash_primary
      size: 0x14000
      span:
      - s1_pad
      - s1_image
    s1_image:
      address: 0x1c200
      end_address: 0x30000
      region: flash_primary
      share_size:
      - mcuboot
      size: 0x13e00
    s1_pad:
      address: 0x1c000
      end_address: 0x1c200
      region: flash_primary
      share_size:
      - mcuboot_pad
      size: 0x200
    settings_storage:
      address: 0x4d0000
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0x4d2000
      region: external_flash
      size: 0x2000
    sram_nonsecure:
      address: 0x20004000
      end_address: 0x20040000
      orig_span: &id003
      - sram_primary
      - nrf_modem_lib_ctrl
      - nrf_modem_lib_tx
      - nrf_modem_lib_rx
      region: sram_primary
      size: 0x3c000
      span: *id003
    sram_primary:
      address: 0x20008568
      end_address: 0x20040000
      region: sram_primary
      size: 0x37a98
    sram_secure:
      address: 0x20000000
      end_address: 0x20004000
      orig_span: &id004
      - tfm_sram
      region: sram_primary
      size: 0x4000
      span: *id004
    tfm:
      address: 0x30200
      end_address: 0x38000
      region: flash_primary
      size: 0x7e00
    tfm_nonsecure:
      address: 0x38000
      end_address: 0x100000
      region: flash_primary
      size: 0xc8000
      span:
      - app
    tfm_secure:
      address: 0x30000
      end_address: 0x38000
      region: flash_primary
      size: 0x8000
      span:
      - mcuboot_pad
      - tfm
    tfm_sram:
      address: 0x20000000
      end_address: 0x20004000
      inside:
      - sram_secure
      placement:
        after:
        - start
      region: sram_primary
      size: 0x4000

    ~/ncs/v3.3.0/nrf/samples/cellular/nrf_cloud_coap_fota$ tree | grep " mcuboot.conf"
    │   │           │       │       ├── mcuboot-configure
    │   │           │       │       ├── mcuboot-configure

    I do not have mcuboot.conf nor .overlay in the directory 

Reply
  • I have managed to get some more logs out of the device 

     > <wrn> nrf_cloud_fota_common: Bootloader slot unchanged, FOTA update invalidated

    nRF cloud is now saying "Complete with Errors" for the download

    I have tried both the dfu_mcuboot and dfu_appllication.zips and it gives me the same error with both

    [00:02:13.057,434] <inf> downloader: Downloaded 45046/45046 bytes (100%)
    [00:02:13.066,284] <inf> nrf_cloud_fota_poll: Checking for FOTA job...
    [00:02:13.498,199] <inf> nrf_cloud_fota_poll: FOTA Job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2
    
    [00:02:13.507,995] <inf> downloader: Download complete
    [00:02:13.516,479] <dbg> mcuboot_util: boot_set_next: boot_set_next: fa 0x6ceb4 active == 0, confirm == 0
    [00:02:13.527,191] <dbg> mcuboot_util: boot_write_magic: boot_write_magic: fa_id=2 off=0xcfff0 (0xcfff0)
    [00:02:13.537,506] <dbg> mcuboot_util: boot_write_swap_info: writing swap_info; fa_id=2 off=0xcffd8 (0xcffd8), swap_type=0x2 image_num=0x0
    [00:02:13.550,506] <dbg> mcuboot_util: boot_write_trailer: boot_write_trailer: for 0x6ceb4 at 851928, size = 1
    [00:02:13.561,309] <inf> dfu_target_mcuboot: MCUBoot image-0 upgrade scheduled. Reset device to apply
    +CEREG: 0
    +CGEV: ME DETACH
    [00:02:14.250,518] <inf> nrf_cloud_coap_fota_sample: Network connectivity lost!
    +CSCON: 0
    [00:02:14.672,729] <inf> nrf_cloud_coap_fota_sample: Rebooting in 10s to complete FOTA update...
    *** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �*** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �[00:00:00.255,065] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
    *** Booting My Application v1.0.0-ba167d9f3db4 ***
    *** Using nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    [00:00:00.313,415] <inf> nrf_cloud_coap_fota_sample: nRF Cloud CoAP FOTA Sample, version: 1.0.0
    [00:00:00.837,493] <dbg> nrf_cloud_fota_common: fota_settings_set: Settings key: job, size: 40
    [00:00:00.847,015] <inf> nrf_cloud_fota_common: Saved job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2, validate: 1, bl: 0x3
    [00:00:00.860,290] <inf> nrf_cloud_fota_common: Bootloader FOTA update will be processed on reboot
    [00:00:00.939,788] <inf> nrf_cloud_coap_fota_sample: Rebooting...
    *** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    Attempting to boot slot 0.
    Attempting to boot from address 0x8200.
    I: Trying to get Firmware version
    I: Verifying signature against key 0.
    I: Hash: 0x3e...f9
    I: Firmware signature verified.
    Firmware version 2
    �[00:00:00.255,096] <inf> spi_nor: GD25LE255E@0: 32 MiBy flash
    *** Booting My Application v1.0.0-ba167d9f3db4 ***
    *** Using nRF Connect SDK v3.3.0-ba167d9f3db4 ***
    *** Using Zephyr OS v4.3.99-fd9204a02d52 ***
    [00:00:00.313,446] <inf> nrf_cloud_coap_fota_sample: nRF Cloud CoAP FOTA Sample, version: 1.0.0
    [00:00:00.841,766] <dbg> nrf_cloud_fota_common: fota_settings_set: Settings key: job, size: 40
    [00:00:00.851,287] <inf> nrf_cloud_fota_common: Saved job: 2e94749e-8379-42bc-b53f-b23b596a2589, type: 2, validate: 1, bl: 0x7
    [00:00:00.864,746] <wrn> nrf_cloud_fota_common: Bootloader slot unchanged, FOTA update invalidated
    [00:00:00.874,450] <inf> nrf_cloud_coap_fota_sample: Application Name: N/A
    [00:00:00.881,866] <inf> nrf_cloud_coap_fota_sample: nRF Connect SDK version: 3.3.0-ba167d9f3db4
    [00:00:01.120,208] <inf> nrf_cloud_credentials: Sec Tag: 16842753; CA: Yes, Client Cert: Yes, Private Key: Yes
    [00:00:01.130,737] <inf> nrf_cloud_credentials: CA Size: 1792, AWS: Likely, CoAP: Likely
    [00:00:01.139,343] <inf> nrf_cloud_coap_fota_sample: nRF Cloud credentials detected!
    [00:00:01.147,613] <inf> nrf_cloud_coap_fota_sample: Enabling connectivity...
    

    Here is my partitions.yml

    app:
      address: 0x38000
      end_address: 0x100000
      region: flash_primary
      size: 0xc8000
    app_image:
      address: 0x30200
      end_address: 0x100000
      region: flash_primary
      size: 0xcfe00
      span:
      - tfm
      - app
    b0:
      address: 0x0
      end_address: 0x8000
      region: flash_primary
      size: 0x8000
    b0_container:
      address: 0x0
      end_address: 0x8000
      region: flash_primary
      size: 0x8000
      span:
      - b0
    external_flash:
      address: 0x4d2000
      end_address: 0x2000000
      region: external_flash
      size: 0x1b2e000
    fmfu_storage:
      address: 0xd0000
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0x4d0000
      region: external_flash
      size: 0x400000
    mcuboot:
      address: 0x8200
      end_address: 0x1c000
      region: flash_primary
      size: 0x13e00
    mcuboot_pad:
      address: 0x30000
      end_address: 0x30200
      region: flash_primary
      size: 0x200
    mcuboot_primary:
      address: 0x30000
      end_address: 0x100000
      region: flash_primary
      size: 0xd0000
      span:
      - mcuboot_pad
      - app
      - tfm
    mcuboot_primary_app:
      address: 0x30200
      end_address: 0x100000
      region: flash_primary
      size: 0xcfe00
      span:
      - tfm
      - app
    mcuboot_secondary:
      address: 0x0
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0xd0000
      region: external_flash
      share_size:
      - mcuboot_primary
      size: 0xd0000
    mcuboot_sram:
      address: 0x20000000
      end_address: 0x20040000
      orig_span: &id001
      - nrf_modem_lib_rx
      - nrf_modem_lib_ctrl
      - sram_primary
      - nrf_modem_lib_tx
      - tfm_sram
      region: sram_primary
      size: 0x40000
      span: *id001
    nrf_modem_lib_ctrl:
      address: 0x20004000
      end_address: 0x200044e8
      inside:
      - sram_nonsecure
      placement:
        after:
        - tfm_sram
        - start
      region: sram_primary
      size: 0x4e8
    nrf_modem_lib_rx:
      address: 0x20006568
      end_address: 0x20008568
      inside:
      - sram_nonsecure
      placement:
        after:
        - nrf_modem_lib_tx
      region: sram_primary
      size: 0x2000
    nrf_modem_lib_sram:
      address: 0x20004000
      end_address: 0x20008568
      orig_span: &id002
      - nrf_modem_lib_ctrl
      - nrf_modem_lib_tx
      - nrf_modem_lib_rx
      region: sram_primary
      size: 0x4568
      span: *id002
    nrf_modem_lib_tx:
      address: 0x200044e8
      end_address: 0x20006568
      inside:
      - sram_nonsecure
      placement:
        after:
        - nrf_modem_lib_ctrl
      region: sram_primary
      size: 0x2080
    otp:
      address: 0xff8388
      end_address: 0xff83fc
      region: otp
      size: 0x74
    provision:
      address: 0xff8108
      end_address: 0xff8388
      region: otp
      size: 0x280
    s0:
      address: 0x8000
      end_address: 0x1c000
      region: flash_primary
      size: 0x14000
      span:
      - mcuboot
      - s0_pad
    s0_image:
      address: 0x8200
      end_address: 0x1c000
      region: flash_primary
      size: 0x13e00
      span:
      - mcuboot
    s0_pad:
      address: 0x8000
      end_address: 0x8200
      region: flash_primary
      share_size:
      - mcuboot_pad
      size: 0x200
    s1:
      address: 0x1c000
      end_address: 0x30000
      region: flash_primary
      size: 0x14000
      span:
      - s1_pad
      - s1_image
    s1_image:
      address: 0x1c200
      end_address: 0x30000
      region: flash_primary
      share_size:
      - mcuboot
      size: 0x13e00
    s1_pad:
      address: 0x1c000
      end_address: 0x1c200
      region: flash_primary
      share_size:
      - mcuboot_pad
      size: 0x200
    settings_storage:
      address: 0x4d0000
      device: DT_CHOSEN(nordic_pm_ext_flash)
      end_address: 0x4d2000
      region: external_flash
      size: 0x2000
    sram_nonsecure:
      address: 0x20004000
      end_address: 0x20040000
      orig_span: &id003
      - sram_primary
      - nrf_modem_lib_ctrl
      - nrf_modem_lib_tx
      - nrf_modem_lib_rx
      region: sram_primary
      size: 0x3c000
      span: *id003
    sram_primary:
      address: 0x20008568
      end_address: 0x20040000
      region: sram_primary
      size: 0x37a98
    sram_secure:
      address: 0x20000000
      end_address: 0x20004000
      orig_span: &id004
      - tfm_sram
      region: sram_primary
      size: 0x4000
      span: *id004
    tfm:
      address: 0x30200
      end_address: 0x38000
      region: flash_primary
      size: 0x7e00
    tfm_nonsecure:
      address: 0x38000
      end_address: 0x100000
      region: flash_primary
      size: 0xc8000
      span:
      - app
    tfm_secure:
      address: 0x30000
      end_address: 0x38000
      region: flash_primary
      size: 0x8000
      span:
      - mcuboot_pad
      - tfm
    tfm_sram:
      address: 0x20000000
      end_address: 0x20004000
      inside:
      - sram_secure
      placement:
        after:
        - start
      region: sram_primary
      size: 0x4000

    ~/ncs/v3.3.0/nrf/samples/cellular/nrf_cloud_coap_fota$ tree | grep " mcuboot.conf"
    │   │           │       │       ├── mcuboot-configure
    │   │           │       │       ├── mcuboot-configure

    I do not have mcuboot.conf nor .overlay in the directory 

Children
No Data
Related