STM32CubeMX

STM32CubeMX

The ultimate tool to configure and initialize STM32 code

STM32CubeMX enables developers to fully leverage device capabilities and optimize system costs by tailoring resources to application requirements and automating key development tasks.

STM32 series supported

STM32CubeMX
High performance
F2
F4
H5
F7
H7/RS
H7
N6
Mainstream
G0
C0
F0
F1
F3
G4
Ultra-low power
L0
U0
L1
L4
L4+
L5
U3
U5
Wireless
WB
WB0
WBA
WL
Supported MPUs
MP1
MP2
STM32CubeMX2
Mainstream
C5 All new microcontrollers series starting from STM32C5 will work exclusively with STM32CubeMX2.

Main features

STM32CubeMX is a user-friendly configuration and code generation tool for STM32 microcontrollers and microprocessors. It allows developers to generate optimized project outputs in a fast and effective way. 

STM32CubeMX is available in two offerings: STM32CubeMX and STM32CubeMX2, each supporting specific STM32 series.

  • Pinout
  • Clock
  • Peripherals
  • Software components
  • File generation

Pinout configuration

Define your pinout configuration for your overall system.

Pinout configuration

Clock configuration

Visualize the clock tree configuration and use the automatic solver to adapt the clock based on your needs.

Clock configuration

Peripheral configuration

Configure every peripheral for your project initialization while effectively managing hardware resource sharing.

Peripheral configuration

Add software packages​

Manage additional software packages and their dependencies. Add them to your project, and configure them just like any other native peripheral or middleware.

Add software packages​

Configure and generate the project

Finetune your project configuration and select your target IDE toolchain. Finally, generate the C code and include all the selected libraries in your project.​

Configure and generate the project
  • Pinout
  • Clock
  • Peripherals
  • Software components
  • File generation

Pinout configuration

Define your pinout configuration for your overall system.

Pinout configuration

Clock configuration

Visualize the clock tree and its configuration and use the automatic solver to adapt the clock based on your needs.

Clock configuration

Peripheral configuration

Configure every peripheral for your project initialization while effectively managing hardware resource sharing.

Peripheral configuration

Add software packages​

Manage additional software packages and their dependencies. Add them to your project, and configure them just like any other native peripheral or middleware.

Add software packages​

Configure and generate the project

Finetune your project configuration and select your target IDE toolchain. Generate the C code and include all the selected libraries in your project.​

Configure and generate the project

Resources to start your project

Installer
Documentation
Video tutorials Tutorial

STM32CubeMX

STM32CubeMX2

Software name ECCN OS Version Action
STM32CubeMX NEC (EU)
5D992.c (US)