diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/Kconfig.sysbuild b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/Kconfig.sysbuild new file mode 100644 index 00000000000..79d8f991960 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/Kconfig.sysbuild @@ -0,0 +1,14 @@ +# Copyright 2025 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +source "share/sysbuild/Kconfig" + +config NET_CORE_BOARD + string + default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" + +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" diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/nrf5340_cpunet-bt_ll_sw_split.conf b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/nrf5340_cpunet-bt_ll_sw_split.conf new file mode 100644 index 00000000000..5f45c3c8856 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/nrf5340_cpunet-bt_ll_sw_split.conf @@ -0,0 +1,24 @@ +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_CBPRINTF_REDUCED_INTEGRAL=y + +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y +CONFIG_LTO=y + +CONFIG_BT=y +CONFIG_BT_HCI_RAW=y +CONFIG_BT_MAX_CONN=3 + +# Host features +CONFIG_BT_EXT_ADV=y + +# Controller +CONFIG_BT_LL_SW_SPLIT=y +CONFIG_BT_CTLR_ASSERT_HANDLER=y diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/sysbuild.cmake b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/sysbuild.cmake new file mode 100644 index 00000000000..38b24316936 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/sysbuild.cmake @@ -0,0 +1,20 @@ +# Copyright (c) 2025 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "")) + 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 ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "") + + native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP}) + native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP}) +endif() + +native_simulator_set_final_executable(${DEFAULT_IMAGE}) diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/testcase.yaml b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/testcase.yaml index 2cb24db1258..2cefbebb87b 100644 --- a/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/testcase.yaml +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/testcase.yaml @@ -1,10 +1,12 @@ tests: bluetooth.host.misc.hfc_multilink.dut: build_only: true + sysbuild: true tags: - bluetooth platform_allow: - nrf52_bsim/native + - nrf5340bsim/nrf5340/cpuapp harness: bsim harness_config: bsim_exe_name: tests_bsim_bluetooth_host_misc_hfc_multilink_dut_prj_conf diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/Kconfig.sysbuild b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/Kconfig.sysbuild new file mode 100644 index 00000000000..79d8f991960 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/Kconfig.sysbuild @@ -0,0 +1,14 @@ +# Copyright 2025 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +source "share/sysbuild/Kconfig" + +config NET_CORE_BOARD + string + default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" + +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" diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/nrf5340_cpunet-bt_ll_sw_split.conf b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/nrf5340_cpunet-bt_ll_sw_split.conf new file mode 100644 index 00000000000..6f0462852d5 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/nrf5340_cpunet-bt_ll_sw_split.conf @@ -0,0 +1,28 @@ +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_CBPRINTF_REDUCED_INTEGRAL=y + +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y +CONFIG_LTO=y + +CONFIG_BT=y +CONFIG_BT_HCI_RAW=y +CONFIG_BT_MAX_CONN=1 + +# Host features +CONFIG_BT_EXT_ADV=y + +# Controller +CONFIG_BT_LL_SW_SPLIT=y +CONFIG_BT_CTLR_ASSERT_HANDLER=y + +CONFIG_BT_BUF_ACL_RX_SIZE=255 +CONFIG_BT_BUF_CMD_TX_SIZE=255 +CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255 diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/sysbuild.cmake b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/sysbuild.cmake new file mode 100644 index 00000000000..38b24316936 --- /dev/null +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/sysbuild.cmake @@ -0,0 +1,20 @@ +# Copyright (c) 2025 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "")) + 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 ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "") + + native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP}) + native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP}) +endif() + +native_simulator_set_final_executable(${DEFAULT_IMAGE}) diff --git a/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/testcase.yaml b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/testcase.yaml index b9dd7b87913..a62076ecfdc 100644 --- a/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/testcase.yaml +++ b/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/testcase.yaml @@ -1,10 +1,12 @@ tests: bluetooth.host.misc.hfc_multilink.tester: build_only: true + sysbuild: true tags: - bluetooth platform_allow: - nrf52_bsim/native + - nrf5340bsim/nrf5340/cpuapp harness: bsim harness_config: bsim_exe_name: tests_bsim_bluetooth_host_misc_hfc_multilink_tester_prj_conf diff --git a/tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt b/tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt index b3a15c14d81..6b2ac3ff03a 100644 --- a/tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt +++ b/tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt @@ -11,4 +11,5 @@ tests/bsim/bluetooth/audio_samples/ tests/bsim/bluetooth/audio/ tests/bsim/bluetooth/host/gatt/notify_stress/ tests/bsim/bluetooth/host/misc/hfc/ +tests/bsim/bluetooth/host/misc/hfc_multilink/ tests/bsim/bluetooth/tester/