Commit e7a7c590 authored by Pavel Vasilyev's avatar Pavel Vasilyev Committed by Fabio Baltieri
Browse files

tests: bsim: bluetooth: host: privacy: peripheral: Enable nRF5340



Enable privacy peripheral test for nRF5340.

After fixing scan interval, the test started passing on nRF5340 as well.
Enable it for regressions.

Signed-off-by: default avatarPavel Vasilyev <pavel.vasilyev@nordicsemi.no>
parent dacdf7da
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# 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"
+24 −0
Original line number Diff line number Diff line
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=4096
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PRIVACY=y
CONFIG_BT_EXT_ADV_MAX_ADV_SET=3
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_ADV_DATA_BUF_MAX=3
CONFIG_BT_EXT_ADV_MAX_ADV_SET=4
CONFIG_BT_CTLR_ADV_DATA_BUF_MAX=4

# Controller
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_BT_CTLR_ASSERT_HANDLER=y
+20 −0
Original line number Diff line number Diff line
# 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})
+2 −0
Original line number Diff line number Diff line
common:
  build_only: true
  sysbuild: true
  tags:
    - bluetooth
  platform_allow:
    - nrf52_bsim/native
    - nrf5340bsim/nrf5340/cpuapp
  harness: bsim

tests:
+1 −0
Original line number Diff line number Diff line
@@ -12,4 +12,5 @@ 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/host/privacy/peripheral
tests/bsim/bluetooth/tester/