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 <Zephyr>/soc/xtensa/esp32/Kconfig.soc:40

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:28<Zephyr>/soc/Kconfig:6<BuildDir>/kconfig/Kconfig.soc:1

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.)