Hi!
I'm using the download_client to fetch one file from time to time. The app is basically a clone of the sample app, just put in a function.
The problem is that if I try to download the same file again, after some time - I get an error and the board resets.
...
[00:06:59.996,948] <inf> download_client: Connecting to xxxx
[00:07:00.302,490] <inf> download_client: Downloading: xxxx[0]
[00:07:00.663,848] <inf> download_client: Downloaded 13/13 bytes (100%)
[00:07:00.676,910] <inf> download_client: Download complete
...
[00:07:28.674,896] <inf> download_client: Connecting to xxxx
[00:07:29.019,439] <inf> download_client: Downloading: xxxx [0]
<err> fatal_error: Resetting system
*** Booting Zephyr OS build v2.4.0-ncs2 ***
[00:00:00.326,995] [1B][0m<inf> mcuboot: Starting bootloader[1B][0m
...
From what I can see, the download client spawns a thread which is never stopped. Maybe I should clean something from the
download_client downloader; or download_client_cfg config; data structures?
Please advise how to fix that.
I'm working with NCS 1.4.2 because fo Verizon cert requirements.