From c2df6b0dd1e31577075d5a041743e673214284a0 Mon Sep 17 00:00:00 2001 From: Jasen Liu Date: Thu, 23 Jan 2025 08:58:20 +0100 Subject: [PATCH] soc: nxp: rw: 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/rw/Kconfig.defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/nxp/rw/Kconfig.defconfig b/soc/nxp/rw/Kconfig.defconfig index d185158139c..a62d071345c 100644 --- a/soc/nxp/rw/Kconfig.defconfig +++ b/soc/nxp/rw/Kconfig.defconfig @@ -28,6 +28,12 @@ config HCI_NXP_SET_CAL_DATA 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