Ludovic Barre | 1098de8 | 2021-04-21 18:01:10 +0200 | [diff] [blame] | 1 | ------- |
| 2 | STM32L5 |
| 3 | ------- |
| 4 | |
| 5 | TF-M is supported on STM32L5 family |
| 6 | |
| 7 | https://www.st.com/en/microcontrollers-microprocessors/stm32l5-series.html |
| 8 | |
| 9 | https://www.st.com/resource/en/user_manual/dm00678763-getting-started-with-stm32cubel5-tfm-application-stmicroelectronics.pdf |
| 10 | |
| 11 | Directory 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 | |
| 35 | Specific Software Requirements |
| 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 37 | |
| 38 | STM32_Programmer_CLI is required.(see https://www.st.com/en/development-tools/stm32cubeprog.html) |
| 39 | |
| 40 | |
| 41 | Write software on target |
| 42 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
Michel JAOUEN | 4bcd5c0 | 2023-10-31 16:26:57 +0100 | [diff] [blame] | 43 | In secure build folder directory api_ns: |
Ludovic Barre | 1098de8 | 2021-04-21 18:01:10 +0200 | [diff] [blame] | 44 | |
| 45 | - ``postbuild.sh``: Updates regression.sh and TFM_UPDATE.sh scripts according to flash_layout.h |
| 46 | - ``regression.sh``: Sets platform option bytes config and erase platform |
| 47 | - ``TFM_UPDATE.sh``: Writes bl2, secure, and non secure image in target |
| 48 | |
| 49 | |
| 50 | Connect board to USB and Execute the 3 scripts in following order to update platform: |
| 51 | postbuild.sh, regression.sh, TFM_UPDATE.sh |
| 52 | |
| 53 | The virtual com port from STLINK is used for TFM log and serial port configuration should be: |
| 54 | |
| 55 | - Baud rate = 115200 |
| 56 | - Data = 8 bits |
| 57 | - Parity = none |
| 58 | - Stop = 1 bit |
| 59 | - Flow control = none |
| 60 | |
| 61 | ------------- |
| 62 | |
| 63 | *Copyright (c) 2019 STMicroelectronics. All rights reserved.* |
| 64 | *SPDX-License-Identifier: BSD-3-Clause* |