I am debugging firmware and file downloads with the nRF9160 on a custom nRF9160 board running the LWM2M client, and recently we have noticed that the modem firmware appears to occasionally crash. This triggers the modem to issue a LWM2M_CARRIER_EVENT_LTE_POWER_OFF event to shut the modem down. I have a separate ticket that I opened with respect to the proper way to handle that event and recover, but I want to see about getting some assistance with debugging why the modem is faulting in the first place. I have not been able to pinpoint what exactly causes the failure as it is not consistent (and sometimes does not happen at all).
Below is a snippet from the nRF9160 logs with the fault that occurs, and I have included the modem lib trace in this post as well.
As far as HW/SW goes, the unit is:
NCS 2.3.0
Modem FW: mfw_nrf9160_1.3.5
HW: nRF9160 SICA B1 2126E4
SIM: AT&T currently
[00:11:17.760,253] <inf> nrf_modem: connect() fd 0x3
[00:11:17.760,345] <inf> nrf_modem: sa_family 0x1, destaddr_len 0x4, destport 443
[00:11:17.872,589] <inf> nrf_modem: RPC_IP_CONNECT_RES fd 0x3, result RPC_IP_ERR_OK
[00:11:17.872,741] <dbg> nrf_modem: Waiting for handshake semaphore
[00:11:17.872,772] <inf> nrf_modem: Attaching sock fd 0x3
[00:11:17.872,863] <dbg> nrf_modem: Hostname: none
[00:11:17.872,894] <dbg> nrf_modem: role 0x2, verify 0x2, cache 0x0, tags count 1
[00:11:17.872,955] <dbg> nrf_modem: tag[0]: 8675309
[00:11:17.902,069] <inf> nrf_modem: RPC_IP_TLS_ATTACH_RES fd 0x3, result RPC_IP_ERR_OK
[00:11:20.112,945] <err> nrf_modem: Modem fault occurred, gpmem1: 0x10004, gmpem2: 0xe6910
[00:11:20.112,976] <err> nrf_modem: Modem error: 0x4, PC: 0xe6910
[00:11:20.113,067] <err> download_client: Unable to connect, errno 110
[00:11:20.113,098] <inf> nrf_modem: close() fd 0x3
[00:11:20.113,159] <dbg> nrf_modem: Socket was handshaking, releasing semaphore
[00:11:20.113,220] <inf> app_update: Failed to connect, err -110