While working on debugging our application firmware using the nRF9151, we ran into issues that we hypothesized as being caused by an incorrect modem clock leading to validation issues with TLS certificates. As part of looking into this, we added some calls to date_time_set to our firmware intended to desynchronize the modem clock to attempt to reproduce the errors. The date time library was used with CONFIG_DATE_TIME_MODEM=y, and set the clock to 2015-01-01T00:00:00Z, the earliest time the library would allow.
After this call, the modem core crashed due to a failed assertion, and emitted the following logs:[00:00:13.016,876] <err> nrf_modem: Modem has crashed, reason 0x10, PC: 0x3bd84In following attempts to reset the device, application firmware would hang during initialization. Attaching gdb revealed that the main thread was deadlocked in nrf_modem_lib_init, specifically an internal call to k_sem_take in rpc_transport_ipc_init. At one point, continuing execution in gdb allowed the application to move past the blocking sem, yielding the following logs from the modem:
[00:00:00.700,469] <err> nrf_modem: Modem has crashed, reason 0x11, PC: 0x3b97e
[00:00:00.701,019] <err> nrf_modem: Modem library initialization failed, err -5
[00:00:00.701,049] <err> nrf_modem: Modem library did not initialize: -5
[00:00:00.701,049] <err> modem_antenna: Modem library did not initialize: -5
[00:00:00.701,080] <err> lte_lc: Modem library init error: -5, lte_lc not initialized
Issues initializing the modem persist through both software resets and hard power cycles of the unit. Currently the unit has returned to deadlocking internal to the modem library. While we have modem trace over RTT enabled, no data is being transferred. Attempting to reprogram the modem firmware with nrfutil stalls at "Setting up modem IPC" with the following error:
[00:00:10] ------ 0% [1/2 1051205126] Failed, Timed out waiting for IPC event on RootKeyDigest channelError: One or more program tasks failed:* 1051205126: Timed out waiting for IPC event on RootKeyDigest channel (Generic)
Is this unit bricked? Are there any other recovery steps that I haven't taken? Any advice would be appreciated. This board is running modem firmware v2.0.4