This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

AWS FOTA downlaods but fails when writing the file

The AWS FOTA sample starts the download of my app_update.bin file that I created and loaded into an s3 bucket.

The file downloads (you can see in the attached logs) but after erasing / downloading  some of the data the 

process fails apparently for different reasons each time

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
nrf_inbuilt_key_delete(12345678, 2) => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 52.15.223.13
client_id: nrf-352656100047698
[mqtt_evt_handler:209] MQTT client connected!
[mqtt_evt_handler:262] PUBACK packet id: 54346
[mqtt_evt_handler:272] SUBACK packet id: 2114
[00:00:15.651,611] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/notify-next[1B][0m
[00:00:15.653,503] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/$next/get/#[1B][0m
[00:00:16.072,509] [1B][0m<inf> aws_fota: subscribed to notify-next topic[1B][0m
[00:00:16.072,601] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/$next/get[1B][0m
[00:00:16.072,601] [1B][0m<inf> aws_jobs: Publish payload {"clientToken": ""}[1B][0m
[mqtt_evt_handler:262] PUBACK packet id: 2379
***** Booting Zephyr OS build v2.0.99-ncs1 *****
[00:00:00.004,394] [1B][0m<inf> mcuboot: Starting bootloader[1B][0m
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
nrf_inbuilt_key_delete(12345678, 2) => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
nrf_inbuilt_key_write => result=0
LTE Link Connecting ...
LTE Link Connected!
IPv4 Address 3.20.75.29
client_id: nrf-352656100047698
[mqtt_evt_handler:209] MQTT client connected!
[00:00:17.611,968] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352[mqtt_evt_handler:272] SUBACK packet id: 2114
656100047698/jobs/notify-next[1B][0m
[00:00:17.613,952] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/$next/get/#[1B][0m
[00:00:18.241,455] [1B][0m<inf> aws_fota: subscribed to notify-next topic[1B][0m
[00:00:18.241,516] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/$next/get[1B][0m
[00:00:18.241,546] [1B][0m<inf> aws_jobs: Publish payload {"clientToken": ""}[1B][0m
[mqtt_evt_handler:262] PUBACK packet id: 53050
[mqtt_evt_handler:262] PUBACK packet id: 7915
[00:00:19.143,218] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/$next/get/accepted[1B][0m
[00:00:19.143,432] [1B][0m<inf> aws_fota: Got only one field: {"clientToken":"","timestamp":1581041635}[1B][0m
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX