Skip to content

Commit 5983a0c

Browse files
Tschet1rugeGerritsen
authored andcommitted
Samples: Bluetooth: Add support for 54h to sample
Extend the sample configuration of the connection time sync sample to support running on 54h. This worked mainly out of the box, only the relevant device-tree configuration was missing. Signed-off-by: Jan Müller <[email protected]>
1 parent 06ec123 commit 5983a0c

File tree

7 files changed

+42
-3
lines changed

7 files changed

+42
-3
lines changed

samples/bluetooth/conn_time_sync/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (CONFIG_SOC_COMPATIBLE_NRF52X)
2323
target_sources(app PRIVATE src/controller_time_nrf52.c)
2424
elseif (CONFIG_SOC_COMPATIBLE_NRF5340_CPUAPP)
2525
target_sources(app PRIVATE src/controller_time_nrf53_app.c)
26-
elseif (CONFIG_SOC_SERIES_NRF54LX)
27-
target_sources(app PRIVATE src/controller_time_nrf54l.c)
26+
elseif (CONFIG_SOC_SERIES_NRF54LX OR CONFIG_SOC_SERIES_NRF54HX)
27+
target_sources(app PRIVATE src/controller_time_nrf54.c)
2828
else()
2929
MESSAGE(FATAL_ERROR "Unsupported series")
3030
endif()

samples/bluetooth/conn_time_sync/Kconfig.sysbuild

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
88

99
config NRF_DEFAULT_BLUETOOTH
1010
default y
11+
12+
config NETCORE_IPC_RADIO_BT_HCI_IPC
13+
default y

samples/bluetooth/conn_time_sync/README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ See the following equations:
101101
Hardware resource usage
102102
=======================
103103

104-
This sample requires fewer hardware resources when it is run on an nRF54L Series device compared to the nRF52 or nRF53 Series devices.
104+
This sample requires fewer hardware resources when it is run on an nRF54 Series device compared to the nRF52 or nRF53 Series devices.
105105
On an nRF54L Series device, only one GRTC channel and PPI channel is needed to set up accurate toggling of an LED.
106+
On an nRF54H Series device, two local DPPI channels are used to connect the GRTC and the LED to the local PPIB instances.
107+
A PPIB channel is used to connect the two PPIB instances.
106108
On nRF52 and nRF53 Series devices, you also need one RTC peripheral, one TIMER peripheral, one EGU channel, three PPI channels, and one PPI group.
107109

108110
User interface
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_BT_RX_STACK_SIZE=2048
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
&dppic130 {
2+
status = "okay";
3+
4+
// Use channel 4 to connect the PPIB to the LED/GPIO
5+
owned-channels = <4>;
6+
sink-channels = <4>;
7+
};
8+
9+
&dppic132 {
10+
status = "okay";
11+
12+
// Use channel 4 to connect the GRTC to the PPIB.
13+
source-channels = < 4 >;
14+
owned-channels = <4>;
15+
};
16+
17+
&grtc {
18+
status = "okay";
19+
20+
// Change channel 6 to be owned by the application (not child)
21+
child-owned-channels = < 0x5>;
22+
// Change channel 6 to be secure
23+
nonsecure-channels = < 0x5>;
24+
owned-channels = < 0x4 0x5 0x6>;
25+
};

samples/bluetooth/conn_time_sync/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ tests:
1212
- nrf54l15dk/nrf54l05/cpuapp
1313
- nrf54l15dk/nrf54l10/cpuapp
1414
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54h20dk/nrf54h20/cpuapp
1516
platform_allow:
1617
- nrf52840dk/nrf52840
1718
- nrf52833dk/nrf52833
1819
- nrf5340dk/nrf5340/cpuapp
1920
- nrf54l15dk/nrf54l05/cpuapp
2021
- nrf54l15dk/nrf54l10/cpuapp
2122
- nrf54l15dk/nrf54l15/cpuapp
23+
- nrf54h20dk/nrf54h20/cpuapp
2224
tags: bluetooth ci_build sysbuild

0 commit comments

Comments
 (0)