5
Annex
5.1
STM32U5 series
5.1.1
Software build
The following steps describe the operation to build a secure boot example code with its demonstration application
and its loader application based on the STM32CubeU5 MCU Package for the STM32U5 series under Windows
For more details on STM32CubeIDE, refer to [UM2609].
•
Install the package in a folder.
•
Open the folder .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSFU_Boot\STM32CubeID
E
•
Double-click on the .project file to open automatically STM32CubeIDE to import and set up the secure
boot example
•
Open the folder .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSFU_Appli\STM32CubeI
DE
•
Double-click on the .project file to import automatically and set up the demonstration application in
STM32CubeIDE
•
Open the folder .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSFU_Loader\STM32Cube
IDE
•
Double-click on the .project file to import automatically and set up the loader application in
STM32CubeIDE
•
In SBSFU_Boot project:
–
Disable the TFM_DEV_MODE compilation switch if the building is for the production version. The
RDP level is configured to 2.
–
Keep TFM_DEV_MODE enabled, if the building is for a development version. The RDP level is
configured to 1.
•
Select Menu->Project->Build All
•
Wait for the expected message: Build Finished. 0 errors, 0 warnings
5.1.2
Software programming
•
Execute regression.sh located in .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSFU_
Boot\STM32CubeIDE to initialize the device.
•
Execute SBSFU_UPDATE.sh located in .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSF
U_Boot\STM32CubeIDE to program the binaries into the user flash memory.
5.1.3
Static security protection programming
•
Execute hardening.sh located in .\Projects\B-U585I-IOT02A\Applications\SBSFU\SBSFU_B
oot\STM32CubeIDE to configure all security option bytes.
•
Connect Tera Term console on serial port STMicroelectronics STLink Virtual COM Port configured at
115200 bauds, one start bit, one stop bit, no parity.
•
Reset the platform.
•
Verify that the application is alive with the message:
======================================================================
=
=
=
======================================================================
UM3387 - Rev 1
(C) COPYRIGHT 2021 STMicroelectronics
User App #A
UM3387
Annex
®
.
=
=
=
page 16/22
Need help?
Do you have a question about the STM32U5 Series and is the answer not in the manual?
Questions and answers