efuse: Checks errors of 4x coding scheme for BLOCK0 if so then abort

This commit is contained in:
KonstantinKondrashov
2021-08-30 18:28:31 +05:00
parent 0a71dce1ef
commit 714bc66e0e
8 changed files with 73 additions and 1 deletions

View File

@@ -763,6 +763,20 @@ esp_err_t esp_efuse_write_keys(esp_efuse_purpose_t purposes[], uint8_t keys[][32
#endif // not CONFIG_IDF_TARGET_ESP32
/**
* @brief Checks eFuse errors in BLOCK0.
*
* @note Refers to ESP32-C3 only.
*
* It does a BLOCK0 check if eFuse EFUSE_ERR_RST_ENABLE is set.
* If BLOCK0 has an error, it prints the error and returns ESP_FAIL, which should be treated as esp_restart.
*
* @return
* - ESP_OK: No errors in BLOCK0.
* - ESP_FAIL: Error in BLOCK0 requiring reboot.
*/
esp_err_t esp_efuse_check_errors(void);
#ifdef __cplusplus
}
#endif