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

Error from fota_download

I am using the NRF9160 for SPI using an external Flash. After using the 'http_application_update' samples, I was able to get the value of the data written on the external flash. However, after downloading the content and reaching 100 %, the file loops and starts over again. Ideally, a single read is necessary however, the final output shows the download repeatedly over multiple iterations. Before the 'http_application_update' starts again, there is an error thrown from the fota_download  which is as follows:

The error shows a code: -13 and is related to the function 'dfu_target_done'. Since this is a system defined function, I am not sure what the reason for this error is and how to go about rectifying the code. The function for the dfu_target_done is defined as follows:

I am not sure why there is a stack overflow occurring after the error message followed by a rebooting of the system as follows:

After this, the code starts looping back and re-executing by first connecting to the LTE and then asking for the user input. Please let me know if I need to provide additional details or code references to any part to help clarify my question. 

Thanks,

Siddhant Yeole

Related