From e4389a29214135a9f3004a3b8547d39e0d35cc21 Mon Sep 17 00:00:00 2001 From: Ali Hozhabri Date: Fri, 17 Jan 2025 18:44:40 +0100 Subject: [PATCH] soc: st: stm32wb0x: Increase main stack size for BLE applications Increase the size of the main stack for BLE applications to avoid stack overflow on STM32WB0x series. Beacon sample was considered as a reference for the size increase. Signed-off-by: Ali Hozhabri --- soc/st/stm32/stm32wb0x/Kconfig.defconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/soc/st/stm32/stm32wb0x/Kconfig.defconfig b/soc/st/stm32/stm32wb0x/Kconfig.defconfig index a0079e8b2a3..19e70895b92 100644 --- a/soc/st/stm32/stm32wb0x/Kconfig.defconfig +++ b/soc/st/stm32/stm32wb0x/Kconfig.defconfig @@ -8,6 +8,8 @@ if SOC_SERIES_STM32WB0X config NUM_IRQS default 32 +if BT + config BT_AUTO_PHY_UPDATE default n @@ -17,4 +19,9 @@ config BT_AUTO_DATA_LEN_UPDATE config BT_HCI_ACL_FLOW_CONTROL default n +config MAIN_STACK_SIZE + default 1600 + +endif # BT + endif # SOC_SERIES_STM32WB0X