Skip to content

Commit

Permalink
samples: bluetooth: peripheral_urat: Add nrf54h20 rpc_host to build
Browse files Browse the repository at this point in the history
Add possibility to build the sample application targeted to nrf54h20
with use of Bluetooth API wrapped with RPC Host client. The Radio
core application in such case must be ipc_radio with enabled Bluetooth
RPC host. That reqires change to sysbuild configuration of the
sample application.

One note, the Bluetooth RPC subsystem requires to have same Bluetooth
device name on obth ends of RPC communication, so there is used
FILE_SUFFIX=bt_rpc and provided sysbuild configuration files that
are include when the suffix is used in build call.

To build the sample with enabled Bluetooth RPC subsys use:
'west build -b nrf54h20dk/nrf54h20/cpuapp --sysbuild -p
 -S nordic-bt-rpc -- -DFILE_SUFFIX=bt_rpc'

Signed-off-by: Piotr Pryga <[email protected]>
  • Loading branch information
ppryga-nordic committed Jun 5, 2024
1 parent 4845a72 commit e64a850
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
3 changes: 0 additions & 3 deletions samples/bluetooth/peripheral_uart/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"

config NRF_DEFAULT_IPC_RADIO
default y

config NETCORE_IPC_RADIO_BT_HCI_IPC
default y
8 changes: 5 additions & 3 deletions samples/bluetooth/peripheral_uart/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ tests:
sample.bluetooth.peripheral_uart_ble_rpc:
sysbuild: true
build_only: true
extra_configs:
- CONFIG_BT_RPC_STACK=y
extra_args:
- SNIPPET=nordic-bt-rpc
- FILE_SUFFIX=bt_rpc
integration_platforms:
- nrf5340dk/nrf5340/cpuapp
platform_allow: nrf5340dk/nrf5340/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
platform_allow: nrf5340dk/nrf5340/cpuapp nrf54h20dk/nrf54h20/cpuapp
tags: bluetooth ci_build sysbuild
sample.bluetooth.peripheral_uart.security_disabled:
sysbuild: true
Expand Down
7 changes: 7 additions & 0 deletions samples/bluetooth/peripheral_uart/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_NETCORE_IPC_RADIO_BT_HCI_IPC=y
9 changes: 9 additions & 0 deletions samples/bluetooth/peripheral_uart/sysbuild/ipc_radio/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_LOG=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_BT_DEVICE_NAME="Nordic_UART_Service"

CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_LOG=n
7 changes: 7 additions & 0 deletions samples/bluetooth/peripheral_uart/sysbuild_bt_rpc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_NETCORE_IPC_RADIO_BT_RPC=y

0 comments on commit e64a850

Please sign in to comment.