AWS FOTA / TROUBLESHOOTING -> Failure at the exact same percent of the file

Hi,

So I am working with the NRF9160 dev kit. I tried using the AWS FOTA update to no avail. What's happen is that basically my job is created in IotCore, the device will start downloading the firmware update that sems not having any issues until for some reasons around 28% (always the same percentage!!) it just stop and says that the host has stopped the connections. I am not sure if its an error on amazon part or if its related to a config with the sdk, because on AWS they say that their bucket as a timeout of around 12 minutes.  I have also tried with or without http. I can send you my job document.json config.

So here are the basic information related to my update:

Here is my job document. It is 353099 bytes. 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
{
· · "operation": "app_fw_update",
· · "fwversion": "1.2.3",
· · "size": 354099,
· · "location": {
· · · · "protocol": "http:",
· · · · "host": "bucketfortestingpurposes.s3.amazonaws.com",
· · · · "path": "app_update.bin"
· · }
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is my FOTA config in the prj.conf

CONFIG_FOTA_DOWNLOAD=y
CONFIG_DFU_TARGET=y
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2300
CONFIG_DOWNLOAD_CLIENT_MAX_HOSTNAME_SIZE=128

Here I added a log file of my SEGGER (JLink EDU).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[00:00:11.071,472] <dbg> cloud_module: cloud_interface_event_handler: Message Acknowledgment not in pending QoS list, ID: 8865
[00:00:11.428,955] <inf> download_client: Connecting to bucketfortestingpurposes.s3.amazonaws.com
[00:00:11.951,965] <inf> download_client: Downloading: app_update.bin [0]
[00:00:11.951,995] <dbg> cloud_interface: aws_iot_event_handler: AWS_IOT_EVT_FOTA_START
[00:00:11.951,995] <dbg> cloud_module: cloud_interface_event_handler: CLOUD_INTERFACE_EVT_FOTA_START
[00:00:11.952,087] <inf> app_event_manager: CLOUD_EVT_FOTA_START
[00:00:11.952,514] <dbg> ui_module: state_set: State transition STATE_RUNNING --> STATE_FOTA_UPDATING
[00:00:12.750,457] <inf> download_client: Downloaded 1024/354251 bytes (0%)
[00:00:12.750,793] <dbg> STREAM_FLASH: stream_flash_erase_page: Erasing page at offset 0x00090000
[00:00:13.411,529] <inf> download_client: Downloaded 2048/354251 bytes (0%)
[00:00:14.029,602] <inf> download_client: Downloaded 3072/354251 bytes (0%)
[00:00:14.636,535] <inf> download_client: Downloaded 4096/354251 bytes (1%)
[00:00:15.311,645] <inf> download_client: Downloaded 5120/354251 bytes (1%)
[00:00:15.311,737] <dbg> STREAM_FLASH: stream_flash_erase_page: Erasing page at offset 0x00091000
[00:00:15.951,568] <inf> download_client: Downloaded 6144/354251 bytes (1%)
[00:00:16.529,693] <inf> download_client: Downloaded 7168/354251 bytes (2%)
[00:00:17.152,770] <inf> download_client: Downloaded 8192/354251 bytes (2%)
[00:00:17.790,710] <inf> download_client: Downloaded 9216/354251 bytes (2%)
[00:00:17.790,771] <dbg> STREAM_FLASH: stream_flash_erase_page: Erasing page at offset 0x00092000
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks for your help. It is dearly appreciated Slight smile