Skip to content

Commit 23f8897

Browse files
committed
Bluetooth: Controller: Fine-tune stack sizes for nRF51
The actual usage is substantially less than the default when using minimal configurations on nRF51: BT CTLR RX : STACK: unused 32 usage 288 / 320 (90 %); CPU: 0 % BT CTLR RX pri : STACK: unused 32 usage 344 / 376 (91 %); CPU: 0 % Signed-off-by: Johan Hedberg <[email protected]>
1 parent 4471cb0 commit 23f8897

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/controller/Kconfig.ll_sw_split

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ config BT_CTLR_RX_PRIO_STACK_SIZE
127127
# Hidden
128128
int
129129
depends on !BT_HCI_RAW
130+
default 376 if SOC_SERIES_NRF51X && !BT_EXT_ADV
130131
default 448
131132
help
132133
Controller's Co-Operative high priority Rx thread stack size.
@@ -141,6 +142,7 @@ config BT_CTLR_RX_PRIO_STACK_SIZE
141142
config BT_CTLR_RX_STACK_SIZE
142143
# Hidden, Controller's Co-Operative Rx thread stack size.
143144
int
145+
default 320 if SOC_SERIES_NRF51X && !BT_EXT_ADV
144146
default 896
145147

146148
config BT_CTLR_SETTINGS

0 commit comments

Comments
 (0)