From 76eef386bbeae4c03eb9dcc677cf634e820932c4 Mon Sep 17 00:00:00 2001 From: gaoxu Date: Wed, 21 Sep 2022 09:34:11 +0800 Subject: [PATCH] esp_psram: update flash content moved to psram kconfig description --- components/esp_psram/esp32s2/Kconfig.spiram | 21 +++++++++++++-------- components/esp_psram/esp32s3/Kconfig.spiram | 19 ++++++++++++------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/components/esp_psram/esp32s2/Kconfig.spiram b/components/esp_psram/esp32s2/Kconfig.spiram index 19444ccf9e..4f6d701100 100644 --- a/components/esp_psram/esp32s2/Kconfig.spiram +++ b/components/esp_psram/esp32s2/Kconfig.spiram @@ -56,21 +56,26 @@ menu "SPI RAM config" help The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design. endmenu + config SPIRAM_FETCH_INSTRUCTIONS - bool "Cache fetch instructions from SPI RAM" + bool "Move Instructions in Flash to PSRAM" default n help - If enabled, instruction in flash will be copied into SPIRAM. - If SPIRAM_RODATA also enabled, - you can run the instruction when erasing or programming the flash. + If enabled, instructions in flash will be moved into PSRAM on startup. + If SPIRAM_RODATA is also enabled, code that requires execution during an SPI1 Flash operation + can forgo being placed in IRAM, thus optimizing RAM usage (see External RAM documentation + for more details). + config SPIRAM_RODATA - bool "Cache load read only data from SPI RAM" + bool "Move Read-Only Data in Flash to PSRAM" default n help - If enabled, radata in flash will be copied into SPIRAM. - If SPIRAM_FETCH_INSTRUCTIONS also enabled, - you can run the instruction when erasing or programming the flash. + If enabled, instructions in flash will be moved into PSRAM on startup. + If SPIRAM_FETCH_INSTRUCTIONS is also enabled, code that requires execution during an SPI1 Flash operation + can forgo being placed in IRAM, thus optimizing RAM usage (see External RAM documentation + for more details). + choice SPIRAM_SPEED prompt "Set RAM clock speed" diff --git a/components/esp_psram/esp32s3/Kconfig.spiram b/components/esp_psram/esp32s3/Kconfig.spiram index 48fe595370..0b37d84f23 100644 --- a/components/esp_psram/esp32s3/Kconfig.spiram +++ b/components/esp_psram/esp32s3/Kconfig.spiram @@ -65,20 +65,25 @@ menu "SPI RAM config" help The PSRAM CS IO can be any unused GPIO, please refer to your hardware design. endmenu + config SPIRAM_FETCH_INSTRUCTIONS - bool "Cache fetch instructions from SPI RAM" + bool "Move Instructions in Flash to PSRAM" default n help - If enabled, instruction in flash will be copied into SPIRAM. - If SPIRAM_RODATA also enabled, you can run the instruction when erasing or programming the flash. + If enabled, instructions in flash will be moved into PSRAM on startup. + If SPIRAM_RODATA is also enabled, code that requires execution during an SPI1 Flash operation + can forgo being placed in IRAM, thus optimizing RAM usage (see External RAM documentation + for more details). + config SPIRAM_RODATA - bool "Cache load read only data from SPI RAM" + bool "Move Read-Only Data in Flash to PSRAM" default n help - If enabled, rodata in flash will be copied into SPIRAM. - If SPIRAM_FETCH_INSTRUCTIONS is also enabled, - you can run the instruction when erasing or programming the flash. + If enabled, instructions in flash will be moved into PSRAM on startup. + If SPIRAM_FETCH_INSTRUCTIONS is also enabled, code that requires execution during an SPI1 Flash operation + can forgo being placed in IRAM, thus optimizing RAM usage (see External RAM documentation + for more details). choice SPIRAM_SPEED prompt "Set RAM clock speed"