nrfxlib API 0.1.0
|
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.
0 | On success. |
-NRF_EPERM | The Modem library is not initialized. |
-NRF_ENOMEM | Not enough shared memory for this request. |
-NRF_ESHUTDOWN | Modem was shut down. |