UM1739
4
Getting started with STM32CubeF2
4.1
How to run a first example
This section explains how to run a first example within STM32CubeF2, using as illustration
the generation of a simple led toggle on STM322xG_EVAL board:
1.
Download the STM32CubeF2 FW package
2.
Unzip the package into a selected directory. Ensure that the package structure is not
modified (as shown in the
location close to the root volume (for example C:\Eval or G:\Tests) because some IDEs
encounter problems when the path length is too high.
•
Browse to \Projects\STM322xG_EVAL\Examples
•
Open \GPIO folder, then the \GPIO_EXTI folder
•
Open the project with the preferred toolchain (see the examples below)
•
Rebuild all files and load the image into the target memory
•
Run the example: the behavior of the program is described in the readmed.txt file
available with the example (for example the usage of User Button or the meaning of the
LEDs).
Figure
3). It is also recommended to copy the package at a
DocID026120 Rev 4
Getting started with STM32CubeF2
13/22
21
Need help?
Do you have a question about the STM32CubeF2 and is the answer not in the manual?
Questions and answers