From db0e559b748ff3f3539ec54274fec391fceff209 Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Wed, 26 Aug 2020 11:55:34 +0200 Subject: [PATCH] Bluetooth: Mesh: Reduce microbit memory consumption Trims the default memory configuration for the BBC Microbit in mesh samples to ensure that it fits. Signed-off-by: Trond Einar Snekvik --- samples/bluetooth/mesh/prj_bbc_microbit.conf | 5 +++-- samples/bluetooth/mesh_demo/prj_bbc_microbit.conf | 3 ++- tests/bluetooth/mesh/microbit.conf | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/samples/bluetooth/mesh/prj_bbc_microbit.conf b/samples/bluetooth/mesh/prj_bbc_microbit.conf index 20d714da54..c3cb3618ab 100644 --- a/samples/bluetooth/mesh/prj_bbc_microbit.conf +++ b/samples/bluetooth/mesh/prj_bbc_microbit.conf @@ -3,7 +3,7 @@ CONFIG_ISR_STACK_SIZE=768 CONFIG_MAIN_STACK_SIZE=512 CONFIG_DISPLAY=y CONFIG_MICROBIT_DISPLAY=y -CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 +CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_GPIO=y CONFIG_BT_SETTINGS=y @@ -34,8 +34,9 @@ CONFIG_BT_CTLR_PRIVACY=n CONFIG_BT_MESH=y CONFIG_BT_MESH_ADV_BUF_COUNT=3 -CONFIG_BT_MESH_SEG_BUFS=6 +CONFIG_BT_MESH_SEG_BUFS=3 CONFIG_BT_MESH_RELAY=y +CONFIG_BT_MESH_LOOPBACK_BUFS=1 #CONFIG_BT_MESH_LOW_POWER=y #CONFIG_BT_MESH_SELF_TEST=y diff --git a/samples/bluetooth/mesh_demo/prj_bbc_microbit.conf b/samples/bluetooth/mesh_demo/prj_bbc_microbit.conf index 53f06dd688..ef430cc19b 100644 --- a/samples/bluetooth/mesh_demo/prj_bbc_microbit.conf +++ b/samples/bluetooth/mesh_demo/prj_bbc_microbit.conf @@ -21,7 +21,8 @@ CONFIG_BT_MESH_SEG_BUFS=6 CONFIG_BT_MESH_SUBNET_COUNT=1 CONFIG_BT_MESH_APP_KEY_COUNT=2 CONFIG_BT_MESH_MODEL_GROUP_COUNT=2 -CONFIG_BT_MESH_ADV_BUF_COUNT=7 +CONFIG_BT_MESH_ADV_BUF_COUNT=3 +CONFIG_BT_MESH_LOOPBACK_BUFS=1 CONFIG_BT_MESH_PB_ADV=n CONFIG_BT_MESH_CFG_CLI=y diff --git a/tests/bluetooth/mesh/microbit.conf b/tests/bluetooth/mesh/microbit.conf index 3ec0bb7fc2..f960d90001 100644 --- a/tests/bluetooth/mesh/microbit.conf +++ b/tests/bluetooth/mesh/microbit.conf @@ -29,7 +29,8 @@ CONFIG_BT_CTLR_ADVANCED_FEATURES=y CONFIG_BT_CTLR_FILTER=n CONFIG_BT_MESH=y -CONFIG_BT_MESH_ADV_BUF_COUNT=3 +CONFIG_BT_MESH_ADV_BUF_COUNT=1 +CONFIG_BT_MESH_LOOPBACK_BUFS=1 CONFIG_BT_MESH_SEG_BUFS=6 #CONFIG_BT_MESH_LOW_POWER=y