Skip to content

Commit 7e2aba8

Browse files
committed
samples: Bluetooth: iso_central: Add sysbuild to build hci_ipc
Add sysbuild support to build corresponding hci_ipc firmware for net core on nRF53x boards. Example build commandline: # west build -b nrf5340dk/nrf5340/cpuapp -d build/iso_central samples/bluetooth/iso_central Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 8bc628d commit 7e2aba8

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023-2024 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 "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
9+
default "nrf5340_audio_dk/nrf5340/cpunet" if $(BOARD) = "nrf5340_audio_dk"
10+
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
11+
12+
config NET_CORE_IMAGE_HCI_IPC
13+
bool "HCI IPC image on network core"
14+
default y
15+
depends on NET_CORE_BOARD != ""

samples/bluetooth/iso_central/sample.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ sample:
44
tests:
55
sample.bluetooth.iso_central:
66
harness: bluetooth
7-
platform_allow: qemu_x86
7+
platform_allow:
8+
- qemu_x86
9+
- nrf5340dk/nrf5340/cpuapp
810
integration_platforms:
911
- qemu_x86
12+
- nrf5340dk/nrf5340/cpuapp
1013
tags: bluetooth
14+
sysbuild: true
1115
sample.bluetooth.iso_central.bt_ll_sw_split:
1216
harness: bluetooth
1317
platform_allow:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2023-2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5+
# For builds in the nrf5340, we build the netcore image with the controller
6+
7+
set(NET_APP hci_ipc)
8+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
9+
10+
ExternalZephyrProject_Add(
11+
APPLICATION ${NET_APP}
12+
SOURCE_DIR ${NET_APP_SRC_DIR}
13+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
14+
)
15+
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18+
CACHE INTERNAL ""
19+
)
20+
21+
set(${NET_APP}_SNIPPET
22+
"bt-ll-sw-split"
23+
CACHE INTERNAL ""
24+
)
25+
26+
# Necessary to match the ACL RX size between APP and NET core
27+
set(CONFIG_BT_BUF_ACL_RX_SIZE
28+
"255"
29+
CACHE INTERNAL ""
30+
)
31+
32+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
33+
endif()
34+
35+
native_simulator_set_final_executable(${DEFAULT_IMAGE})

0 commit comments

Comments
 (0)