Skip to content

Commit b6e9f3d

Browse files
axelnxpkartben
authored andcommitted
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 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 5064401 commit b6e9f3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

soc/nxp/mcx/mcxw/Kconfig.defconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ config MCUX_FLASH_K4_API
1414

1515
if BT
1616

17+
config MAIN_STACK_SIZE
18+
default 2560
19+
20+
if SHELL
21+
22+
config SHELL_STACK_SIZE
23+
default 4096
24+
25+
endif # SHELL
26+
1727
# Include intercore messaging component
1828
config NXP_RF_IMU
1929
default y

0 commit comments

Comments
 (0)