Hi,
I was trying with the aws_fota sample, I follow the instruction here and download the app_update.bin with no problem. After it shows completed in 100%, device reboot automatically but wasn’t running the downloaded binary (the version number printed wasn’t changed). I checked the memory using Programmer tool in nRF Connect, seems it have the firmware storage in the memory location. I was new to nrf9160 and fota, can anyone helps me or with any suggestion?
Here is the terminal print:
*** Booting Zephyr OS build v2.4.99-ncs1 ***
Flash regions Domain Permissions
00 02 0×00000 0×18000 Secure rwxl
03 31 0×18000 0×100000 Non-Secure rwxl
Non-secure callable region 0 placed in flash region 2 with size 32.
SRAM region Domain Permissions
00 07 0×00000 0×10000 Secure rwxl
08 31 0×10000 0×40000 Non-Secure rwxl
Peripheral Domain Status
00 NRF_P0 Non-Secure OK
01 NRF_CLOCK Non-Secure OK
02 NRF_RTC0 Non-Secure OK
03 NRF_RTC1 Non-Secure OK
04 NRF_NVMC Non-Secure OK
05 NRF_UARTE1 Non-Secure OK
06 NRF_UARTE2 Secure SKIP
07 NRF_TWIM2 Non-Secure OK
08 NRF_SPIM3 Non-Secure OK
09 NRF_TIMER0 Non-Secure OK
10 NRF_TIMER1 Non-Secure OK
11 NRF_TIMER2 Non-Secure OK
12 NRF_SAADC Non-Secure OK
13 NRF_PWM0 Non-Secure OK
14 NRF_PWM1 Non-Secure OK
15 NRF_PWM2 Non-Secure OK
16 NRF_PWM3 Non-Secure OK
17 NRF_WDT Non-Secure OK
18 NRF_IPC Non-Secure OK
19 NRF_VMC Non-Secure OK
20 NRF_FPU Non-Secure OK
21 NRF_EGU1 Non-Secure OK
22 NRF_EGU2 Non-Secure OK
23 NRF_DPPIC Non-Secure OK
24 NRF_REGULATORS Non-Secure OK
25 NRF_GPIOTE1 Non-Secure OK
SPM: NS image at 0×1c200
SPM: NS MSP at 0×2001e6d0
SPM: NS reset vector at 0×2217d
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.4.99-ncs1 ***
MQTT AWS Jobs FOTA Sample, version: v2.0.1
Initializing modem library
ret: 0
Initialized modem library
************************* WARNING *************************
provision_certificates called do not use this in production!
This will store the certificates in readable flash and leave
them exposed on modem_traces. Only use this once for
provisioning certificates for development to reduce flash tear.
************************* WARNING *************************
modem_key_mgmt_delete(20210101, 0) => result=0
modem_key_mgmt_delete(20210101, 1) => result=0
modem_key_mgmt_delete(20210101, 2) => result=0
modem_key_mgmt_write => result=0
modem_key_mgmt_write => result=0
modem_key_mgmt_write => result=0
LTE Link Connecting …
LTE Link Connected!
IPv4 Address 3.96.79.126
client_id: nrf9160
[mqtt_evt_handler:182] MQTT client connected!
[mqtt_evt_handler:235] PUBACK packet id: 12725
[mqtt_evt_handler:235] PUBACK packet id: 36486
[mqtt_evt_handler:235] PUBACK packet id: 47677
I: Configuring socket timeout (30 s)
I: Connecting to nrf-fota-new.s3.ca-central-1.amazonaws.com
I: Downloading: app_update.bin [0]
AWS_FOTA_EVT_START, job id = fota
I: Downloaded 2048/181024 bytes (1%)
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, a10
I: data wra: 0, 2f0
I: Downloaded 4096/181024 bytes (2%)
I: Downloaded 6144/181024 bytes (3%)
I: Downloaded 8192/181024 bytes (4%)
I: Downloaded 10240/181024 bytes (5%)
I: Downloaded 12288/181024 bytes (6%)
I: Downloaded 14336/181024 bytes (7%)
I: Downloaded 16384/181024 bytes (9%)
I: Downloaded 18432/181024 bytes (10%)
I: Downloaded 20480/181024 bytes (11%)
I: Downloaded 22528/181024 bytes (12%)
I: Downloaded 24576/181024 bytes (13%)
I: Downloaded 26624/181024 bytes (14%)
I: Downloaded 28672/181024 bytes (15%)
I: Downloaded 30720/181024 bytes (16%)
I: Downloaded 32768/181024 bytes (18%)
I: Downloaded 34816/181024 bytes (19%)
I: Downloaded 36864/181024 bytes (20%)
I: Downloaded 38912/181024 bytes (21%)
I: Downloaded 40960/181024 bytes (22%)
I: Downloaded 43008/181024 bytes (23%)
I: Downloaded 45056/181024 bytes (24%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 47104/181024 bytes (26%)
I: Downloaded 49152/181024 bytes (27%)
I: Downloaded 51200/181024 bytes (28%)
I: Downloaded 53248/181024 bytes (29%)
I: Downloaded 55296/181024 bytes (30%)
I: Downloaded 57344/181024 bytes (31%)
I: Downloaded 59392/181024 bytes (32%)
I: Downloaded 61440/181024 bytes (33%)
I: Downloaded 63488/181024 bytes (35%)
I: Downloaded 65536/181024 bytes (36%)
I: Downloaded 67584/181024 bytes (37%)
I: Downloaded 69632/181024 bytes (38%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 71680/181024 bytes (39%)
I: Downloaded 73728/181024 bytes (40%)
I: Downloaded 75776/181024 bytes (41%)
I: Downloaded 77824/181024 bytes (42%)
I: Downloaded 79872/181024 bytes (44%)
I: Downloaded 81920/181024 bytes (45%)
I: Downloaded 83968/181024 bytes (46%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 86016/181024 bytes (47%)
I: Downloaded 88064/181024 bytes (48%)
I: Downloaded 90112/181024 bytes (49%)
I: Downloaded 92160/181024 bytes (50%)
I: Downloaded 94208/181024 bytes (52%)
I: Downloaded 96256/181024 bytes (53%)
W: Peer closed connection, will re-connect
[mqtt_evt_handler:250] default: 9
I: Downloaded 98304/181024 bytes (54%)
I: Reconnecting..
I: Configuring socket timeout (30 s)
I: Connecting to nrf-fota-new.s3.ca-central-1.amazonaws.com
I: Downloaded 100352/181024 bytes (55%)
I: Downloaded 102400/181024 bytes (56%)
I: Downloaded 104448/181024 bytes (57%)
I: Downloaded 106496/181024 bytes (58%)
I: Downloaded 108544/181024 bytes (59%)
I: Downloaded 110592/181024 bytes (61%)
I: Downloaded 112640/181024 bytes (62%)
I: Downloaded 114688/181024 bytes (63%)
I: Downloaded 116736/181024 bytes (64%)
I: Downloaded 118784/181024 bytes (65%)
I: Downloaded 120832/181024 bytes (66%)
I: Downloaded 122880/181024 bytes (67%)
I: Downloaded 124928/181024 bytes (69%)
I: Downloaded 126976/181024 bytes (70%)
I: Downloaded 129024/181024 bytes (71%)
I: Downloaded 131072/181024 bytes (72%)
I: Downloaded 133120/181024 bytes (73%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 135168/181024 bytes (74%)
I: Downloaded 137216/181024 bytes (75%)
I: Downloaded 139264/181024 bytes (76%)
I: Downloaded 141312/181024 bytes (78%)
I: Downloaded 143360/181024 bytes (79%)
I: Downloaded 145408/181024 bytes (80%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 147456/181024 bytes (81%)
E: Failed to send HTTP request, errno 128
W: Download socket error. 2 retries left…
I: Reconnecting..
I: Configuring socket timeout (30 s)
I: Connecting to nrf-fota-new.s3.ca-central-1.amazonaws.com
I: Downloaded 149504/181024 bytes (82%)
I: Downloaded 151552/181024 bytes (83%)
I: Downloaded 153600/181024 bytes (84%)
I: Downloaded 155648/181024 bytes (85%)
I: Downloaded 157696/181024 bytes (87%)
I: Downloaded 159744/181024 bytes (88%)
I: Downloaded 161792/181024 bytes (89%)
I: Downloaded 163840/181024 bytes (90%)
I: Downloaded 165888/181024 bytes (91%)
I: Downloaded 167936/181024 bytes (92%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 169984/181024 bytes (93%)
I: Downloaded 172032/181024 bytes (95%)
I: Downloaded 174080/181024 bytes (96%)
[mqtt_evt_handler:250] default: 9
I: Downloaded 176128/181024 bytes (97%)
I: Downloaded 178176/181024 bytes (98%)
I: Downloaded 180224/181024 bytes (99%)
E: Failed to send HTTP request, errno 128
W: Download socket error. 1 retries left…
I: Reconnecting..
[mqtt_evt_handler:250] default: 9
I: Configuring socket timeout (30 s)
I: Connecting to nrf-fota-new.s3.ca-central-1.amazonaws.com
I: Downloaded 181024/181024 bytes (100%)
I: Download complete
I: MCUBoot image upgrade scheduled. Reset device to apply
AWS_FOTA_EVT_DL_PROGRESS, 100% downloaded
[mqtt_evt_handler:235] PUBACK packet id: 2556
[mqtt_evt_handler:235] PUBACK packet id: 45978
AWS_FOTA_EVT_DONE, rebooting to apply update
?** Booting Zephyr OS build v2.4.99-ncs1 ***d 0
Flash regions Domain Permissions
00 02 0×00000 0×18000 Secure rwxl
03 31 0×18000 0×100000 Non-Secure rwxl
Non-secure callable region 0 placed in flash region 2 with size 32.
SRAM region Domain Permissions
00 07 0×00000 0×10000 Secure rwxl
08 31 0×10000 0×40000 Non-Secure rwxl
Peripheral Domain Status
00 NRF_P0 Non-Secure OK
01 NRF_CLOCK Non-Secure OK
02 NRF_RTC0 Non-Secure OK
03 NRF_RTC1 Non-Secure OK
04 NRF_NVMC Non-Secure OK
05 NRF_UARTE1 Non-Secure OK
06 NRF_UARTE2 Secure SKIP
07 NRF_TWIM2 Non-Secure OK
08 NRF_SPIM3 Non-Secure OK
09 NRF_TIMER0 Non-Secure OK
10 NRF_TIMER1 Non-Secure OK
11 NRF_TIMER2 Non-Secure OK
12 NRF_SAADC Non-Secure OK
13 NRF_PWM0 Non-Secure OK
14 NRF_PWM1 Non-Secure OK
15 NRF_PWM2 Non-Secure OK
16 NRF_PWM3 Non-Secure OK
17 NRF_WDT Non-Secure OK
18 NRF_IPC Non-Secure OK
19 NRF_VMC Non-Secure OK
20 NRF_FPU Non-Secure OK
21 NRF_EGU1 Non-Secure OK
22 NRF_EGU2 Non-Secure OK
23 NRF_DPPIC Non-Secure OK
24 NRF_REGULATORS Non-Secure OK
25 NRF_GPIOTE1 Non-Secure OK
SPM: NS image at 0×1c200
SPM: NS MSP at 0×2001e6d0
SPM: NS reset vector at 0×2217d
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.4.99-ncs1 ***
MQTT AWS Jobs FOTA Sample, version: v2.0.1
Initializing modem library
ret: 0
Initialized modem library
************************* WARNING *************************
provision_certificates called do not use this in production!
This will store the certificates in readable flash and leave
them exposed on modem_traces. Only use this once for
provisioning certificates for development to reduce flash tear.
************************* WARNING *************************
modem_key_mgmt_delete(20210101, 0) => result=0
modem_key_mgmt_delete(20210101, 1) => result=0
modem_key_mgmt_delete(20210101, 2) => result=0
modem_key_mgmt_write => result=0
modem_key_mgmt_write => result=0
modem_key_mgmt_write => result=0
LTE Link Connecting …
Thanks in advanced!
Zirun