Skip to content

Commit

Permalink
samples: openthread: add TF-M support for nrf54l15
Browse files Browse the repository at this point in the history
add TF-M support for nrf54l15 and pull nrfxlib with changes
allowing building TFM from libraries without warnings

Signed-off-by: Maciej Baczmanski <[email protected]>
  • Loading branch information
maciejbaczmanski committed Oct 17, 2024
1 parent f4360c0 commit d5ee57a
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 2 deletions.
14 changes: 14 additions & 0 deletions samples/openthread/cli/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Disable the unsupported driver
CONFIG_NRFX_UARTE0=n

# Workaround required as Zephyr L2 implies usage of NVS backend for settings.
# It should be removed once the proper fix will be applied in Zephyr.
CONFIG_NVS=n
CONFIG_ZMS=y
CONFIG_SETTINGS_ZMS=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/


// restore full RRAM and SRAM space - by default some parts are dedicated to FLRP
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};
8 changes: 8 additions & 0 deletions samples/openthread/cli/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ tests:
nrf5340dk/nrf5340/cpuapp
nrf5340dk/nrf5340/cpuapp/ns
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
Expand All @@ -22,6 +23,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpuapp/ns
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54h20dk/nrf54h20/cpuapp
sample.openthread.cli.multiprotocol:
sysbuild: true
Expand All @@ -34,6 +36,7 @@ tests:
nrf5340dk/nrf5340/cpuapp
nrf5340dk/nrf5340/cpuapp/ns
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
nrf54h20dk/nrf54h20/cpuapp
extra_args: >
cli_SNIPPET="ci;logging;multiprotocol;tcp"
Expand All @@ -45,6 +48,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpuapp/ns
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54h20dk/nrf54h20/cpuapp
sample.openthread.cli.singleprotocol:
sysbuild: true
Expand All @@ -56,6 +60,7 @@ tests:
nrf5340dk/nrf5340/cpuapp
nrf5340dk/nrf5340/cpuapp/ns
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
nrf54h20dk/nrf54h20/cpuapp
extra_args: >
cli_SNIPPET="ci;logging;tcp"
Expand All @@ -65,6 +70,7 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpuapp/ns
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54h20dk/nrf54h20/cpuapp
sample.openthread.cli.usb:
sysbuild: true
Expand Down Expand Up @@ -119,6 +125,7 @@ tests:
nrf5340dk/nrf5340/cpuapp
nrf5340dk/nrf5340/cpuapp/ns
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
extra_args: >
cli_SNIPPET="ci;tcat;tcp"
FILE_SUFFIX=ble
Expand All @@ -128,3 +135,4 @@ tests:
- nrf5340dk/nrf5340/cpuapp
- nrf5340dk/nrf5340/cpuapp/ns
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_FPU=n
CONFIG_SPI_NOR=n

# Workaround required as Zephyr L2 implies usage of NVS backend for settings.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SPI_NOR=n

# Workaround required as Zephyr L2 implies usage of NVS backend for settings.
# It should be removed once the proper fix will be applied in Zephyr.
CONFIG_NVS=n
CONFIG_ZMS=y
CONFIG_SETTINGS_ZMS=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/


// restore full RRAM and SRAM space - by default some parts are dedicated to FLRP
&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1524)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(256)>;
ranges = <0x0 0x20000000 0x40000>;
};
4 changes: 4 additions & 0 deletions samples/openthread/coprocessor/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ tests:
nrf52840dongle/nrf52840
nrf21540dk/nrf52840
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
integration_platforms:
- nrf52833dk/nrf52833
- nrf52840dk/nrf52840
- nrf21540dk/nrf52840
- nrf52840dongle/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
sample.openthread.coprocessor.vendor_hook:
sysbuild: true
build_only: true
Expand All @@ -29,6 +31,7 @@ tests:
nrf52840dongle/nrf52840
nrf21540dk/nrf52840
nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l15/cpuapp/ns
extra_args: >
SNIPPET="ci;logging;vendor_hook"
integration_platforms:
Expand All @@ -37,6 +40,7 @@ tests:
- nrf21540dk/nrf52840
- nrf52840dongle/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
sample.openthread.coprocessor.usb:
sysbuild: true
build_only: true
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ manifest:
- name: nrfxlib
repo-path: sdk-nrfxlib
path: nrfxlib
revision: ea7d680ce61310fa6198a23c7daf09369e5215aa
revision: pull/1521/head
- name: trusted-firmware-m
repo-path: sdk-trusted-firmware-m
path: modules/tee/tf-m/trusted-firmware-m
Expand Down

0 comments on commit d5ee57a

Please sign in to comment.