diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index cbff984f76..b1b2711706 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 */ @@ -487,9 +487,6 @@ void IRAM_ATTR call_start_cpu0(void) extern void esp_config_l2_cache_mode(void); esp_config_l2_cache_mode(); #endif - if (esp_efuse_check_errors() != ESP_OK) { - esp_restart(); - } #if ESP_ROM_NEEDS_SET_CACHE_MMU_SIZE #if CONFIG_APP_BUILD_TYPE_ELF_RAM @@ -559,6 +556,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