nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_modem_delta_dfu_erase()

int nrf_modem_delta_dfu_erase ( void  )

#include <nrf_modem/include/nrf_modem_delta_dfu.h>

Erase the modem DFU area.

The modem DFU area must be erased before receiving a new firmware update. This function will return after commencing the erase operation, but it will not wait for its completion. Further calls to the delta DFU APIs will return MODEM_DELTA_DFU_ERASE_PENDING as long as the erase operation is pending or ongoing.

The application may poll the offset until it returns zero, to determine if the operation has completed.

Note
The erase operation may take longer when registered to the network than when not registered, i.e. in airplane mode.
Return values
0On success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_ENOMEMNot enough shared memory for this request.
-NRF_ESHUTDOWNModem was shut down.
Returns
A positive error code from DFU errors, if the modem refused the operation.