Skip to content

Commit d56a9f8

Browse files
akredalenjukkar
authored andcommitted
[nrf noup] samples: bluetooth: mesh: update stack sizes
Increased stack sizes for mesh provisoner sample. Values are based of thread analysis, plus added margin. Signed-off-by: Stine Åkredalen <[email protected]> (cherry picked from commit 8876f35)
1 parent ad3d8fe commit d56a9f8

File tree

1 file changed

+6
-2
lines changed
  • samples/bluetooth/mesh_provisioner

1 file changed

+6
-2
lines changed

samples/bluetooth/mesh_provisioner/prj.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#CONFIG_INIT_STACKS=y
2-
CONFIG_MAIN_STACK_SIZE=2048
3-
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
2+
# Stack sizes from thread analysis + 50% margin, rounded to nearest 100
3+
CONFIG_MAIN_STACK_SIZE=4400
4+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4800
5+
CONFIG_BT_MESH_SETTINGS_WORKQ_STACK_SIZE=1700
6+
CONFIG_BT_MESH_ADV_STACK_SIZE=4000
7+
CONFIG_BT_RX_STACK_SIZE=3300
48
# The Bluetooth API should not be used from a preemptive thread:
59
CONFIG_MAIN_THREAD_PRIORITY=-2
610

0 commit comments

Comments
 (0)