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_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(). The maximum size of
the memory pool is only limited to available memory. A size of zero
means that no heap memory pool is defined.

Defaults

Kconfig definitions

At boards/arm/lpcxpresso55s28/Kconfig.defconfig:39

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096
    depends on DMA_MCUX_LPC

At boards/arm/lpcxpresso55s69/Kconfig.defconfig:57

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096
    depends on DMA_MCUX_LPC

At boards/arm/mimxrt685_evk/Kconfig.defconfig:36

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096
    depends on DMA_MCUX_LPC && BOARD_MIMXRT685_EVK

At boards/arm/thingy53_nrf5340/Kconfig.defconfig:65

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if BT_RPMSG
    depends on !TRUSTED_EXECUTION_SECURE && (BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPPNS)

At boards/xtensa/esp32/Kconfig.defconfig:22

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 16384
    depends on BT

At soc/arm/atmel_sam0/common/Kconfig.defconfig.series:49

Included via Kconfig:8Kconfig.zephyr:27soc/arm/atmel_sam0/Kconfig.defconfig:6

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 1024
    depends on USB && SOC_FAMILY_SAM0

At soc/arm/nordic_nrf/nrf53/Kconfig.defconfig.nrf5340_CPUAPP_QKAA:20

Included via Kconfig:8Kconfig.zephyr:27soc/arm/nordic_nrf/Kconfig.defconfig:8soc/arm/nordic_nrf/nrf53/Kconfig.defconfig.series:8

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if NRF_802154_SER_HOST
    depends on SOC_NRF5340_CPUAPP_QKAA && SOC_SERIES_NRF53X && SOC_FAMILY_NRF

At soc/arm/nordic_nrf/nrf53/Kconfig.defconfig.nrf5340_CPUNET_QKAA:18

Included via Kconfig:8Kconfig.zephyr:27soc/arm/nordic_nrf/Kconfig.defconfig:8soc/arm/nordic_nrf/nrf53/Kconfig.defconfig.series:8

Menu path: (Top)

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if NRF_802154_SER_RADIO
    depends on SOC_NRF5340_CPUNET_QKAA && SOC_SERIES_NRF53X && SOC_FAMILY_NRF

At boards/arm/bl5340_dvk/Kconfig:64

Included via Kconfig:8Kconfig.zephyr:35boards/Kconfig:60

Menu path: (Top) → Board Options

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if BT_RPMSG
    depends on BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPP_NS

At boards/arm/nrf5340dk_nrf5340/Kconfig:63

Included via Kconfig:8Kconfig.zephyr:35boards/Kconfig:60

Menu path: (Top) → Board Options

config HEAP_MEM_POOL_SIZE
    int
    default 4096 if BT_RPMSG
    depends on BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP_NS

At kernel/Kconfig:513

Included via Kconfig:8Kconfig.zephyr:38

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

config HEAP_MEM_POOL_SIZE
    int "Heap memory pool size (in bytes)"
    default 0 if !POSIX_MQUEUE
    default 1024 if POSIX_MQUEUE
    depends on KERNEL_MEM_POOL
    help
      This option specifies the size of the heap memory pool used when
      dynamically allocating memory using k_malloc(). The maximum size of
      the memory pool is only limited to available memory. A size of zero
      means that no heap memory pool is defined.

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