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

First boot after modem FOTA results in at_cmd error

I'm currently working on integrating modem FOTA updates into my application. I have the FOTA working at the moment, I'm able to go to and from a FOTA-TEST version with the differential images.

However, I have been noticing that during the first boot after the update, I get at_cmd errors and I'm unable to send any AT commands to the modem. Once the FOTA download process has finished, I do a system reboot via sys_reboot(0). On the very next boot I'll get this error when my application starts up:

SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS build v2.0.99-ncs1 *****
[00:00:06.240,081] <err> at_cmd: Failed to open AT socket (err:-12)
[00:00:06.260,711] <err> at_cmd: Failed to send AT command (err:1)

These errors go away if I reset one more time. I have tested this many times and the same behavior happens every single time.

Is there any way to resolve this issue? Otherwise, is there a way to handle this error? For example, If I could catch the event where the AT socket fails to open, I could then initiate another system reset.

- Jack

Parents Reply Children
Related