nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_lib_bootloader_init()

int nrf_modem_lib_bootloader_init ( void  )

#include <include/modem/nrf_modem_lib.h>

Initialize the Modem library in bootloader mode and turn on the modem.

When the modem is initialized in bootloader mode, no other functionality is available. In particular, networking sockets and AT commands won't be available.

To switch between the bootloader mode and normal operating mode, shutdown the modem with nrf_modem_lib_shutdown() and re-initialize it in the desired mode. Use nrf_modem_lib_init() to initialize in normal mode and nrf_modem_lib_bootloader_init() to initialize the Modem library in bootloader mode.

Return values
Zeroon success.
-NRF_EPERMThe Modem library is already initialized.
-NRF_EFAULTinit_params is NULL.
-NRF_ENOLCKNot enough semaphores.
-NRF_ENOMEMNot enough shared memory.
-NRF_EINVALMissing handler in init_params.
-NRF_EACCESBad root digest.
-NRF_ETIMEDOUTOperation timed out.
-NRF_EIOBootloader fault.
-NRF_ENOSYSOperation not available.