STM32Cube  Version 2.0
Create Projects for STM32H7 Series with STM32Cube HAL and STM32CubeMX
 All Files Functions Variables Macros Pages
Use STM32Cube HAL

To add and configure components of the STM32Cube HAL:

  • Select the Peripherals and choose the right mode.
  • Configure the settings of the selected peripheral modules to generate initialization code.

Pinout tab

Under Peripherals select and configure the peripheral modules that should be added:

cubemx_pinout_tab.png

Configuration tab

Click on the peripheral modules in the various categories (here: Connectivity -> SDMMC1) and make required changes to settings in order to generate initialization code.

cubemx_config_tab.png

Once you use Generate Code in STM32CubeMX, the relevant STM32Cube HAL components are added to the MDK project. Refer to Setup STM32Cube Framework - STM32CubeMX for more information about the overall process.