From 003b54ebfebe5a3d723bfc580db82777e1c3140e Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Thu, 24 Apr 2025 15:45:51 +0530 Subject: [PATCH] feat(esp_psram): XIP from PSRAM can be used only when SPIRAM_BOOT_INIT=y for ESP32P4 In case of ESP32-P4, if SPIRAM memory initialisations are not performed during boot-up, XIP PSRAM can be setup because of different virtual range of PSRAM and Flash --- components/esp_psram/esp32p4/Kconfig.spiram | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_psram/esp32p4/Kconfig.spiram b/components/esp_psram/esp32p4/Kconfig.spiram index 85335b3050..b8e741fa24 100644 --- a/components/esp_psram/esp32p4/Kconfig.spiram +++ b/components/esp_psram/esp32p4/Kconfig.spiram @@ -63,6 +63,7 @@ menu "PSRAM config" config SPIRAM_XIP_FROM_PSRAM bool "Enable Executable in place from (XiP) from PSRAM feature (READ HELP)" default n + depends on SPIRAM_BOOT_INIT select SPIRAM_FETCH_INSTRUCTIONS select SPIRAM_RODATA select SPIRAM_FLASH_LOAD_TO_PSRAM