-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Bluetooth: ISO: BIS: Enable BIS test for nRF5340bsim
Enable support for building and running the BIS ISO host test on the nRF5340bsim board. The purpose of this is to test the ISO fragmentation on both the nRF52bsim and nRF5340bsim, as they use different drivers. Signed-off-by: Emil Gydesen <[email protected]>
- Loading branch information
Showing
9 changed files
with
97 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2023-2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
source "share/sysbuild/Kconfig" | ||
|
||
config NET_CORE_BOARD | ||
string | ||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk" | ||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk" | ||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" | ||
|
||
config NET_CORE_IMAGE_HCI_IPC | ||
bool "HCI IPC image on network core" | ||
default y | ||
depends on NET_CORE_BOARD != "" | ||
|
||
|
||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX | ||
int | ||
# Let's pass the test arguments to the application MCU test | ||
# otherwise by default they would have gone to the net core. | ||
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Compile all the applications needed by the bsim tests in these subfolders | ||
|
||
#set -x #uncomment this line for debugging | ||
set -ue | ||
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}" | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/compile.source | ||
|
||
if [ "${BOARD_TS}" == "nrf5340bsim_nrf5340_cpuapp" ]; then | ||
app=tests/bsim/bluetooth/host/iso/bis exe_name=bs_${BOARD_TS}_${app}_prj_conf \ | ||
sysbuild=1 compile | ||
else | ||
app=tests/bsim/bluetooth/host/iso/bis conf_overlay=controller.conf \ | ||
exe_name=bs_${BOARD_TS}_${app}_prj_conf \ | ||
sysbuild=1 compile | ||
fi | ||
|
||
wait_for_background_jobs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Controller ISO configs | ||
CONFIG_BT_CTLR_ADV_ISO=y | ||
CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=4 | ||
CONFIG_BT_CTLR_ADV_ISO_STREAM_COUNT=4 | ||
CONFIG_BT_CTLR_SYNC_ISO=y | ||
CONFIG_BT_CTLR_SYNC_ISO_STREAM_MAX=4 | ||
CONFIG_BT_CTLR_SYNC_ISO_STREAM_COUNT=4 | ||
|
||
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=208 | ||
# The host may fragment a single SDU into 3, so this needs to be 3 x CONFIG_BT_ISO_TX_BUF_COUNT | ||
CONFIG_BT_CTLR_ISO_TX_BUFFERS=12 | ||
CONFIG_BT_CTLR_ISOAL_SOURCES=4 | ||
CONFIG_BT_CTLR_ISOAL_SINKS=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (c) 2023-2024 Nordic Semiconductor ASA | ||
# 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}) | ||
|
||
ExternalZephyrProject_Add( | ||
APPLICATION ${NET_APP} | ||
SOURCE_DIR ${NET_APP_SRC_DIR} | ||
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 "" | ||
) | ||
|
||
set(${NET_APP}_EXTRA_CONF_FILE | ||
${APP_DIR}/controller.conf | ||
CACHE INTERNAL "" | ||
) | ||
|
||
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP}) | ||
endif() | ||
|
||
native_simulator_set_final_executable(${DEFAULT_IMAGE}) | ||
|
||
|
||
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP}) |
13 changes: 0 additions & 13 deletions
13
tests/bsim/bluetooth/host/iso/bis/tests_scripts/_compile.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters