mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
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:
@@ -467,7 +467,7 @@ bool esp_efuse_utility_load_efuses_from_flash(void)
|
||||
}
|
||||
uint32_t efuses_in_flash[sizeof(virt_blocks)];
|
||||
|
||||
esp_err_t err = bootloader_flash_read(esp_efuse_flash_offset, &efuses_in_flash, sizeof(efuses_in_flash), true);
|
||||
esp_err_t err = bootloader_flash_read(esp_efuse_flash_offset, &efuses_in_flash, sizeof(efuses_in_flash), false);
|
||||
if (err != ESP_OK) {
|
||||
ESP_EARLY_LOGE(TAG, "[Virtual] Can not read eFuse partition from flash (err=0x%x)", err);
|
||||
abort();
|
||||
|
Reference in New Issue
Block a user