nrfxlib API 2.8.99
|
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().
[in] | addr | Address to write the data to. |
[in] | src | Pointer to the start of the buffer where the data to write is stored. |
[in] | len | Length of the data to be written. |
0 | on success. |
-NRF_EINVAL | When src pointer is NULL, or user tries to upload too big bootloader, or addr parameter is zero after a bootloader upload. |
-NRF_EOPNOTSUPP | If the modem is not in a state to receive. |
-NRF_EPERM | When modem did not accept the flash programming request. |
-NRF_ENOEXEC | When flash programming failed. |
-NRF_ETIMEDOUT | When modem did not respond. |
-NRF_EIO | When incorrect response received from modem. |