Skip to content

Commit bfbc5aa

Browse files
committed
Samples: tfm: Added 54lv10a 54lm20a/b to tfm tests
Added 54l15, 54lm20a/b and 54lv10a to some TFM tests and samples Signed-off-by: Paul Fleury <paul.fleury@nordicsemi.no>
1 parent 955518a commit bfbc5aa

24 files changed

Lines changed: 364 additions & 1 deletion

File tree

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@
709709
/samples/zephyr/subsys/settings/ @nrfconnect/ncs-low-level-test
710710
/samples/zephyr/subsys/usb/ @nrfconnect/ncs-low-level-test
711711
/samples/zephyr/sysbuild/ @nrfconnect/ncs-low-level-test
712+
/samples/zephyr/tfm_integration/ @nrfconnect/ncs-aegir
712713

713714
/samples/**/*.svg @nrfconnect/ncs-doc-leads
714715
/samples/**/*.png @nrfconnect/ncs-doc-leads

samples/keys/hw_unique_key/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !BOARD_IS_NON_SECURE
8+
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2026 Nordic Semiconductor ASA
2+
#
3+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
5+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
6+
CONFIG_MAIN_STACK_SIZE=4096
7+
CONFIG_MBEDTLS_ENABLE_HEAP=y

samples/keys/hw_unique_key/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ common:
1818
- nrf52840dk/nrf52840
1919
- nrf21540dk/nrf52840
2020
- nrf54l15dk/nrf54l15/cpuapp
21+
- nrf54l15dk/nrf54l15/cpuapp/ns
2122
- nrf54lm20dk/nrf54lm20a/cpuapp
2223
- nrf54lm20dk/nrf54lm20b/cpuapp
24+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
25+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
2326
- nrf54l15dk/nrf54l10/cpuapp
2427
- nrf54l15dk/nrf54l05/cpuapp
28+
- nrf54lv10dk/nrf54lv10a/cpuapp
29+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
2530
integration_platforms:
2631
- nrf5340dk/nrf5340/cpuapp
2732
- nrf5340dk/nrf5340/cpuapp/ns
@@ -34,10 +39,15 @@ common:
3439
- nrf52840dk/nrf52840
3540
- nrf21540dk/nrf52840
3641
- nrf54l15dk/nrf54l15/cpuapp
42+
- nrf54l15dk/nrf54l15/cpuapp/ns
3743
- nrf54lm20dk/nrf54lm20a/cpuapp
3844
- nrf54lm20dk/nrf54lm20b/cpuapp
45+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
46+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
3947
- nrf54l15dk/nrf54l10/cpuapp
4048
- nrf54l15dk/nrf54l05/cpuapp
49+
- nrf54lv10dk/nrf54lv10a/cpuapp
50+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
4151
harness: console
4252
harness_config:
4353
type: multi_line

samples/tfm/tfm_hello_world/sample.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ tests:
6464
- ci_samples_tfm
6565
extra_args:
6666
- CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
67+
platform_allow:
68+
- nrf54l15dk/nrf54l15/cpuapp/ns
69+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
70+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
71+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
72+
integration_platforms:
73+
- nrf54l15dk/nrf54l15/cpuapp/ns
74+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
75+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
76+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
6777
sample.tfm.hello_world.lvl2:
6878
sysbuild: true
6979
tags:
@@ -74,3 +84,13 @@ tests:
7484
- CONFIG_TFM_IPC=y
7585
- CONFIG_TFM_ISOLATION_LEVEL=2
7686
- CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
87+
platform_allow:
88+
- nrf54l15dk/nrf54l15/cpuapp/ns
89+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
90+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
91+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
92+
integration_platforms:
93+
- nrf54l15dk/nrf54l15/cpuapp/ns
94+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
95+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
96+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns

samples/tfm/tfm_secure_peripheral/sample.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,19 @@ common:
1111
- nrf9151dk/nrf9151/ns
1212
- nrf9160dk/nrf9160/ns
1313
- nrf9161dk/nrf9161/ns
14+
- nrf54l15dk/nrf54l15/cpuapp/ns
15+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
16+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
17+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
1418
integration_platforms:
1519
- nrf5340dk/nrf5340/cpuapp/ns
1620
- nrf9151dk/nrf9151/ns
1721
- nrf9160dk/nrf9160/ns
1822
- nrf9161dk/nrf9161/ns
23+
- nrf54l15dk/nrf54l15/cpuapp/ns
24+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
25+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
26+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
1927
harness: console
2028
harness_config:
2129
type: multi_line
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
11+
project(psa_protected_storage)
12+
13+
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/tfm_integration/psa_protected_storage/src/main.c)
14+
15+
target_include_directories(app PRIVATE
16+
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
17+
)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
config PARTITION_MANAGER
8+
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
9+
10+
source "share/sysbuild/Kconfig"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_BUILD_WITH_TFM=y
8+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
sample:
2+
description: Protected Storage API sample
3+
name: PSA Protected Storage
4+
common:
5+
tags: psa
6+
platform_allow:
7+
- nrf54l15dk/nrf54l15/cpuapp/ns
8+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
9+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
10+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
11+
- nrf5340dk/nrf5340/cpuapp/ns
12+
- nrf9160dk/nrf9160/ns
13+
harness: console
14+
harness_config:
15+
type: multi_line
16+
regex:
17+
- "Protected Storage sample started"
18+
- "PSA Protected Storage API Version [0-9]*.[0-9]*"
19+
- "Writing data to UID1: .*"
20+
- "Info on data stored in UID1:"
21+
- "- Size: [0-9]*"
22+
- "- Capacity: 0x[0-9a-f]*"
23+
- "- Flags: 0x[0-9-a-f]*"
24+
- "Got expected error \\(PSA_ERROR_NOT_PERMITTED\\) when writing to protected\
25+
\ UID"
26+
- "Removing UID1"
27+
28+
tests:
29+
sample.tfm.protected_storage:
30+
tags:
31+
- trusted-firmware-m
32+
- mcuboot

0 commit comments

Comments
 (0)