nrfxlib API 2.8.99
|
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.
[in] | src | Pointer to the buffer where chunk data is stored. |
[in] | len | Length of data to be written. |
0 | on success. |
-NRF_EINVAL | When src pointer is NULL or user tries to upload too big bootloader. |
-NRF_EOPNOTSUPP | If the modem is not in a state to receive. |