Skip to content

Commit 7acb318

Browse files
rluboscarlescufi
authored andcommitted
samples: net: openthread: Increase main stack size in OT samples
Since the recent OpenThread update, OT needs more stack to initialize, therefore bump the stack size in samples using OpenThread. Signed-off-by: Robert Lubos <[email protected]>
1 parent e7e3295 commit 7acb318

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

samples/net/lwm2m_client/overlay-ot.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
1414
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
1515

1616
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
17+
CONFIG_MAIN_STACK_SIZE=2560
1718

1819
# Enable OpenThread shell
1920
CONFIG_SHELL=y

samples/net/openthread/coprocessor/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CONFIG_LOG_BACKEND_UART=n
1515
CONFIG_BOOT_BANNER=n
1616

1717
# Kernel options
18-
CONFIG_MAIN_STACK_SIZE=2048
18+
CONFIG_MAIN_STACK_SIZE=2560
1919
CONFIG_INIT_STACKS=y
2020

2121
# Increase logging thread stack size due to Spinel backend needs

samples/net/sockets/echo_client/overlay-ot.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
1111
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
1212

1313
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
14+
CONFIG_MAIN_STACK_SIZE=2560
1415

1516
# Enable OpenThread shell
1617
CONFIG_SHELL=y

samples/net/sockets/echo_server/overlay-ot.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
1111
CONFIG_NET_CONFIG_PEER_IPV4_ADDR=""
1212

1313
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
14+
CONFIG_MAIN_STACK_SIZE=2560
1415

1516
# Enable OpenThread shell
1617
CONFIG_SHELL=y

0 commit comments

Comments
 (0)