Psram: Do not initialize spiram cache if no chip is found.

Closes https://github.com/espressif/esp-idf/issues/6063
This commit is contained in:
Jeroen Domburg 2020-11-03 15:55:34 +08:00 committed by bot
parent f86b0b18f3
commit 4b444316ab

View File

@ -327,7 +327,9 @@ void IRAM_ATTR call_start_cpu0(void)
abort();
#endif
}
esp_spiram_init_cache();
if (g_spiram_ok) {
esp_spiram_init_cache();
}
#endif
#if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE