nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_bootloader_init()

int nrf_modem_bootloader_init ( const struct nrf_modem_bootloader_init_params init_params)

#include <nrf_modem/include/nrf_modem.h>

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

Note
To switch between bootloader and normal modes, nrf_modem_shutdown must be called in between.
Parameters
[in]init_paramsBootloader initialization parameters.
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.