![]() |
STM32Cube
Version 2.0
Create Projects for STM32H7 Series with STM32Cube HAL and STM32CubeMX
|
The following section explains the setup for the STM32H7 Series. The settings are valid for STM32H746G-Discovery. 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 STM32H743I_EVAL. Refer to Description of STM32H7xx HAL drivers - HAL system peripheral handling - Clock for details.
The stm32f7xx_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 STM32H746G-Discovery.
For other target hardware, modifications might be required to the section starting with:
Refer to Description of STM32H7xx HAL drivers - HAL configuration for details.
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. Refer to Description of STM32H7xx HAL drivers - HAL configuration for details.
#define | Description |
---|---|
HSE_VALUE | Frequency of the external oscillator (HSE) expressed in Hz. |
DATA_IN_ExtSRAM | Setup the external memory controller for STM327x EVAL on-board SRAM in system_stm32f7xx.c before variable initialization and the 'main' function. It configures the external SRAM as general purpose data memory (including heap and stack). |
DATA_IN_ExtSDRAM | Setup the external memory controller for STM327x EVAL on-board SDRAM in system_stm327f7xx.c before variable initialization and the 'main' function. It configures the external SDRAM as general purpose data memory (including heap and stack). |