STM32Cube  Version 2.0
Create Projects for STM32F2 Series with STM32Cube HAL and STM32CubeMX
 All Files 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 modules to generate initialization code.

The STM32CubeMX configuration steps are listed below in bold.

Pinout tab

  • Under Peripherals select and configure the modules that should be added.

Configuration tab

  • Click on the modules in the various categories and change the Settings to generate initialization code.

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.