efuse: Fix load_efuses_from_flash when FE is on
esp_efuse_utility_load_efuses_from_flash() read emul_efuse as an encrypted partition, but that is not correct, this partition was never encrypted. Need to read it as not encrypted partition. Fxed the case: If FE is already on then EFUSE VIRT mode can work with it. Closes https://github.com/espressif/esp-idf/issues/10929
This commit is contained in:
@@ -26,6 +26,15 @@ void efuse_hal_get_mac(uint8_t *mac);
|
||||
*/
|
||||
uint32_t efuse_hal_chip_revision(void);
|
||||
|
||||
/**
|
||||
* @brief Is flash encryption currently enabled in hardware?
|
||||
*
|
||||
* Flash encryption is enabled if the FLASH_CRYPT_CNT efuse has an odd number of bits set.
|
||||
*
|
||||
* @return true if flash encryption is enabled.
|
||||
*/
|
||||
bool efuse_hal_flash_encryption_enabled(void);
|
||||
|
||||
/**
|
||||
* @brief Returns major chip version
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user