:orphan: .. title:: HEAP_MEM_POOL_SIZE .. option:: CONFIG_HEAP_MEM_POOL_SIZE *Heap memory pool size (in bytes)* Type: ``int`` Help ==== .. code-block:: none 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. Direct dependencies =================== \ :option:`DMA_MCUX_LPC ` || \ :option:`DMA_MCUX_LPC ` || (\ :option:`DMA_MCUX_LPC ` && \ :option:`BOARD_MIMXRT685_EVK `) || (!\ :option:`TRUSTED_EXECUTION_SECURE ` && (\ :option:`BOARD_THINGY53_NRF5340_CPUAPP ` || \ :option:`BOARD_THINGY53_NRF5340_CPUAPPNS `)) || \ :option:`BT ` || (\ :option:`USB ` && \ :option:`SOC_FAMILY_SAM0 `) || (\ :option:`SOC_NRF5340_CPUAPP_QKAA ` && \ :option:`SOC_SERIES_NRF53X ` && \ :option:`SOC_FAMILY_NRF `) || (\ :option:`SOC_NRF5340_CPUNET_QKAA ` && \ :option:`SOC_SERIES_NRF53X ` && \ :option:`SOC_FAMILY_NRF `) || \ :option:`BOARD_BL5340_DVK_CPUAPP ` || \ :option:`BOARD_BL5340_DVK_CPUAPPNS ` || \ :option:`BOARD_NRF5340DK_NRF5340_CPUAPP ` || \ :option:`BOARD_NRF5340DK_NRF5340_CPUAPPNS ` || \ :option:`KERNEL_MEM_POOL ` *(Includes any dependencies from ifs and menus.)* Defaults ======== - 4096 - 4096 - 4096 - 4096 if \ :option:`BT_RPMSG ` - 16384 - 1024 - 4096 if \ :option:`NRF_802154_SER_HOST ` - 4096 if \ :option:`NRF_802154_SER_RADIO ` - 4096 if \ :option:`BT_RPMSG ` - 4096 if \ :option:`BT_RPMSG ` - 0 if !\ :option:`POSIX_MQUEUE ` - 1024 if \ :option:`POSIX_MQUEUE ` Kconfig definitions =================== At ``/arm/lpcxpresso55s28/Kconfig.defconfig:39`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:18`` Menu path: (Top) .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 4096 depends on DMA_MCUX_LPC ---- At ``/arm/lpcxpresso55s69/Kconfig.defconfig:57`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:18`` Menu path: (Top) .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 4096 depends on DMA_MCUX_LPC ---- At ``/arm/mimxrt685_evk/Kconfig.defconfig:36`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:18`` Menu path: (Top) .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 4096 depends on DMA_MCUX_LPC && BOARD_MIMXRT685_EVK ---- At ``/arm/thingy53_nrf5340/Kconfig.defconfig:65`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:18`` Menu path: (Top) .. code-block:: kconfig 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 ``/xtensa/esp32/Kconfig.defconfig:22`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:18`` Menu path: (Top) .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 16384 depends on BT ---- At ``/arm/atmel_sam0/common/Kconfig.defconfig.series:49`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:19`` → ``/kconfig/Kconfig.soc.defconfig:1`` → ``/arm/atmel_sam0/Kconfig.defconfig:6`` Menu path: (Top) .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 1024 depends on USB && SOC_FAMILY_SAM0 ---- At ``/arm/nordic_nrf/nrf53/Kconfig.defconfig.nrf5340_CPUAPP_QKAA:20`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:19`` → ``/kconfig/Kconfig.soc.defconfig:1`` → ``/arm/nordic_nrf/Kconfig.defconfig:8`` → ``/arm/nordic_nrf/nrf53/Kconfig.defconfig.series:8`` Menu path: (Top) .. code-block:: kconfig 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 ``/arm/nordic_nrf/nrf53/Kconfig.defconfig.nrf5340_CPUNET_QKAA:18`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:19`` → ``/kconfig/Kconfig.soc.defconfig:1`` → ``/arm/nordic_nrf/Kconfig.defconfig:8`` → ``/arm/nordic_nrf/nrf53/Kconfig.defconfig.series:8`` Menu path: (Top) .. code-block:: kconfig 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 ``/arm/bl5340_dvk/Kconfig:64`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:27`` → ``/Kconfig:57`` Menu path: (Top) → Board Options .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 4096 if BT_RPMSG depends on BOARD_BL5340_DVK_CPUAPP || BOARD_BL5340_DVK_CPUAPPNS ---- At ``/arm/nrf5340dk_nrf5340/Kconfig:63`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:27`` → ``/Kconfig:57`` Menu path: (Top) → Board Options .. code-block:: kconfig config HEAP_MEM_POOL_SIZE int default 4096 if BT_RPMSG depends on BOARD_NRF5340DK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPPNS ---- At ``/Kconfig:513`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:30`` Menu path: (Top) → General Kernel Options → Other Kernel Object Options → Use Kernel Memory Pool .. code-block:: kconfig 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.)*