The latest development version of this page may be more current than this released 2.2.1 version.
CONFIG_HEAP_MEM_POOL_SIZE

Heap memory pool size (in bytes)

Type: int

Help

This option specifies the size of the heap memory pool used when dynamically allocating memory using k_malloc(). Supported values are: 256, 1024, 4096, and 16384. A size of zero means that no heap memory pool is defined.

Defaults

Kconfig definitions

At boards/xtensa/intel_s1000_crb/Kconfig.defconfig:48

Included via Kconfig:8Kconfig.zephyr:24

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 1024
    depends on DMA_DW && BOARD_INTEL_S1000_CRB

At boards/xtensa/up_squared_adsp/Kconfig.defconfig:38

Included via Kconfig:8Kconfig.zephyr:24

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 1024
    depends on DMA_DW && BOARD_UP_SQUARED_ADSP

At soc/arm/st_stm32/common/Kconfig.defconfig.series:86

Included via Kconfig:8Kconfig.zephyr:25soc/arm/st_stm32/Kconfig.defconfig:3

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 1024
    depends on DMA && SOC_FAMILY_STM32

At boards/arm/nrf5340_dk_nrf5340/Kconfig:27

Included via Kconfig:8Kconfig.zephyr:27boards/Kconfig:32

Menu path: (Top) → Board Options

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if BT_RPMSG
    depends on BOARD_NRF5340_DK_NRF5340_CPUAPP || BOARD_NRF5340_DK_NRF5340_CPUAPPNS

At kernel/Kconfig:477

Included via Kconfig:8Kconfig.zephyr:30

Menu path: (Top) → General Kernel Options → Other Kernel Object Options

config HEAP_MEM_POOL_SIZE
    int "Heap memory pool size (in bytes)"
    default 0 if !POSIX_MQUEUE
    default 1024 if POSIX_MQUEUE
    help
      This option specifies the size of the heap memory pool used when
      dynamically allocating memory using k_malloc(). Supported values
      are: 256, 1024, 4096, and 16384. A size of zero means that no
      heap memory pool is defined.

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