Skip to content

Commit cb8cb39

Browse files
axelnxpkartben
authored andcommitted
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 main stack size for common samples, but also the shell stack size for samples calling bt API from the shell thread like the bt shell. Signed-off-by: Axel Le Bourhis <[email protected]>
1 parent b6e9f3d commit cb8cb39

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

soc/nxp/rw/Kconfig.defconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ config HCI_NXP_SET_CAL_DATA
2626
default y
2727

2828
config MAIN_STACK_SIZE
29-
default 1280
29+
default 2560
30+
31+
if SHELL
32+
33+
config SHELL_STACK_SIZE
34+
default 4096
35+
36+
endif # SHELL
3037

3138
endif # BT
3239

0 commit comments

Comments
 (0)