pub unsafe extern "C" fn nrf_modem_bootloader_bl_write(
    src: *mut c_void,
    len: u32
) -> c_int
Expand description

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.

  • src - Pointer to the buffer where chunk data is stored.
  • len - Length of data to be written.

Returns 0 on success. Returns -NRF_EINVAL When src pointer is NULL or user tries to upload too big bootloader. Returns -NRF_EOPNOTSUPP If the modem is not in a state to receive.