STM32Cube  Version 2.0
Create Projects for STM32F3 Series with STM32Cube HAL and STM32CubeMX
 All Files Pages
Configuration via STM32CubeMX

This section explains explains how to setup the STM32 microcontroller using STM32CubeMX, a graphical tool that configures initialization code for peripherals and system clock setup.

To install STM32CubeMX on your computer:

  1. Download STM32CubeMX from www.st.com/stm32cube.
  2. Install STM32CubeMX and start the utility.
  3. Use Help - Install New Libraries to add a Firmware Package for the relevant STM32 device series.

To use STM32CubeMX together with MDK:

With STM32CubeMX you may:

To use code generated with STM32CubeMX in combination with CMSIS-RTOS RTX or CMSIS-Driver:

  • Adapt Generated Files to CMSIS-RTOS RTX or CMSIS-Driver with modifications to interrupt and initialization code.

In MDK, use the Manage Run-Time Environment window to add CMSIS or middleware components.

Example Projects

Several example projects available from the Pack Installer are created using STM32CubeMX for configuration.

Example Description
CMSIS-RTOS Blinky with STM32CubeMX Blinky project that is configured with STM32CubeMX and CMSIS-RTOS RTX
emWin VNC Server with STM32CubeMX Graphic display application that uses VNC Server for remote control