mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 13:45:46 +00:00
efuse: Checks errors of 4x coding scheme for BLOCK0 if so then abort
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user