|
|
@@ -219,10 +219,6 @@ void IRAM_ATTR call_start_cpu0(void)
|
|
|
}
|
|
|
ESP_EARLY_LOGI(TAG, "Starting app cpu, entry point is %p", call_start_cpu1);
|
|
|
|
|
|
-#ifdef CONFIG_SECURE_FLASH_ENC_ENABLED
|
|
|
- esp_flash_encryption_init_checks();
|
|
|
-#endif
|
|
|
-
|
|
|
//Flush and enable icache for APP CPU
|
|
|
Cache_Flush(1);
|
|
|
Cache_Read_Enable(1);
|
|
|
@@ -363,12 +359,6 @@ void start_cpu0_default(void)
|
|
|
#if CONFIG_ESP32_BROWNOUT_DET
|
|
|
esp_brownout_init();
|
|
|
#endif
|
|
|
-#if CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE
|
|
|
- esp_efuse_disable_basic_rom_console();
|
|
|
-#endif
|
|
|
-#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
|
|
|
- esp_efuse_disable_rom_download_mode();
|
|
|
-#endif
|
|
|
|
|
|
rtc_gpio_force_hold_dis_all();
|
|
|
|
|
|
@@ -385,6 +375,17 @@ void start_cpu0_default(void)
|
|
|
#else // defined(CONFIG_VFS_SUPPORT_IO) && !defined(CONFIG_ESP_CONSOLE_UART_NONE)
|
|
|
_REENT_SMALL_CHECK_INIT(_GLOBAL_REENT);
|
|
|
#endif // defined(CONFIG_VFS_SUPPORT_IO) && !defined(CONFIG_ESP_CONSOLE_UART_NONE)
|
|
|
+ // After setting _GLOBAL_REENT, ESP_LOGIx can be used instead of ESP_EARLY_LOGx.
|
|
|
+
|
|
|
+#ifdef CONFIG_SECURE_FLASH_ENC_ENABLED
|
|
|
+ esp_flash_encryption_init_checks();
|
|
|
+#endif
|
|
|
+#if CONFIG_ESP32_DISABLE_BASIC_ROM_CONSOLE
|
|
|
+ esp_efuse_disable_basic_rom_console();
|
|
|
+#endif
|
|
|
+#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
|
|
|
+ esp_efuse_disable_rom_download_mode();
|
|
|
+#endif
|
|
|
|
|
|
esp_timer_init();
|
|
|
esp_set_time_from_rtc();
|