Function esp_idf_svc::sys::esp_core_dump_image_check

source ·
pub unsafe extern "C" fn esp_core_dump_image_check() -> i32
Expand description

@brief Check integrity of coredump data in flash. This function reads the coredump data while calculating their checksum. If it doesn’t match the checksum written on flash, it means data are corrupted, an error will be returned. Else, ESP_OK is returned.

@return ESP_OK if core dump is present and valid, ESP_ERR_NOT_FOUND if no core dump is stored in the partition, ESP_ERR_INVALID_SIZE or ESP_ERR_INVALID_CRC if the core dump is corrupted, other errors when unable to access flash, in that case please refer to \see esp_err_t