Skip to content

Commit 82a7110

Browse files
PavelVPVkartben
authored andcommitted
tests: bsim: bluetooth: host: hfc: Run test for nRF5340
Run test for nRF5340 to check that it works with a different HCI driver. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent a5e295c commit 82a7110

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
source "share/sysbuild/Kconfig"
5+
6+
config NET_CORE_BOARD
7+
string
8+
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
9+
10+
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
11+
int
12+
# Let's pass the test arguments to the application MCU test
13+
# otherwise by default they would have gone to the net core.
14+
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CONFIG_IPC_SERVICE=y
2+
CONFIG_MBOX=y
3+
CONFIG_ISR_STACK_SIZE=1024
4+
CONFIG_IDLE_STACK_SIZE=256
5+
CONFIG_MAIN_STACK_SIZE=512
6+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
7+
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
9+
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
10+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
11+
12+
CONFIG_BT=y
13+
CONFIG_BT_HCI_RAW=y
14+
CONFIG_BT_MAX_CONN=1
15+
16+
# Controller
17+
CONFIG_BT_LL_SW_SPLIT=y
18+
CONFIG_BT_CTLR_ASSERT_HANDLER=y
19+
20+
CONFIG_BT_BUF_EVT_RX_COUNT=4
21+
CONFIG_BT_BUF_ACL_TX_COUNT=3
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
5+
set(NET_APP hci_ipc)
6+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
8+
ExternalZephyrProject_Add(
9+
APPLICATION ${NET_APP}
10+
SOURCE_DIR ${NET_APP_SRC_DIR}
11+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
12+
)
13+
14+
set(${NET_APP}_CONF_FILE ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "")
15+
16+
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
17+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
18+
endif()
19+
20+
native_simulator_set_final_executable(${DEFAULT_IMAGE})
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
tests:
22
bluetooth.host.mics.hfc:
33
build_only: true
4+
sysbuild: true
45
tags:
56
- bluetooth
67
platform_allow:
78
- nrf52_bsim/native
9+
- nrf5340bsim/nrf5340/cpuapp
810
harness: bsim
911
harness_config:
1012
bsim_exe_name: tests_bsim_bluetooth_host_misc_hfc_prj_conf

tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ tests/bsim/bluetooth/samples/central_hr_peripheral_hr/
1010
tests/bsim/bluetooth/audio_samples/
1111
tests/bsim/bluetooth/audio/
1212
tests/bsim/bluetooth/host/gatt/notify_stress/
13+
tests/bsim/bluetooth/host/misc/hfc/
1314
tests/bsim/bluetooth/tester/

0 commit comments

Comments
 (0)