Skip to content

Commit 31ce344

Browse files
committed
Samples: tfm: Added lv lm to tfm tests
Signed-off-by: Paul Fleury <paul.fleury@nordicsemi.no>
1 parent 105d75d commit 31ce344

26 files changed

Lines changed: 665 additions & 1 deletion
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2025 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/keys/identity_key_usage/src/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#include <string.h>
1010
#include <stdio.h>
1111
#include <psa/crypto.h>
12-
#include <nrf_cc3xx_platform.h>
12+
#if !defined(CONFIG_BOARD_SERIES_54L)
13+
# include <nrf_cc3xx_platform.h>
14+
#endif
1315
#include <nrf_cc3xx_platform_ctr_drbg.h>
1416
#include <nrf_cc3xx_platform_defines.h>
1517
#include <nrf_cc3xx_platform_identity_key.h>

samples/tfm/tfm_hello_world/sample.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ tests:
6565
extra_args:
6666
- CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
6767
- CONFIG_NRF_SECURITY=y
68+
platform_allow:
69+
- nrf54l15dk/nrf54l15/cpuapp/ns
70+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
71+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
72+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
73+
- nrf7120dk/nrf7120/cpuapp/ns
74+
integration_platforms:
75+
- nrf54l15dk/nrf54l15/cpuapp/ns
76+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
77+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
78+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
79+
- nrf7120dk/nrf7120/cpuapp/ns
6880
sample.tfm.hello_world.lvl2:
6981
sysbuild: true
7082
tags:
@@ -75,3 +87,15 @@ tests:
7587
- CONFIG_TFM_IPC=y
7688
- CONFIG_TFM_ISOLATION_LEVEL=2
7789
- CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
90+
platform_allow:
91+
- nrf54l15dk/nrf54l15/cpuapp/ns
92+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
93+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
94+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
95+
- nrf7120dk/nrf7120/cpuapp/ns
96+
integration_platforms:
97+
- nrf54l15dk/nrf54l15/cpuapp/ns
98+
- nrf54lv10dk/nrf54lv10a/cpuapp/ns
99+
- nrf54lm20dk/nrf54lm20a/cpuapp/ns
100+
- nrf54lm20dk/nrf54lm20b/cpuapp/ns
101+
- nrf7120dk/nrf7120/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) 2021 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(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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# Copyright (c) 2021 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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
- mps2/an521/cpu0/ns
12+
- v2m_musca_s1/musca_s1/ns
13+
- nrf5340dk/nrf5340/cpuapp/ns
14+
- nrf9160dk/nrf9160/ns
15+
- bl5340_dvk/nrf5340/cpuapp/ns
16+
- lpcxpresso55s69/lpc55s69/cpu0/ns
17+
- max32657evkit/max32657/ns
18+
- stm32h573i_dk/stm32h573xx/ns
19+
integration_platforms:
20+
- mps2/an521/cpu0/ns
21+
harness: console
22+
harness_config:
23+
type: multi_line
24+
regex:
25+
- "Protected Storage sample started"
26+
- "PSA Protected Storage API Version [0-9]*.[0-9]*"
27+
- "Writing data to UID1: .*"
28+
- "Info on data stored in UID1:"
29+
- "- Size: [0-9]*"
30+
- "- Capacity: 0x[0-9a-f]*"
31+
- "- Flags: 0x[0-9-a-f]*"
32+
- "Got expected error \\(PSA_ERROR_NOT_PERMITTED\\) when writing to protected\
33+
\ UID"
34+
- "Removing UID1"
35+
36+
tests:
37+
sample.tfm.protected_storage:
38+
tags:
39+
- trusted-firmware-m
40+
- mcuboot
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
7+
project(tfm_ipc)
8+
9+
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/tfm_integration/tfm_ipc/src/main.c)
10+
11+
target_include_directories(app PRIVATE
12+
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
13+
)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_BUILD_WITH_TFM=y
2+
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
3+
CONFIG_TFM_IPC=y
4+
CONFIG_REBOOT=y
5+
6+
# The Zephyr CMSIS emulation assumes that ticks are ms, currently
7+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
8+
9+
CONFIG_MAIN_STACK_SIZE=4096
10+
CONFIG_HEAP_MEM_POOL_SIZE=4096

0 commit comments

Comments
 (0)