Address from where erase operation should start. Must be aligned to the result of function wl_sector_size(...).
size
Size of the range which should be erased, in bytes. Must be divisible by the result of function wl_sector_size(...)..
Return value
- ESP_OK, if the given range was erased successfully; - ESP_ERR_INVALID_ARG, if iterator or dst are NULL; - ESP_ERR_INVALID_SIZE, if erase would go out of bounds of the partition; - or one of error codes from lower-level flash driver.
Examples
wl_erase_range() is referenced by 1 libraries and example projects: