From bb51330aa64a75da73b276ccd49deab4730fdc51 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index 085d37686f..d026579427 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -414,10 +414,6 @@ void IRAM_ATTR call_start_cpu0(void) Cache_Resume_DCache(0); #endif // CONFIG_IDF_TARGET_ESP32S3 - if (esp_efuse_check_errors() != ESP_OK) { - esp_restart(); - } - #if CONFIG_ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE #if CONFIG_APP_BUILD_TYPE_ELF_RAM // For RAM loadable ELF case, we don't need to reserve IROM/DROM as instructions and data @@ -486,6 +482,10 @@ void IRAM_ATTR call_start_cpu0(void) #endif #endif // !CONFIG_APP_BUILD_TYPE_PURE_RAM_APP + if (esp_efuse_check_errors() != ESP_OK) { + esp_restart(); + } + bootloader_init_mem(); #if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE