From 25700ace0ac01a6b3e841b265f10d27b49242c93 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Thu, 23 Jan 2020 17:09:32 +0100 Subject: [PATCH] soc: arm: stm32: define the heap size when enabling dma feature when DMA IP is enabled on stm32 series, the heap size must be configured to large value because of dma channels configuration. Signed-off-by: Francois Ramu --- drivers/dma/Kconfig.stm32 | 1 - soc/arm/st_stm32/common/Kconfig.defconfig.series | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig.stm32 b/drivers/dma/Kconfig.stm32 index 444408c87da..6e25fc9a3b7 100644 --- a/drivers/dma/Kconfig.stm32 +++ b/drivers/dma/Kconfig.stm32 @@ -8,7 +8,6 @@ config DMA_STM32 bool "Enable STM32 DMA driver" select DYNAMIC_INTERRUPTS depends on SOC_FAMILY_STM32 - depends on HEAP_MEM_POOL_SIZE != 0 help DMA driver for STM32 series SoCs. diff --git a/soc/arm/st_stm32/common/Kconfig.defconfig.series b/soc/arm/st_stm32/common/Kconfig.defconfig.series index 1116c86d8e1..69207d460d0 100644 --- a/soc/arm/st_stm32/common/Kconfig.defconfig.series +++ b/soc/arm/st_stm32/common/Kconfig.defconfig.series @@ -113,6 +113,9 @@ if DMA config DMA_STM32 default y +config HEAP_MEM_POOL_SIZE + default 1024 + endif # DMA endif # SOC_FAMILY_STM32