Skip to content

Commit 054706c

Browse files
committed
fix(esp_system): writeback L1 Dcache before disable L2 if PSRAM used
1 parent df64e63 commit 054706c

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)