This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ESP_SPIRAM_SIZE

Size of SPIRAM part

Type: int

Help

Specify size of SPIRAM part.
NOTE: If SPIRAM size is greater than 4MB, only
lower 4MB can be allocated using k_malloc().

Direct dependencies

ESP_SPIRAM && SOC_ESP32 && <choice: SoC/CPU/Configuration Selection>

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definition

At soc/xtensa/esp32/Kconfig.soc:78

Included via Kconfig:8Kconfig.zephyr:36soc/Kconfig:9

Menu path: (Top) → SoC/CPU/Configuration Selection → ESP32 → Support for external, SPI-connected RAM → SPI RAM config

config ESP_SPIRAM_SIZE
    int "Size of SPIRAM part"
    default 2097152 if SPIRAM_TYPE_ESPPSRAM16
    default 4194304 if SPIRAM_TYPE_ESPPSRAM32
    default 8388608 if SPIRAM_TYPE_ESPPSRAM64
    depends on ESP_SPIRAM && SOC_ESP32 && <choice>
    help
      Specify size of SPIRAM part.
      NOTE: If SPIRAM size is greater than 4MB, only
      lower 4MB can be allocated using k_malloc().

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)