Ahmad EL JOUAID | 20fc23f | 2023-10-17 16:58:56 +0200 | [diff] [blame] | 1 | ------- |
| 2 | STM32H5 |
| 3 | ------- |
| 4 | |
| 5 | TF-M is supported on STM32H5 family |
| 6 | |
| 7 | https://www.st.com/en/microcontrollers-microprocessors/stm32h5-series.html |
| 8 | |
| 9 | |
| 10 | Directory content |
| 11 | ^^^^^^^^^^^^^^^^^ |
| 12 | |
| 13 | - stm/common/stm32h5xx/stm32h5xx_hal: |
| 14 | Content from https://github.com/STMicroelectronics/stm32h5xx_hal_driver |
| 15 | |
| 16 | - stm/common/stm32h5xx/Device: |
| 17 | Content from https://github.com/STMicroelectronics/cmsis_device_h5 |
| 18 | |
| 19 | - stm/common/stm32h5xx/bl2: |
| 20 | stm32h5xx bl2 code specific from https://github.com/STMicroelectronics/STM32CubeH5.git (Projects/STM32H573I_DK/Applications/TFM) |
| 21 | |
| 22 | - stm/common/stm32h5xx/secure: |
| 23 | stm32h5xx Secure porting adaptation from https://github.com/STMicroelectronics/STM32CubeH5.git (Projects/STM32H573I_DK/Applications/TFM) |
| 24 | |
| 25 | - stm/common/stm32h5xx/boards: |
| 26 | Adaptation and tools specific to stm32 board using stm32h5xx soc from https://github.com/STMicroelectronics/STM32CubeH5.git (Projects/STM32H573I_DK/Applications/TFM) |
| 27 | |
| 28 | - stm/common/stm32h5xx/CMSIS_Driver: |
| 29 | Flash and uart driver for stm32h5xx platform |
| 30 | |
| 31 | - stm/common/stm32h5xx/Native_Driver: |
| 32 | Random generator and tickless implementation |
| 33 | |
| 34 | Specific Software Requirements |
| 35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | |
| 37 | STM32_Programmer_CLI is required.(see https://www.st.com/en/development-tools/stm32cubeprog.html) |
| 38 | |
| 39 | Limitations to Consider When Using the Platform |
| 40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 41 | MPU and ICACHE disabled in bl2 boot stage |
| 42 | |
| 43 | Write software on target |
| 44 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 45 | In build folder: |
| 46 | |
| 47 | - ``postbuild.sh``: Updates regression.sh and TFM_UPDATE.sh scripts according to flash_layout.h |
| 48 | - ``regression.sh``: Sets platform option bytes config and erase platform |
| 49 | - ``TFM_UPDATE.sh``: Writes bl2, secure, and non secure image in target |
| 50 | |
| 51 | |
| 52 | Connect board to USB and Execute the 3 scripts in following order to update platform: |
| 53 | postbuild.sh, regression.sh, TFM_UPDATE.sh |
| 54 | |
| 55 | The virtual com port from STLINK is used for TFM log and serial port configuration should be: |
| 56 | |
| 57 | - Baud rate = 115200 |
| 58 | - Data = 8 bits |
| 59 | - Parity = none |
| 60 | - Stop = 1 bit |
| 61 | - Flow control = none |
| 62 | |
| 63 | ------------- |
| 64 | |
| 65 | *Copyright (c) 2023 STMicroelectronics. All rights reserved.* |
| 66 | *SPDX-License-Identifier: BSD-3-Clause* |