esp_core_dump_image_check() function
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 value
`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