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 19In common STM (``platform\ext\target\stm\common\build_stm``) 20There are scripts that help users to build the TF-M project on all STM platforms 21 22.. code-block:: bash 23 24 25 cd <TF-M base folder> 26 cd <trusted-firmware-m folder> 27 28 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 29 git checkout <recommended tf-m-tests commit> 30 31 mkdir build_s && cd build_s 32 33 cmake -S /../tf-m-tests/tests_reg/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32h573i_dk 34 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 35 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 36 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 37 -DTEST_S=ON -DTEST_NS=ON 38 39 ninja -C . install -j 8 40 41 cd <trusted-firmware-m folder> 42 mkdir build_ns && cd build_ns 43 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_reg -B . -GNinja 44 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 45 46 ninja -C . -j 8 47 48The following instructions build multi-core TF-M with PSA API test suite for 49the attestation service in Isolation Level 1 on Linux. 50 51.. code-block:: bash 52 53 54 cd <TF-M base folder> 55 cd <trusted-firmware-m folder> 56 57 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 58 git checkout <recommended tf-m-tests commit> 59 60 mkdir build_s && cd build_s 61 62 cmake -S /../tf-m-tests/tests_psa_arch/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32h573i_dk 63 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 64 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 65 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 66 -DTEST_PSA_API=INITIAL_ATTESTATION 67 68 ninja -C . install -j 8 69 70 cd <trusted-firmware-m folder> 71 mkdir build_ns && cd build_ns 72 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_psa_arch -B . -GNinja 73 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 74 75 ninja -C . -j 8 76 77 78------------- 79 80*Copyright (c) 2023, STMicroelectronics. All rights reserved.* 81*SPDX-License-Identifier: BSD-3-Clause* 82