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

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().

  • addr - Address to write the data to.
  • src - Pointer to the start of the buffer where the data to write is stored.
  • len - Length of the data to be written.

Returns 0 on success. Returns -NRF_EINVAL When src pointer is NULL, or user tries to upload too big bootloader, or addr parameter is zero after a bootloader upload. Returns -NRF_EOPNOTSUPP If the modem is not in a state to receive. Returns -NRF_EPERM When modem did not accept the flash programming request. Returns -NRF_ENOEXEC When flash programming failed. Returns -NRF_ETIMEDOUT When modem did not respond. Returns -NRF_EIO When incorrect response received from modem.