1STM32H573I_DK 2^^^^^^^^^^^^^^^ 3 4Discovery kit for IoT node with STM32H5 series 5https://www.st.com/en/evaluation-tools/stm32h573i-dk.html 6 7Configuration and Build 8""""""""""""""""""""""" 9 10GNUARM/ARMCLANG/IARARM compilation is available for this target. 11and build the selected configuration as follow. 12 13The build configuration for TF-M is provided to the build system using command 14line arguments. Required arguments are noted below. 15 16The following instructions build multi-core TF-M with regression test suites 17in Isolation Level 1. 18 19.. code-block:: bash 20 21 22 cd <TF-M base folder> 23 cd <trusted-firmware-m folder> 24 25 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 26 git checkout <recommended tf-m-tests commit> 27 28 mkdir build_s && cd build_s 29 30 cmake -S /../tf-m-tests/tests_reg/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32h573i_dk 31 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 32 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 33 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 34 -DTEST_S=ON -DTEST_NS=ON 35 36 ninja -C . install -j 8 37 38 cd <trusted-firmware-m folder> 39 mkdir build_ns && cd build_ns 40 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_reg -B . -GNinja 41 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 42 43 ninja -C . -j 8 44 45The following instructions build multi-core TF-M with PSA API test suite for 46the attestation service in Isolation Level 1 on Linux. 47 48.. code-block:: bash 49 50 51 cd <TF-M base folder> 52 cd <trusted-firmware-m folder> 53 54 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 55 git checkout <recommended tf-m-tests commit> 56 57 mkdir build_s && cd build_s 58 59 cmake -S /../tf-m-tests/tests_psa_arch/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32h573i_dk 60 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 61 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 62 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 63 -DTEST_PSA_API=INITIAL_ATTESTATION 64 65 ninja -C . install -j 8 66 67 cd <trusted-firmware-m folder> 68 mkdir build_ns && cd build_ns 69 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_psa_arch -B . -GNinja 70 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 71 72 ninja -C . -j 8 73 74 75------------- 76 77*Copyright (c) 2023, STMicroelectronics. All rights reserved.* 78*SPDX-License-Identifier: BSD-3-Clause* 79