nrf-connect-sdk-intermediate Exercise 6 – FOTA over LTE-M/NB-IoT does not work

Good morning,

I have tried to do the exercise 6 from the nrf-connect-sdk-intermediate course, my nRF9160 devKit can connect to nRF Cloud and download the new firmware. When running the program, a few errors appear (even without FOTA update deployed). In addition the downloaded firmware is not "installed" when the device is rebooted.

Im using nRF Connect SDK v2.7.0 and the exercise was taken from the Github repo on the branch  v2.9.0-v2.7.0 .

Could you help me to solve this problem ? Here are the logs when starting the program with an update deployed on nRF Cloud

*** Booting My Application v1.0.0-906a6119a65b ***
*** Using nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.266,998] <inf> cloud_connection: Enabling connectivity...
[00:00:00.552,124] <inf> cloud_connection: Setting up nRF Cloud library...
[00:00:00.561,248] <inf> cloud_connection: Waiting for network ready...
+CEREG: 2,"0A2B","01009101",7
+CSCON: 1
+CGEV: ME PDN ACT 0,0
+CNEC_ESM: 50,0
+CEREG: 1,"0A2B","01009101",7,,,"11100000","11100000"
%XTIME: "80","52909270811480","01"
[00:00:07.265,747] <inf> cloud_connection: Network connectivity gained!
[00:00:08.272,796] <inf> cloud_connection: Network is ready
[00:00:08.278,717] <inf> cloud_connection: Connecting to nRF Cloud
[00:00:08.285,339] <inf> cloud_connection: Device ID: nrf-xxxxxxxxxxxxxxxxxxxxxxxxx
[00:00:08.292,541] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_TRANSPORT_CONNECTING
Hello World! nrf9160dk
[00:00:21.091,827] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_TRANSPORT_CONNECTED
[00:00:21.101,043] <inf> cloud_connection: Connected to nRF Cloud
[00:00:21.107,574] <dbg> cloud_connection: cloud_connection_thread_fn: Awaiting disconnection from nRF Cloud
[00:00:21.753,631] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_RX_DATA_SHADOW
[00:00:21.762,420] <dbg> cloud_connection: handle_shadow_event: Shadow: Accepted
[00:00:21.819,671] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_USER_ASSOCIATED
[00:00:22.807,525] <err> nrf_cloud_transport: Failed to save session state: -2
[00:00:22.816,101] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_READY
[00:00:22.824,096] <dbg> cloud_connection: clear_readiness_timeout: Stopping cloud connection readiness timeout
+CSCON: 0
+CEREG: 1,"0A2B","01009105",7,,,"11100000","11100000"
+CSCON: 1
[00:00:30.500,885] <inf> download_client: Downloading: e8866bd5-ea1a-4d9d-8a94-aa6afdbad369/l9_e6.bin [0]
[00:00:30.510,803] <inf> nrf_cloud_fota: Downloading update
[00:00:30.516,784] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_FOTA_START
[00:00:30.673,095] <inf> download_client: Setting up TLS credentials, sec tag count 1
[00:00:30.681,365] <inf> download_client: Connecting to 2600:9000:25a2:2800:7:76af:9a40:93a1
[00:00:30.690,307] <err> download_client: Unable to connect, errno 114
[00:00:30.815,490] <inf> download_client: Setting up TLS credentials, sec tag count 1
[00:00:30.823,760] <inf> download_client: Connecting to 18.165.183.65
[00:00:33.803,527] <inf> download_client: Downloaded 1700/217494 bytes (0%)
[00:00:34.504,302] <inf> download_client: Downloaded 3400/217494 bytes (1%)
[00:00:35.067,169] <inf> download_client: Downloaded 5100/217494 bytes (2%)
[00:00:35.798,461] <inf> download_client: Downloaded 6800/217494 bytes (3%)
[00:00:36.396,026] <inf> download_client: Downloaded 8500/217494 bytes (3%)
[00:00:36.944,854] <inf> download_client: Downloaded 10200/217494 bytes (4%)
[00:00:37.722,564] <inf> download_client: Downloaded 11900/217494 bytes (5%)
[00:00:38.217,498] <inf> download_client: Downloaded 13600/217494 bytes (6%)
[00:00:38.936,492] <inf> download_client: Downloaded 15300/217494 bytes (7%)
[00:00:39.395,812] <inf> download_client: Downloaded 17000/217494 bytes (7%)
[00:00:40.295,989] <inf> download_client: Downloaded 18700/217494 bytes (8%)
[00:00:40.795,501] <inf> download_client: Downloaded 20400/217494 bytes (9%)
[00:00:41.373,352] <inf> download_client: Downloaded 22100/217494 bytes (10%)
[00:00:42.051,910] <inf> download_client: Downloaded 23800/217494 bytes (10%)
[00:00:42.594,757] <inf> download_client: Downloaded 25500/217494 bytes (11%)
[00:00:43.190,979] <inf> download_client: Downloaded 27200/217494 bytes (12%)
[00:00:43.896,514] <inf> download_client: Downloaded 28900/217494 bytes (13%)
[00:00:44.440,765] <inf> download_client: Downloaded 30600/217494 bytes (14%)
[00:00:45.164,001] <inf> download_client: Downloaded 32300/217494 bytes (14%)
[00:00:46.182,525] <inf> download_client: Downloaded 34000/217494 bytes (15%)
[00:00:46.904,754] <inf> download_client: Downloaded 35700/217494 bytes (16%)
[00:00:47.574,188] <inf> download_client: Downloaded 37400/217494 bytes (17%)
[00:00:48.349,914] <inf> download_client: Downloaded 39100/217494 bytes (17%)
[00:00:48.952,209] <inf> download_client: Downloaded 40800/217494 bytes (18%)
[00:00:49.499,908] <inf> download_client: Downloaded 42500/217494 bytes (19%)
[00:00:50.439,819] <inf> download_client: Downloaded 44200/217494 bytes (20%)
[00:00:50.850,646] <inf> download_client: Downloaded 45900/217494 bytes (21%)
[00:00:51.501,342] <inf> download_client: Downloaded 47600/217494 bytes (21%)
[00:00:51.964,721] <inf> download_client: Downloaded 49300/217494 bytes (22%)
[00:00:52.393,096] <inf> download_client: Downloaded 51000/217494 bytes (23%)
[00:00:52.944,396] <inf> download_client: Downloaded 52700/217494 bytes (24%)
[00:00:53.413,116] <inf> download_client: Downloaded 54400/217494 bytes (25%)
[00:00:53.959,442] <inf> download_client: Downloaded 56100/217494 bytes (25%)
[00:00:54.428,436] <inf> download_client: Downloaded 57800/217494 bytes (26%)
[00:00:54.924,377] <inf> download_client: Downloaded 59500/217494 bytes (27%)
[00:00:55.611,633] <inf> download_client: Downloaded 61200/217494 bytes (28%)
[00:00:56.274,536] <inf> download_client: Downloaded 62900/217494 bytes (28%)
[00:00:56.904,113] <inf> download_client: Downloaded 64600/217494 bytes (29%)
[00:00:57.531,127] <inf> download_client: Downloaded 66300/217494 bytes (30%)
[00:00:58.265,350] <inf> download_client: Downloaded 68000/217494 bytes (31%)
[00:00:58.907,165] <inf> download_client: Downloaded 69700/217494 bytes (32%)
[00:00:59.622,283] <inf> download_client: Downloaded 71400/217494 bytes (32%)
[00:01:00.302,154] <inf> download_client: Downloaded 73100/217494 bytes (33%)
[00:01:00.828,033] <inf> download_client: Downloaded 74800/217494 bytes (34%)
[00:01:01.483,215] <inf> download_client: Downloaded 76500/217494 bytes (35%)
[00:01:02.105,224] <inf> download_client: Downloaded 78200/217494 bytes (35%)
[00:01:02.595,184] <inf> download_client: Downloaded 79900/217494 bytes (36%)
[00:01:03.226,348] <inf> download_client: Downloaded 81600/217494 bytes (37%)
[00:01:03.901,306] <inf> download_client: Downloaded 83300/217494 bytes (38%)
[00:01:04.585,266] <inf> download_client: Downloaded 85000/217494 bytes (39%)
[00:01:05.225,341] <inf> download_client: Downloaded 86700/217494 bytes (39%)
[00:01:05.865,417] <inf> download_client: Downloaded 88400/217494 bytes (40%)
[00:01:06.819,732] <inf> download_client: Downloaded 90100/217494 bytes (41%)
[00:01:07.546,936] <inf> download_client: Downloaded 91800/217494 bytes (42%)
[00:01:08.180,633] <inf> download_client: Downloaded 93500/217494 bytes (42%)
[00:01:08.930,938] <inf> download_client: Downloaded 95200/217494 bytes (43%)
[00:01:09.715,362] <inf> download_client: Downloaded 96900/217494 bytes (44%)
[00:01:10.266,540] <inf> download_client: Downloaded 98600/217494 bytes (45%)
[00:01:10.787,506] <inf> download_client: Downloaded 100300/217494 bytes (46%)
[00:01:11.463,439] <inf> download_client: Downloaded 102000/217494 bytes (46%)
[00:01:12.026,641] <inf> download_client: Downloaded 103700/217494 bytes (47%)
[00:01:12.692,077] <inf> download_client: Downloaded 105400/217494 bytes (48%)
[00:01:13.330,718] <inf> download_client: Downloaded 107100/217494 bytes (49%)
[00:01:14.058,715] <inf> download_client: Downloaded 108800/217494 bytes (50%)
[00:01:14.603,759] <inf> download_client: Downloaded 110500/217494 bytes (50%)
[00:01:15.106,170] <inf> download_client: Downloaded 112200/217494 bytes (51%)
[00:01:15.789,672] <inf> download_client: Downloaded 113900/217494 bytes (52%)
[00:01:16.383,636] <inf> download_client: Downloaded 115600/217494 bytes (53%)
[00:01:17.134,246] <inf> download_client: Downloaded 117300/217494 bytes (53%)
[00:01:17.704,864] <inf> download_client: Downloaded 119000/217494 bytes (54%)
[00:01:18.360,992] <inf> download_client: Downloaded 120700/217494 bytes (55%)
[00:01:18.940,063] <inf> download_client: Downloaded 122400/217494 bytes (56%)
[00:01:19.531,402] <inf> download_client: Downloaded 124100/217494 bytes (57%)
[00:01:20.520,965] <inf> download_client: Downloaded 125800/217494 bytes (57%)
[00:01:20.986,907] <inf> download_client: Downloaded 127500/217494 bytes (58%)
[00:01:21.629,913] <inf> download_client: Downloaded 129200/217494 bytes (59%)
[00:01:22.268,127] <inf> download_client: Downloaded 130900/217494 bytes (60%)
[00:01:22.971,923] <inf> download_client: Downloaded 132600/217494 bytes (60%)
[00:01:23.803,436] <inf> download_client: Downloaded 134300/217494 bytes (61%)
[00:01:24.299,133] <inf> download_client: Downloaded 136000/217494 bytes (62%)
[00:01:24.982,147] <inf> download_client: Downloaded 137700/217494 bytes (63%)
[00:01:25.433,624] <inf> download_client: Downloaded 139400/217494 bytes (64%)
[00:01:26.047,210] <inf> download_client: Downloaded 141100/217494 bytes (64%)
[00:01:26.674,591] <inf> download_client: Downloaded 142800/217494 bytes (65%)
[00:01:27.261,169] <inf> download_client: Downloaded 144500/217494 bytes (66%)
[00:01:28.261,718] <inf> download_client: Downloaded 146200/217494 bytes (67%)
[00:01:29.162,414] <inf> download_client: Downloaded 147900/217494 bytes (68%)
[00:01:29.581,695] <inf> download_client: Downloaded 149600/217494 bytes (68%)
[00:01:30.284,423] <inf> download_client: Downloaded 151300/217494 bytes (69%)
[00:01:30.775,360] <inf> download_client: Downloaded 153000/217494 bytes (70%)
[00:01:31.417,785] <inf> download_client: Downloaded 154700/217494 bytes (71%)
[00:01:31.899,505] <inf> download_client: Downloaded 156400/217494 bytes (71%)
[00:01:32.475,494] <inf> download_client: Downloaded 158100/217494 bytes (72%)
[00:01:32.939,849] <inf> download_client: Downloaded 159800/217494 bytes (73%)
[00:01:33.020,965] <inf> nrf_cloud_fota: A job is already available or in progress... skipping
[00:01:33.346,130] <inf> download_client: Downloaded 161500/217494 bytes (74%)
[00:01:33.947,448] <inf> download_client: Downloaded 163200/217494 bytes (75%)
[00:01:34.435,821] <inf> download_client: Downloaded 164900/217494 bytes (75%)
[00:01:35.135,467] <inf> download_client: Downloaded 166600/217494 bytes (76%)
[00:01:35.591,888] <inf> download_client: Downloaded 168300/217494 bytes (77%)
[00:01:36.092,071] <inf> download_client: Downloaded 170000/217494 bytes (78%)
[00:01:36.703,002] <inf> download_client: Downloaded 171700/217494 bytes (78%)
[00:01:37.078,887] <inf> download_client: Downloaded 173400/217494 bytes (79%)
[00:01:37.647,735] <inf> download_client: Downloaded 175100/217494 bytes (80%)
[00:01:38.135,040] <inf> download_client: Downloaded 176800/217494 bytes (81%)
[00:01:38.817,108] <inf> download_client: Downloaded 178500/217494 bytes (82%)
[00:01:39.224,609] <inf> download_client: Downloaded 180200/217494 bytes (82%)
[00:01:39.614,105] <inf> download_client: Downloaded 181900/217494 bytes (83%)
[00:01:40.031,707] <inf> download_client: Downloaded 183600/217494 bytes (84%)
[00:01:40.450,805] <inf> download_client: Downloaded 185300/217494 bytes (85%)
[00:01:40.988,891] <inf> download_client: Downloaded 187000/217494 bytes (85%)
[00:01:41.346,069] <inf> download_client: Downloaded 188700/217494 bytes (86%)
[00:01:41.807,067] <inf> download_client: Downloaded 190400/217494 bytes (87%)
[00:01:42.365,081] <inf> download_client: Downloaded 192100/217494 bytes (88%)
[00:01:42.789,215] <inf> download_client: Downloaded 193800/217494 bytes (89%)
[00:01:43.258,911] <inf> download_client: Downloaded 195500/217494 bytes (89%)
[00:01:43.632,202] <inf> download_client: Downloaded 197200/217494 bytes (90%)
[00:01:44.208,557] <inf> download_client: Downloaded 198900/217494 bytes (91%)
[00:01:44.514,984] <inf> download_client: Downloaded 200600/217494 bytes (92%)
[00:01:44.892,150] <inf> download_client: Downloaded 202300/217494 bytes (93%)
[00:01:45.398,223] <inf> download_client: Downloaded 204000/217494 bytes (93%)
[00:01:45.827,911] <inf> download_client: Downloaded 205700/217494 bytes (94%)
[00:01:46.364,288] <inf> download_client: Downloaded 207400/217494 bytes (95%)
[00:01:46.797,546] <inf> download_client: Downloaded 209100/217494 bytes (96%)
[00:01:47.256,011] <inf> download_client: Downloaded 210800/217494 bytes (96%)
[00:01:47.885,253] <inf> download_client: Downloaded 212500/217494 bytes (97%)
[00:01:48.203,948] <inf> download_client: Downloaded 214200/217494 bytes (98%)
[00:01:48.766,326] <inf> download_client: Downloaded 215900/217494 bytes (99%)
[00:01:49.164,581] <inf> download_client: Downloaded 217494/217494 bytes (100%)
[00:01:49.190,490] <inf> download_client: Download complete
[00:01:49.373,260] <inf> dfu_target_mcuboot: MCUBoot image-0 upgrade scheduled. Reset device to apply
[00:01:49.383,972] <inf> nrf_cloud_fota: Download complete
[00:01:49.389,831] <err> nrf_cloud_fota_common: Failed to save FOTA job to settings, error: -2
[00:01:49.399,078] <err> nrf_cloud_fota: settings_save_one failed: -2
[00:01:49.448,425] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_FOTA_DONE, FOTA type: Application
[00:01:49.661,224] <dbg> cloud_connection: cloud_event_handler: NRF_CLOUD_EVT_FOTA_DONE, FOTA type: Application

Parents Reply Children
Related