I am currently working on a custom board with the nRF9160.
The modem initialization function nrf_modem_lib_init() terminates with an error.
The error log is as follows:
[00:00:11.089,843] <err> lte_lc: nrf_modem_at_printf failed, reported error: 65536 [00:00:11.090,301] <err> lte_lc: Failed to configure PSM, err -14
This error does not occur on the evaluation board (nRF9160 DK).
What's the cause?
Environment: nRF Connect SDK v2.9.0
I put the code below after nrf_modem_lib_init() for debugging.
int errAt; char rcvParam[100] = ""; errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT%%HWVERSION"); LOG_INF("[AT%%HWVERSION] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CGSN"); LOG_INF("[AT+CGSN] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CPIN?"); LOG_INF("[AT+CPIN?] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CEREG?"); LOG_INF("[AT+CEREG?] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CFUN?"); LOG_INF("[AT+CFUN?] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_printf("AT+CFUN=41"); LOG_INF("[AT+CFUN=41] %d", errAt); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CPIN?"); LOG_INF("[AT+CPIN?] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT+CFUN?"); LOG_INF("[AT+CFUN?] %d, %s", errAt, rcvParam); errAt = nrf_modem_at_cmd(rcvParam, sizeof rcvParam, "AT%%XICCID"); LOG_INF("[AT%%XICCID] %d, %s", errAt, rcvParam);
The log looked like this:
[00:00:12.211,090] <inf> main: [AT%HWVERSION] 0, %HWVERSION: nRF9160 SICA B1A [00:00:12.211,853] <inf> main: [AT+CGSN] 0, 359************ (Mask) [00:00:12.212,554] <inf> main: [AT+CPIN?] 65536, ERROR [00:00:12.213,226] <inf> main: [AT+CEREG?] 65536, ERROR [00:00:12.213,867] <inf> main: [AT+CFUN?] 65536, ERROR [00:00:17.229,522] <inf> main: [AT+CFUN=41] 65536 [00:00:24.840,270] <inf> main: [AT+CPIN?] 65536, ERROR [00:00:36.420,776] <inf> main: [AT+CFUN?] 65536, ERROR [00:00:38.885,772] <inf> main: [AT%XICCID] 65536, ERROR
On the nRF9160 DK, the results are as follows:
[00:00:10.392,669] <inf> main: [AT%HWVERSION] 0, %HWVERSION: nRF9160 SICA B1A [00:00:10.407,104] <inf> main: [AT+CGSN] 0, 351************ (Mask) [00:00:10.419,921] <inf> main: [AT+CPIN?] 65536, ERROR [00:00:10.432,006] <inf> main: [AT+CEREG?] 0, +CEREG: 0,4 [00:00:10.444,671] <inf> main: [AT+CFUN?] 0, +CFUN: 0 [00:00:18.268,676] <inf> main: [AT+CFUN=41] 0 [00:00:20.937,927] <inf> main: [AT+CPIN?] 0, +CPIN: READY [00:00:31.411,682] <inf> main: [AT+CFUN?] 0, +CFUN: 41 [00:00:34.368,713] <inf> main: [AT%XICCID] 0, %XICCID: 898***************** (Mask)
How can I check the cause?
Best Regards.
Kato.