nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ fmfu_fdev_load()

int fmfu_fdev_load ( uint8_t *  buf,
size_t  buf_len,
const struct device *  fdev,
size_t  offset 
)

#include <include/dfu/fmfu_fdev.h>

Load the modem firmware update from the specified flash device to the modem.

The modem library must be initialized in DFU mode before calling this function.

Parameters
[in]bufPointer to buffer used to read data from external flash.
[in]buf_lenLength of provided buffer.
[in]fdevFlash device to read modem firmware from.
[in]offsetOffset within configured flash device to first byte of modem update data.
Returns
non-negative on success, negative error code on failure.