From 72cb92079905ef3ba99ba3940d7fe67b51aed7b1 Mon Sep 17 00:00:00 2001 From: Armando Date: Fri, 3 Nov 2023 12:07:16 +0800 Subject: [PATCH] bugfix(cpu_start): check c3 efuse error log on ram app condition Prior to this commit, esp_efuse_check_errors() is only called when it's 2nd stage btld app. This commit moves this error check so under all conditions (including ram app, pure ram app) will check this efuse error --- components/esp_system/port/cpu_start.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index 1434267bf7..9e5320fa32 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -583,6 +583,11 @@ void IRAM_ATTR call_start_cpu0(void) #else ESP_EARLY_LOGI(TAG, "Multicore app"); #endif + + if (esp_efuse_check_errors() != ESP_OK) { + esp_restart(); + } + bootloader_init_mem(); #if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE