From f18fed1a0eb1817c979475dd8c37b16dc6a5407a Mon Sep 17 00:00:00 2001 From: Jasen Liu Date: Tue, 21 Jan 2025 11:34:03 +0100 Subject: [PATCH] soc: nxp: mcxw: fix stack overflow in BLE samples mbedtls is now used in BLE samples, increasing the stack depth needed of the calling threads. This was causing stack overflows in several BLE samples. Increasing the BT_LONG_WQ_STACK stack size for peripheral_sc_only sample, and the SYSTEM_WORKQUEUE stack size for ibeacon sample. Signed-off-by: Jasen Liu --- soc/nxp/mcx/mcxw/Kconfig.defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/nxp/mcx/mcxw/Kconfig.defconfig b/soc/nxp/mcx/mcxw/Kconfig.defconfig index f1165a3e8c0..4cb8e9851fb 100644 --- a/soc/nxp/mcx/mcxw/Kconfig.defconfig +++ b/soc/nxp/mcx/mcxw/Kconfig.defconfig @@ -17,6 +17,12 @@ if BT config MAIN_STACK_SIZE default 2560 +config BT_LONG_WQ_STACK_SIZE + default 2560 + +config SYSTEM_WORKQUEUE_STACK_SIZE + default 2048 + if SHELL config SHELL_STACK_SIZE