Merge branch 'fix/fix_cache_stuck_in_esp_restart' into 'master'

fix(esp_system): fix P4 possible crash on esp_restart if PSRAM is used

Closes PM-291

See merge request espressif/esp-idf!34778
This commit is contained in:
Wu Zheng Hui
2024-11-11 14:00:58 +08:00

View File

@@ -127,6 +127,9 @@ void IRAM_ATTR esp_restart_noos(void)
wdt_hal_write_protect_enable(&wdt1_context); wdt_hal_write_protect_enable(&wdt1_context);
// Disable cache // Disable cache
#if CONFIG_SPIRAM
Cache_WriteBack_All(CACHE_MAP_L1_DCACHE);
#endif
Cache_Disable_L2_Cache(); Cache_Disable_L2_Cache();
esp_system_reset_modules_on_exit(); esp_system_reset_modules_on_exit();