Hello Nick,
For sure :
build_L56_psa_gnu_s()
{
cmake -S $TFM_work_dir_L56/tf-m-tests/tests_psa_arch/spe -B $L56_build_s -GNinja -DTFM_PLATFORM=stm/stm32l562e_dk -DTFM_TOOLCHAIN_FILE=$L56_tfm_src/toolchain_GNUARM.cmake -DCONFIG_TFM_SOURCE_PATH=$L56_tfm_src -DTFM_PSA_API=ON -DTEST_PSA_API=PROTECTED_STORAGE
cmake --build $L56_build_s -- install
}
build_L56_psa_gnu_ns()
{
cmake -S $TFM_work_dir_L56/tf-m-tests/tests_psa_arch -B $L56_build_ns -GNinja -DCONFIG_SPE_PATH=$L56_build_s/api_ns -DTFM_TOOLCHAIN_FILE=$L56_build_s/api_ns/cmake/toolchain_ns_GNUARM.cmake
cmake --build $L56_build_ns
}
With :

export L56_tfm_src="$TFM_work_dir_L56/trusted-firmware-m"
export L56_build_s="$TFM_work_dir_L56/build_s"
export L56_build_ns="$TFM_work_dir_L56/build_ns"
Thank you for your help
Ronan

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online: www.st.com
From: Nicola Mazzucato <Nicola.Mazzucato@arm.com>
Sent: Tuesday, January 6, 2026 11:25 AM
To: Ronan GABOU <Ronan.GABOU@st.com>; tf-m@lists.trustedfirmware.org
Cc: Anton Komlev <Anton.Komlev@arm.com>
Subject: Re: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Ronan,
Can you please share your entire build command so we can try replicate it on our side?
Thanks
Best regards,
Nick
From: Ronan GABOU <Ronan.GABOU@st.com>
Sent: 06 January 2026 10:19
To: Anton Komlev <Anton.Komlev@arm.com>; Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: RE: [TF-M] Re: : PSA API test build issue on main branch TFM
Hello Anton,
Thank you for your answer.
I use trusted FW main cloned yesterday (13fca17c64af961b36fad741e9b042d43ff29129) and tf-m-tests indicated into trusted firmware (7314943) and mcuboot tagged “tfm”
To be able to build PSA API tests I had to copy paste the .cmake file.
If not the first cmake command failed immediately with this message:
-- The C compiler identification is GNU 15.2.0
CMake Error at C:/TFM_L55/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:10 (include):
include could not find requested file:
remote_library
CMake Error at C:/TFM_L55/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:15 (fetch_remote_library):
Unknown CMake command "fetch_remote_library".
-- Configuring incomplete, errors occurred!
ninja: error: loading 'build.ninja': The system cannot find the file specified.
Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online: www.st.com
From: Anton Komlev <Anton.Komlev@arm.com>
Sent: Monday, January 5, 2026 5:48 PM
To: Ronan GABOU <Ronan.GABOU@st.com>; Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org
Subject: RE: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Ronan,
remote_library.cmake is installed from trusted-firmware-m during the secure image build. There were some changes to this logic not that long ago, so you may need to update both repositories and rebase your changes. Could you give that a try?
Hope that helps,
Anton
From: Ronan GABOU via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Monday, January 5, 2026 2:53 PM
To: Nicola Mazzucato <Nicola.Mazzucato@arm.com>;
tf-m@lists.trustedfirmware.org
Subject: [TF-M] Re: : PSA API test build issue on main branch TFM
Hi Nick,
Thank you for your answer.
I didn’t succeed ☹
However to solve my issue and run correctly the PSA API tests on my STM32L5 DK board I had to copy paste remote_library.cmake file
From \trusted-firmware-m\cmake\
To \tf-m-tests\cmake\
My problem is to be sure it is the correct way to proceed …
Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online: www.st.com
From: Nicola Mazzucato <Nicola.Mazzucato@arm.com>
Sent: Monday, December 22, 2025 4:34 PM
To: tf-m@lists.trustedfirmware.org; Ronan GABOU <Ronan.GABOU@st.com>
Subject: Re: [TF-M] : PSA API test build issue on main branch TFM
Hi Ronan,
I think you may need to add -DPSA_ARCH_TESTS_PATH=<absolute-path-to-psa-arch-tests> to your build command.
Hope that helps,
Best regards,
Nick
From: Ronan GABOU via TF-M <tf-m@lists.trustedfirmware.org>
Sent: 22 December 2025 15:19
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] : PSA API test build issue on main branch TFM
Hello All,
I wanted to run regression and PSA API tests before Upstreaming ST patches to community.
However I had issue with PSA API tests.
Note, that I can build Regression tests without any problem.
I use the main branch and latest SHA1
I ‘ve the following error:
$ build_L56_psa_gnu_s
-- The C compiler identification is GNU 15.2.0
CMake Error at C:/TFM_L56/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:10 (include):
include could not find requested file:
remote_library
CMake Error at C:/TFM_L56/tf-m-tests/tests_psa_arch/fetch_repo/CMakeLists.txt:15 (fetch_remote_library):
Unknown CMake command "fetch_remote_library".
-- Configuring incomplete, errors occurred!
ninja: error: loading 'build.ninja': The system cannot find the file specified.
The cmake command is :
cmake -S $TFM_work_dir_L56/tf-m-tests/tests_psa_arch/spe -B $L56_build_s -GNinja -DTFM_PLATFORM=stm/stm32l562e_dk -DTFM_TOOLCHAIN_FILE=$L56_tfm_src/toolchain_GNUARM.cmake -DCONFIG_TFM_SOURCE_PATH=$L56_tfm_src -DTFM_PSA_API=ON -DTEST_PSA_API=PROTECTED_STORAGE;
c:\TFM_L56\tf-m-tests\tests_psa_arch\fetch_repo\CMakeLists.txt content is :
include(remote_library)
set(PSA_ARCH_TESTS_PATH "DOWNLOAD" CACHE PATH "Path to PSA arch test repository used for SPE build")
set(PSA_ARCH_TESTS_VERSION "v24.03_API1.6_CRYPTO_1.1.0" CACHE STRING "The version of PSA arch tests to use")
fetch_remote_library(
LIB_NAME psa_arch_tests
LIB_SOURCE_PATH_VAR PSA_ARCH_TESTS_PATH
LIB_BASE_DIR ${CMAKE_BINARY_DIR}/fetch_repo
LIB_PATCH_DIR ${CMAKE_CURRENT_LIST_DIR}
LIB_FORCE_PATCH PSA_ARCH_TESTS_FORCE_PATCH
FETCH_CONTENT_ARGS
GIT_REPOSITORY https://github.com/ARM-software/psa-arch-tests.git
GIT_TAG ${PSA_ARCH_TESTS_VERSION}
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
Note In case I use v2.1.3 TFM tag with associated tf-m-tests and mcuboot SHA1 I can build the PSA API binaries without this error.
Does someone can provide me ideas / tracks to solve my problem?
Thank you for your time, Ronan,

Ronan GABOU | Tel: +33 1 58 07 80 19
MDG / General Purpose Microcontroller Sub-Group / Wireless Business Line / Cellular
ST online:
www.st.com
online: www.st.com