2022-05-10 04:27:36 +00:00
|
|
|
config SPIRAM
|
|
|
|
bool "Support for external, SPI-connected RAM"
|
|
|
|
default "n"
|
|
|
|
help
|
|
|
|
This enables support for an external SPI RAM chip, connected in parallel with the
|
|
|
|
main SPI flash chip.
|
|
|
|
|
|
|
|
menu "SPI RAM config"
|
|
|
|
depends on SPIRAM
|
|
|
|
|
|
|
|
config SPIRAM_MODE_QUAD
|
|
|
|
bool
|
|
|
|
default "y"
|
|
|
|
|
|
|
|
choice SPIRAM_TYPE
|
|
|
|
prompt "Type of SPI RAM chip in use"
|
|
|
|
default SPIRAM_TYPE_AUTO
|
|
|
|
|
|
|
|
config SPIRAM_TYPE_AUTO
|
|
|
|
bool "Auto-detect"
|
|
|
|
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM16
|
|
|
|
bool "ESP-PSRAM16 or APS1604"
|
|
|
|
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM32
|
|
|
|
bool "ESP-PSRAM32"
|
|
|
|
|
|
|
|
config SPIRAM_TYPE_ESPPSRAM64
|
|
|
|
bool "ESP-PSRAM64 or LY68L6400"
|
|
|
|
endchoice
|
|
|
|
|
2022-07-06 03:17:40 +00:00
|
|
|
config SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
|
|
|
bool "Allow external memory as an argument to xTaskCreateStatic"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Accessing memory in SPIRAM has certain restrictions, so task stacks allocated by xTaskCreate
|
|
|
|
are by default allocated from internal RAM.
|
|
|
|
|
|
|
|
This option allows for passing memory allocated from SPIRAM to be passed to xTaskCreateStatic.
|
|
|
|
This should only be used for tasks where the stack is never accessed while the cache is disabled.
|
|
|
|
|
2022-09-16 06:43:52 +00:00
|
|
|
config SPIRAM_CLK_IO
|
|
|
|
int
|
|
|
|
default 30
|
2022-05-10 04:27:36 +00:00
|
|
|
|
2022-09-16 06:43:52 +00:00
|
|
|
config SPIRAM_CS_IO
|
|
|
|
int
|
|
|
|
default 26
|
2022-09-21 01:34:11 +00:00
|
|
|
|
2022-05-10 04:27:36 +00:00
|
|
|
config SPIRAM_FETCH_INSTRUCTIONS
|
2022-09-21 01:34:11 +00:00
|
|
|
bool "Move Instructions in Flash to PSRAM"
|
2022-05-10 04:27:36 +00:00
|
|
|
default n
|
|
|
|
help
|
2022-09-21 01:34:11 +00:00
|
|
|
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).
|
|
|
|
|
2022-05-10 04:27:36 +00:00
|
|
|
|
|
|
|
config SPIRAM_RODATA
|
2022-09-21 01:34:11 +00:00
|
|
|
bool "Move Read-Only Data in Flash to PSRAM"
|
2022-05-10 04:27:36 +00:00
|
|
|
default n
|
|
|
|
help
|
2022-12-05 03:24:57 +00:00
|
|
|
If enabled, rodata in flash will be moved into PSRAM on startup.
|
2022-09-21 01:34:11 +00:00
|
|
|
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).
|
|
|
|
|
2022-05-10 04:27:36 +00:00
|
|
|
|
|
|
|
choice SPIRAM_SPEED
|
|
|
|
prompt "Set RAM clock speed"
|
|
|
|
default SPIRAM_SPEED_40M
|
|
|
|
help
|
|
|
|
Select the speed for the SPI RAM chip.
|
|
|
|
|
|
|
|
config SPIRAM_SPEED_80M
|
|
|
|
bool "80MHz clock speed"
|
|
|
|
config SPIRAM_SPEED_40M
|
|
|
|
bool "40Mhz clock speed"
|
|
|
|
config SPIRAM_SPEED_26M
|
|
|
|
bool "26Mhz clock speed"
|
|
|
|
config SPIRAM_SPEED_20M
|
|
|
|
bool "20Mhz clock speed"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SPIRAM_SPEED
|
|
|
|
int
|
|
|
|
default 80 if SPIRAM_SPEED_80M
|
|
|
|
default 40 if SPIRAM_SPEED_40M
|
|
|
|
default 40 if SPIRAM_SPEED_26M
|
|
|
|
default 40 if SPIRAM_SPEED_20M
|
|
|
|
|
2022-05-11 02:32:56 +00:00
|
|
|
source "$IDF_PATH/components/esp_psram/Kconfig.spiram.common" # insert non-chip-specific items here
|
2022-05-10 04:27:36 +00:00
|
|
|
|
|
|
|
endmenu
|