From 44edad2711db417d6681ab012e53a0fcbc009ef2 Mon Sep 17 00:00:00 2001 From: "Michael.B" Date: Sun, 26 Apr 2026 00:52:18 +0800 Subject: [PATCH] spi_flash: fix PSRAM rodata phys2cache mapping Use the full rodata page range when converting flash physical addresses back to cache addresses for XIP PSRAM. RISC-V extram stack coredump tests are temporarily skipped in CI until coredump supports PSRAM task stacks (IDF-15623). --- components/spi_flash/flash_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/spi_flash/flash_mmap.c b/components/spi_flash/flash_mmap.c index ce75fbf7f39..3ac89b5dde8 100644 --- a/components/spi_flash/flash_mmap.c +++ b/components/spi_flash/flash_mmap.c @@ -733,7 +733,7 @@ const void * spi_flash_phys2cache(size_t phys_offs, spi_flash_mmap_memory_t memo #endif #if CONFIG_SPIRAM_RODATA - if (phys_page >= rodata_flash_start_page_get() && phys_page <= rodata_flash_start_page_get()) { + if (phys_page >= rodata_flash_start_page_get() && phys_page <= rodata_flash_end_page_get()) { target = MMU_TARGET_PSRAM0; phys_offs -= rodata_flash2spiram_offset() * CONFIG_MMU_PAGE_SIZE; }