Software tools for programming STM32 microcontrollers
STM32CubeProgrammer V2.2.0 (STM32CubeProg) is an all-in-one multi-OS software tool for programming
STM32 microcontrollers. It provides an easy-to-use and efficient environment for reading, writing and verifying
device memory through both the debug interface (JTAG and SWD) and the bootloader interface (UART and
USB).
STM32CubeProg offers a wide range of features to program STM32 microcontroller internal memories (such as
Flash, RAM, and OTP) as well as external memories. STM32CubeProgrammer also allows option programming
and upload, programming content verification, and microcontroller programming automation through scripting.
STM32CubeProg is delivered in GUI (graphical user interface) and CLI (command-line interface) versions.
For more details about STM32CubeProg TOOL, refer to [UM2237].
Terminal emulator
A terminal emulator software is needed to run the non-secure application. It allows to display some debug
information to understand operations done by the embedded applications and it allows to interact with the non-
secure application in order to trig some operations.
The example in this document is based on Tera Term, an open source free software terminal emulator that can be
downloaded from the https://osdn.net/projects/ttssh2/ webpage. Any other similar tool can be used instead
(Ymodem protocol support is required).
3.3
Secure installation
STM32L5 product preparation is done in 4 steps, to get a complete installation with security fully activated, the 4
steps shall be done as security protections are only configured at the very last step:
•
Step 1: STM32L5 chip initialization
•
Step 2: SW compilation
•
Step 3: SW programing into ST32L5 chip internal Flash memory
•
Step 4: Configuring STM32L5 static security protections
3.3.1
STM32L5 chip initialization
The STM32L5 microcontroller initialization consists in disabling the security protections in the option bytes and
erasing the Flash memory. This can be achieved by using the STM32CubeProg tool.
To ease this chip initialization procedure, an automatic script is available in the STM32Cube_FW_L5_V1.1.0 SW
package: \Projects\STM32L562E-DK\Applications\TFM\TFM_SBSFU\ STM32CubeIDE\regression.bat.
STM32L5 Option bytes setting can also be verified and initialized by means of the STM32CubeProgrammer
TOOL through the following 4 steps:
UM2745 - Rev 1
UM2745
Secure installation
page 7/36
Need help?
Do you have a question about the STM32CubeL5 and is the answer not in the manual?
Questions and answers