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

NRF9160 FOTA - Requested file to big to fit in flash

We are going through testing with FOTA, our AWS IoT deployment and AWS S3. Fota is initiating and downloading the file properly through MQTT commands but fails after 4096bytes with a Requested file to big to fit in flash error. The file size is 689670 and that is being pulled out of the http header properly. What file is appropriate for use in OTA? The compiler creates quite a few hex files and it is unclear if signed.hex or update.hex is appropriate. What would cause the file to big to fit in flash error after only 4096 bytes.

```

[00:01:25.802,612] [0m<inf> aws_fota: Start downloading firmware from xxxxxxx.com/xxxxx/update.hex[0m
FOTA LIBRARY HANDLED EVENT[00:01:26.315,368] [0m
<inf> download_client: Attempting to connect over IPv4[0m
[00:01:26.732,086] [0m
<inf> download_client: Connected to xxxxxxxx.com[0m
[00:01:26.732,086] [0m<inf> download_client: Downloading: xxxxx/update.hex [0]00[0m
[00:01:27.474,975] [0m<inf> download_client: Downloaded 0/689670 bytes (0%)[0m
[00:01:28.176,055] [0m<inf> download_client: Downloaded 1024/689670 bytes (0%)[0m
[00:01:28.368,865] [0m<inf> download_client: Downloaded 2048/689670 bytes (0%)[0m
[00:01:28.546,295] [0m<inf> download_client: Downloaded 2760/689670 bytes (0%)[0m
[00:01:28.547,576] [0m<inf> download_client: Downloaded 3540/689670 bytes (0%)[0m
AWS_FOTA_EVT_ERROR[00:01:30.555,053] [0m
<inf> download_client: Downloaded 4096/689670 bytes (0%)[0m
[00:01:30.555,084] [1;31m<err> fota_download: Requested file too big to fit in flash

```

Related