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

nrf_inbuilt_key_write returns 13 (EACCES) error code

Hi there!

I'm using nrf9160 DK's SiP to establish TLS connection to MQTT broker.

When I call nrf_inbuilt_key_write it returns 13 error code which means "If the operation could not be performed while modem is in active state."

What state should modem have to enable key's addition / update?

Is it related with modem's functional state?

0 – Power off
1 – Normal mode
4 – Offline mode
44 – Offline mode without shutting down UICC

If so which mode should I use to add keys? 4 or 44?

Related