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_HEAP_MIN_EXTRAM_THRESHOLD

Minimum threshold for external RAM allocation

Type: int

Help

Threshold to decide if memory will be allocated from DRAM
or SPIRAM. If value of allocation size is less than this value,
memory will be allocated from internal RAM.

Direct dependencies

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

(Includes any dependencies from ifs and menus.)

Default

  • 8192

Kconfig definition

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

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

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

config ESP_HEAP_MIN_EXTRAM_THRESHOLD
    int "Minimum threshold for external RAM allocation"
    range 1024 131072
    default 8192
    depends on ESP_SPIRAM && SOC_ESP32 && <choice>
    help
      Threshold to decide if memory will be allocated from DRAM
      or SPIRAM. If value of allocation size is less than this value,
      memory will be allocated from internal RAM.

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