diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c index f6a4fb45175..4f8b4ee3594 100644 --- a/arch/xtensa/src/esp32/esp32_spiflash.c +++ b/arch/xtensa/src/esp32/esp32_spiflash.c @@ -1419,6 +1419,9 @@ static void IRAM_ATTR esp32_ummap(FAR struct esp32_spiflash_s *priv, #endif } +#ifdef CONFIG_ESP32_SPIRAM + esp_spiram_writeback_cache(); +#endif Cache_Flush(0); #ifdef CONFIG_SMP Cache_Flush(1);