nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_modem_bootloader_bl_write()

int nrf_modem_bootloader_bl_write ( void *  src,
uint32_t  len 
)

#include <nrf_modem/include/nrf_modem_bootloader.h>

Write a segment of the bootloader to the modem.

Call after nrf_modem_bootloader_init() to upload the modem bootloader segments. Bootloader segments are appended together, so the bootloader may be uploaded with one or more call to this function. Once the entire bootloader is uploaded, call nrf_modem_bootloader_update().

Firmware segments can be uploaded after successful bootloader upload.

Parameters
[in]srcPointer to the buffer where chunk data is stored.
[in]lenLength of data to be written.
Return values
0on success.
-NRF_EINVALWhen src pointer is NULL or user tries to upload too big bootloader.
-NRF_EOPNOTSUPPIf the modem is not in a state to receive.