Function esp_idf_svc::hal::sys::esp_flash_erase_chip

source ยท
pub unsafe extern "C" fn esp_flash_erase_chip(
    chip: *mut esp_flash_t,
) -> i32
Expand description

@brief Erase flash chip contents

@param chip Pointer to identify flash chip. Must have been successfully initialised via esp_flash_init()

@return - ESP_OK on success, - ESP_ERR_NOT_SUPPORTED if the chip is not able to perform the operation. This is indicated by WREN = 1 after the command is sent. - ESP_ERR_NOT_ALLOWED if a read-only partition is present. - Other flash error code if operation failed.