blob: 32507058840061450442db8f5498c4dce909467e [file] [log] [blame]
Ludovic Barre1098de82021-04-21 18:01:10 +02001-------
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
41Write software on target
42^^^^^^^^^^^^^^^^^^^^^^^^
Michel JAOUEN4bcd5c02023-10-31 16:26:57 +010043In secure build folder directory api_ns:
Ludovic Barre1098de82021-04-21 18:01:10 +020044
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
50Connect board to USB and Execute the 3 scripts in following order to update platform:
51postbuild.sh, regression.sh, TFM_UPDATE.sh
52
53The 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*