Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Aug-2025 | - | ||||
readme.rst | A D | 22-Aug-2025 | 4.2 KiB | 124 | 79 |
readme.rst
1------- 2STM32L5 3------- 4 5TF-M is supported on STM32L5 family 6 7https://www.st.com/en/microcontrollers-microprocessors/stm32l5-series.html 8 9https://www.st.com/resource/en/user_manual/dm00678763-getting-started-with-stm32cubel5-tfm-application-stmicroelectronics.pdf 10 11Directory content 12^^^^^^^^^^^^^^^^^ 13 14- stm/common/stm32l5xx/stm32l5xx_hal: 15 Content from https://github.com/STMicroelectronics/stm32l5xx_hal_driver.git 16 17- stm/common/stm32l5xx/Device: 18 Content from https://github.com/STMicroelectronics/cmsis_device_l5.git 19 20- stm/common/stm32l5xx/bl2: 21 stm32l5xx bl2 code specific from https://github.com/STMicroelectronics/STM32CubeL5.git (Projects/STM32L562E-DK/Applications/TFM) 22 23- stm/common/stm32l5xx/secure: 24 stm32l5xx Secure porting adaptation from https://github.com/STMicroelectronics/STM32CubeL5.git (Projects/STM32L562E-DK/Applications/TFM) 25 26- stm/common/stm32l5xx/boards: 27 Adaptation and tools specific to stm32 board using stm32l5xx soc from https://github.com/STMicroelectronics/STM32CubeL5.git (Projects/STM32L562E-DK/Applications/TFM) 28 29- stm/common/stm32l5xx/CMSIS_Driver: 30 Flash and uart driver for stm32l5xx platform 31 32- stm/common/stm32l5xx/Native_Driver: 33 Random generator and tickless implementation 34 35Specific Software Requirements 36^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 37 38STM32_Programmer_CLI is required.(see https://www.st.com/en/development-tools/stm32cubeprog.html) 39 40 41STM32L562E_DK 42^^^^^^^^^^^^^ 43 44Discovery kit with STM32L562QE MCU : 45https://www.st.com/en/evaluation-tools/stm32l562e-dk.html 46 47Configuration and Build 48""""""""""""""""""""""" 49 50GNUARM/ARMCLANG/IARARM compilation is available for this target. 51and build the selected configuration as follow. 52 53The build configuration for TF-M is provided to the build system using command 54line arguments. Required arguments are noted below. 55 56The following instructions build multi-core TF-M with regression test suites 57in Isolation Level 1. 58 59In common STM (``platform\ext\target\stm\common\build_stm``) 60There are scripts that help users to build the TF-M project on all STM platforms 61 62.. code-block:: bash 63 64 65 cd <TF-M base folder> 66 cd <trusted-firmware-m folder> 67 68 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 69 git checkout <recommended tf-m-tests commit> (..\trusted-firmware-m\lib\ext\tf-m-tests\version.txt) 70 71 mkdir build_s && cd build_s 72 73 cmake -S /../tf-m-tests/tests_reg/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32l562e_dk 74 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 75 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 76 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 77 -DTEST_S=ON -DTEST_NS=ON 78 79 ninja -C . install -j 8 80 81 cd <trusted-firmware-m folder> 82 mkdir build_ns && cd build_ns 83 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_reg -B . -GNinja 84 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 85 86 ninja -C . -j 8 87 88The following instructions build multi-core TF-M with PSA API test suite for 89the attestation service in Isolation Level 1 on Linux. 90 91.. code-block:: bash 92 93 94 cd <TF-M base folder> 95 cd <trusted-firmware-m folder> 96 97 git clone https://git.trustedfirmware.org/TF-M/tf-m-tests.git 98 git checkout <recommended tf-m-tests commit> (..\trusted-firmware-m\lib\ext\tf-m-tests\version.txt) 99 100 mkdir build_s && cd build_s 101 102 cmake -S /../tf-m-tests/tests_psa_arch/spe -B . -GNinja -DTFM_PLATFORM=stm/stm32l562e_dk 103 -DTFM_TOOLCHAIN_FILE= /../toolchain_ARMCLANG.cmake 104 -DCONFIG_TFM_SOURCE_PATH= /../trusted-firmware-m 105 -DTFM_PSA_API=ON -DTFM_ISOLATION_LEVEL=1 106 -DTEST_PSA_API=INITIAL_ATTESTATION 107 108 ninja -C . install -j 8 109 110 cd <trusted-firmware-m folder> 111 mkdir build_ns && cd build_ns 112 cmake -S /../trusted-firmware-m /../tf-m-tests/tests_psa_arch -B . -GNinja 113 -DCONFIG_SPE_PATH= /../build_s/api_ns -DTFM_TOOLCHAIN_FILE= /../build_s/api_ns/cmake/toolchain_ns_ARMCLANG.cmake 114 115 ninja -C . -j 8 116 117 118 119------------- 120 121*Copyright (c) 2021, Arm Limited. All rights reserved.* 122*Copyright (c) 2019, STMicroelectronics. All rights reserved.* 123*SPDX-License-Identifier: BSD-3-Clause* 124