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

◆ nrf_modem_bootloader_fw_write()

int nrf_modem_bootloader_fw_write ( uint32_t  addr,
void *  src,
uint32_t  len 
)

#include <nrf_modem/include/nrf_modem_bootloader.h>

Write a segment of the firmware to the modem.

Call after the modem bootloader have been written and updated to upload the modem firmware segments. Firmware segments are appended together, so the firmware may be uploaded with one or more call to this function. Once the entire firmware is uploaded, call nrf_modem_bootloader_update().

Parameters
[in]addrAddress to write the data to.
[in]srcPointer to the start of the buffer where the data to write is stored.
[in]lenLength of the data to be written.
Return values
0on success.
-NRF_EINVALWhen src pointer is NULL, or user tries to upload too big bootloader, or addr parameter is zero after a bootloader upload.
-NRF_EOPNOTSUPPIf the modem is not in a state to receive.
-NRF_EPERMWhen modem did not accept the flash programming request.
-NRF_ENOEXECWhen flash programming failed.
-NRF_ETIMEDOUTWhen modem did not respond.
-NRF_EIOWhen incorrect response received from modem.