Skip to content

Commit 329ebcb

Browse files
committed
konfig.nrf: Bluetooth Add SOC dependent BT_TX_PROCESSOR_STACK_SIZE
Values were derived from Thread Analyzer results. Applying SoC-specific defaults here to avoid touching upstream Zephyr files. Applications can still override via prj.conf. BT_TX_PROCESSOR_STACK_SIZE config was disabled for the samples/applications that don't have enough RAM to support it. Signed-off-by: Kyra Lengfeld <[email protected]>
1 parent 90f67e5 commit 329ebcb

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed

Kconfig.nrf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,24 @@ config NRF_SECURITY_ENABLER
121121
imply MBEDTLS_ENABLE_HEAP if BT_HOST_CRYPTO_PRNG || BT_ECC || BT_GATT_CACHING || BT_CRYPTO
122122
depends on !SOC_NRF5340_CPUNET
123123

124+
# Bluetooth TX processor thread stack Thread Analyzer measurements
125+
# Apply SoC-specific defaults here to avoid touching upstream Zephyr files.
126+
# Applications can still override via prj.conf.
127+
configdefault BT_TX_PROCESSOR_STACK_SIZE
128+
# nRF52 variants
129+
default 768 if SOC_NRF52840
130+
default 696 if SOC_NRF52832
131+
default 969 if SOC_NRF52833
132+
# nRF53 (application core)
133+
default 688 if SOC_NRF5340_CPUAPP
134+
# nRF54H20 (application core)
135+
default 624 if SOC_NRF54H20_CPUAPP
136+
# nRF54L15 (application core)
137+
default 856 if SOC_NRF54L15_CPUAPP
138+
# nRF54L V10A / LM20A (currently application core EngA variants are used)
139+
default 856 if SOC_NRF54LV10A_ENGA_CPUAPP
140+
default 856 if SOC_NRF54LM20A_ENGA_CPUAPP
141+
124142
if SOC_SERIES_BSIM_NRFXX && ENTROPY_GENERATOR
125143
config MBEDTLS_HEAP_SIZE
126144
int

applications/ipc_radio/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,9 @@ module = IPC_RADIO
7171
module-str = "ipc_radio"
7272
source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
7373

74+
# RAM for this application for these boards is too few to use
75+
# the BT TX processor thread.
76+
configdefault BT_TX_PROCESSOR_THREAD
77+
default n if BOARD_NRF52833DK_NRF52820 || BOARD_NRF52820DONGLE
78+
7479
source "Kconfig.zephyr"

applications/nrf_desktop/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ rsource "Kconfig.defaults"
1616
endmenu
1717

1818
menu "Zephyr Kernel"
19+
# RAM for this application for these boards is too few to use
20+
# the BT TX processor thread.
21+
configdefault BT_TX_PROCESSOR_THREAD
22+
default n if BOARD_NRF52833DK_NRF52820 || BOARD_NRF52820DONGLE
1923
source "Kconfig.zephyr"
2024
endmenu
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# RAM for this application for this board is too few to use
8+
# the BT TX processor thread.
9+
configdefault BT_TX_PROCESSOR_THREAD
10+
default n if BOARD_NRF52833DK_NRF52820
11+
12+
source "Kconfig.zephyr"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# RAM for this application for this board is too few to use
8+
# the BT TX processor thread.
9+
configdefault BT_TX_PROCESSOR_THREAD
10+
default n if BOARD_NRF52833DK_NRF52820
11+
12+
source "Kconfig.zephyr"

0 commit comments

Comments
 (0)