Chapter 2. API Reference
CONFIG_DEFAULT_PSRAM_CS_IO
PSRAM CS IO number
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_SPIRAM_SUPPORT > SPI RAM
config > PSRAM clock and cs IO for ESP32S2
The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design.
Range:
• from 0 to 33 if CONFIG_ESP32S2_SPIRAM_SUPPORT && CON-
FIG_ESP32S2_SPIRAM_SUPPORT
Default value:
• 26 if CONFIG_ESP32S2_SPIRAM_SUPPORT && CONFIG_ESP32S2_SPIRAM_SUPPORT
CONFIG_SPIRAM_FETCH_INSTRUCTIONS
Cache fetch instructions from SPI RAM
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_SPIRAM_SUPPORT > SPI RAM
config
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.
Default value:
• No (disabled) if CONFIG_ESP32S2_SPIRAM_SUPPORT
CONFIG_SPIRAM_RODATA
Cache load read only data from SPI RAM
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_SPIRAM_SUPPORT > SPI RAM
config
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.
Default value:
• No (disabled) if CONFIG_ESP32S2_SPIRAM_SUPPORT
CONFIG_SPIRAM_SPEED
Set RAM clock speed
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_SPIRAM_SUPPORT > SPI RAM
config
Select the speed for the SPI RAM chip.
Available options:
• 80MHz clock speed (SPIRAM_SPEED_80M)
• 40Mhz clock speed (SPIRAM_SPEED_40M)
• 26Mhz clock speed (SPIRAM_SPEED_26M)
• 20Mhz clock speed (SPIRAM_SPEED_20M)
CONFIG_SPIRAM_BOOT_INIT
Initialize SPI RAM during startup
Found in: Component config > ESP32S2-specific > CONFIG_ESP32S2_SPIRAM_SUPPORT > SPI RAM
config
If this is enabled, the SPI RAM will be enabled during initial boot. Unless you have specific requirements,
you’ll want to leave this enabled so memory allocated during boot-up can also be placed in SPI RAM.
Espressif Systems 1100
Submit Document Feedback
Release v4.4