![]() |
STM32Cube
Version 2.0
Create Projects for STM32F2 Series with STM32Cube HAL and STM32CubeMX
|
The following section explains the setup for the STM32F2 Series. The settings are valid for STM3220G-EVAL. However the configuration is similar for other target hardware.
The User Code Template STM32Cube HAL 'main' contains the following SystemClock_Config function which provides valid settings for STM3220G-EVAL.
The stm32f2xx_hal_conf.h file of the STM32Cube Framework - Classic is modified so that components that are selected in the MDK Manage Run-Time Environment window are automatically added. The settings are valid for STM3220G-EVAL.
For other target hardware, modifications might be required to the section starting with:
Some configuration settings for the STM32Cube software framework are provided as compiler define settings. These are typically entered in MDK in Project - Options - C/C++ under Preprocessor Symbols.
The following table lists the #define settings. STM32Cube provides several other configuration settings.
#define | Description |
---|---|
HSE_VALUE | Frequency of the external oscillator (HSE) expressed in Hz. |
DATA_IN_ExtSRAM | Setup the external memory controller for STM322xG_EVAL on-board SRAM in system_stm32f2xx.c before variable initialization and the 'main' function. It configures the external SRAM as general purpose data memory (including heap and stack). |