Skip to content

Commit 41ce4c9

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'fix/fix_cache_stuck_in_esp_restart_v5.4' into 'release/v5.4'
fix(esp_system): writeback L1 Dcache before disable L2 if PSRAM used (v5.4) See merge request espressif/esp-idf!34801
2 parents 356e7b6 + 054706c commit 41ce4c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/esp_system/port/soc/esp32p4/system_internal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ void IRAM_ATTR esp_restart_noos(void)
127127
wdt_hal_write_protect_enable(&wdt1_context);
128128

129129
// Disable cache
130+
#if CONFIG_SPIRAM
131+
Cache_WriteBack_All(CACHE_MAP_L1_DCACHE);
132+
#endif
130133
Cache_Disable_L2_Cache();
131134

132135
esp_system_reset_modules_on_exit();

0 commit comments

Comments
 (0)