Skip to content

Commit

Permalink
[nrf noup] tests: bluetooth: tester: sysbuild configurable 53/54H
Browse files Browse the repository at this point in the history
tests/bluetooth/tester, renamed hci_ipc files for both 53/54H usage
renamed: nrf5340_hci_ipc.conf -> hci_ipc.conf
renamed: nrf5340_hci_ipc_cpunet.conf -> hci_ipc_cpunet.conf

added nrf54h20 cpurad configuration to hci_ipc sample.

Signed-off-by: Aytürk Düzen <[email protected]>
  • Loading branch information
AyturkDuzen committed Nov 21, 2024
1 parent b604134 commit b722cea
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
33 changes: 33 additions & 0 deletions samples/bluetooth/hci_ipc/nrf54h20_cpurad-bt_ll_softdevice.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
CONFIG_IPC_SERVICE=y
CONFIG_MBOX=y

CONFIG_ISR_STACK_SIZE=1024
CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192

CONFIG_BT=y
CONFIG_BT_HCI_RAW=y

CONFIG_BT_BUF_EVT_RX_COUNT=16
CONFIG_BT_BUF_EVT_RX_SIZE=255
CONFIG_BT_BUF_ACL_RX_SIZE=255
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_CMD_TX_SIZE=255

# Host
CONFIG_BT_BROADCASTER=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_PER_ADV_SYNC=y

# Controller
CONFIG_BT_LL_SW_SPLIT=n
CONFIG_BT_LL_SOFTDEVICE=y
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=191
1 change: 1 addition & 0 deletions tests/bluetooth/tester/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source "share/sysbuild/Kconfig"

config NET_CORE_BOARD
string
default "nrf54h20dk/nrf54h20/cpurad" if "$(BOARD)" = "nrf54h20dk"
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"

Expand Down
19 changes: 13 additions & 6 deletions tests/bluetooth/tester/sysbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
# For builds in the nrf5340, we build the netcore image with the controller

set(NET_APP hci_ipc)
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})

Expand All @@ -13,10 +11,19 @@ if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
BOARD ${SB_CONFIG_NET_CORE_BOARD}
)

set(${NET_APP}_CONF_FILE
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
CACHE INTERNAL ""
)
if(SB_CONFIG_SOC_NRF5340_CPUAPP)
set(${NET_APP}_CONF_FILE
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
CACHE INTERNAL ""
)
endif()

if(SB_CONFIG_SOC_NRF54H20_CPUAPP)
set(${NET_APP}_CONF_FILE
${NET_APP_SRC_DIR}/nrf54h20_cpurad-bt_ll_softdevice.conf
CACHE INTERNAL ""
)
endif()

set(${NET_APP}_EXTRA_CONF_FILE
${APP_DIR}/nrf5340_hci_ipc_cpunet.conf
Expand Down

0 comments on commit b722cea

Please sign in to comment.