STM32CubeMX

Active

STM32Cube initialization code generator

Get Software Download databrief
Overview
Sample & Buy
Solutions
Documentation
Tools & Software
Quality & Reliability
eDesignSuite
Partner products
Sales Briefcase

Product overview

Description

STM32CubeMX is a graphical tool that allows a very easy configuration of STM32 microcontrollers and microprocessors, as well as the generation of the corresponding initialization C code for the Arm® Cortex®-M core or a partial Linux® Device Tree for Arm® Cortex®-A core, through a step-by-step process. The first step consists in selecting either an STMicrolectronics STM32 microcontroller, microprocessor or a development platform that matches the required set of peripherals, or an example running on a specific development platform.
For microprocessors, the second step allows to configure the GPIOs and the clock setup for the whole system, and to interactively assign peripherals either to the Arm® Cortex®-M or to the Cortex®-A world. Specific utilities, such as DDR configuration and tuning, make it easy to get started with STM32 microprocessors. For Cortex®-M core, the configuration includes additional steps that are exactly similar to those described for microcontrollers.
For microcontrollers and microprocessor Arm® Cortex®-M, the second step consists in configuring each required embedded software thanks to a pinout-conflict solver, a clock-tree setting helper, a power-consumption calculator, and an utility that configures the peripherals (such as GPIO or USART) and the middleware stacks (such as USB or TCP/IP).
The default software and middleware stacks can be extended thanks to enhanced STM32Cube Expansion Packages. STMicrolectronics or STMicrolectronics' partner packages can be downloaded directly from a dedicated package manager available within STM32CubeMX, while the other packages can be installed from a local drive.
Moreover, a unique utility in STM32CubeMX delivery, STM32PackCreator, helps developers to build their own enhanced STM32Cube Expansion Packages.
Eventually the user launches the generation that matches the selected configuration choices. This step provides the initialization C code for the Arm® Cortex®-M, ready to be used within several development environments, or a partial Linux® Device Tree for the Arm® Cortex®-A.
STM32CubeMX is delivered within STM32Cube.
  • All features

    • Intuitive STM32 microcontroller and microprocessor selection
    • Rich easy-to-use graphical user interface allowing the configuration of:
      • Pinout with automatic conflict resolution
      • Peripherals and middleware functional modes with dynamic validation of parameter constraints for Arm® Cortex®-M core
      • Clock tree with dynamic validation of the configuration
      • Power sequence with estimated consumption results
    • Generation of initialization C code project, compliant with IAR Embedded Workbench®, MDK-ARM and STM32CubeIDE (GCC compilers) for Arm® Cortex®-M core
    • Generation of a partial Linux® Device Tree for Arm® Cortex®-A core (STM32 microprocessors)
    • Development of enhanced STM32Cube Expansion Packages thanks to STM32PackCreator
    • Integration of STM32Cube Expansion packages into the project
    • Availability as standalone software running on Windows®, Linux® and macOS® (macOS® is a trademark of Apple Inc. registered in the U.S. and other countries.) operating systems and 64-bit Java Runtime environment

Get Software

You might also like...

Software tools overview
Discover our scalable solutions to boost the development of MPU-based systems
STM32MCU WIKI
discover STM32 software toolchain

All tools & software

    • Part number
      Status
      Description
      Type
      Supplier

      STM32CubeF0

      Active

      STM32Cube MCU Package for STM32F0 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF0

      Description:

      STM32Cube MCU Package for STM32F0 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing - and examples running on ST boards)

      STM32CubeF1

      Active

      STM32Cube MCU Package for STM32F1 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF1

      Description:

      STM32Cube MCU Package for STM32F1 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeF2

      Active

      STM32Cube MCU Package for STM32F2 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF2

      Description:

      STM32Cube MCU Package for STM32F2 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeF3

      Active

      STM32Cube MCU Package for STM32F3 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF3

      Description:

      STM32Cube MCU Package for STM32F3 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing, Graphic - and examples running on ST boards)

      STM32CubeF4

      Active

      STM32Cube MCU Package for STM32F4 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF4

      Description:

      STM32Cube MCU Package for STM32F4 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeF7

      Active

      STM32Cube MCU Package for STM32F7 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeF7

      Description:

      STM32Cube MCU Package for STM32F7 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeG0

      Active

      STM32Cube MCU Package for STM32G0 series (HAL, Low-Layer APIs and CMSIS, USB PD, File system, RTOS - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeG0

      Description:

      STM32Cube MCU Package for STM32G0 series (HAL, Low-Layer APIs and CMSIS, USB PD, File system, RTOS - and examples running on ST boards)

      STM32CubeG4

      Active

      STM32Cube MCU Package for STM32G4 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeG4

      Description:

      STM32Cube MCU Package for STM32G4 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeH7

      Active

      STM32Cube MCU Package for STM32H7 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeH7

      Description:

      STM32Cube MCU Package for STM32H7 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeL0

      Active

      STM32Cube MCU Package for STM32L0 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeL0

      Description:

      STM32Cube MCU Package for STM32L0 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing - and examples running on ST boards)

      STM32CubeL1

      Active

      STM32Cube MCU Package for STM32L1 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeL1

      Description:

      STM32Cube MCU Package for STM32L1 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, Touch Sensing, Graphic - and examples running on ST boards)

      STM32CubeL4

      Active

      STM32Cube MCU Package for STM32L4 series and STM32L4 Plus series (HAL, Low-Layer APIs and CMSIS, USB, TouchSensing, File system, RTOS, Graphic - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeL4

      Description:

      STM32Cube MCU Package for STM32L4 series and STM32L4 Plus series (HAL, Low-Layer APIs and CMSIS, USB, TouchSensing, File system, RTOS, Graphic - and examples running on ST boards)

      STM32CubeMP1

      Active

      STM32CubeMP1 Package for STM32MP1 series (HAL, Low-Layer APIs and CMSIS, OpenAMP for Inter processor communication, and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeMP1

      Description:

      STM32CubeMP1 Package for STM32MP1 series (HAL, Low-Layer APIs and CMSIS, OpenAMP for Inter processor communication, and examples running on ST boards)

      STM32CubeU5

      Active

      STM32Cube MCU Package for STM32U5 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, TF-M - coming with examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeU5

      Description:

      STM32Cube MCU Package for STM32U5 series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, TF-M - coming with examples running on ST boards)

      STM32CubeWB

      Active

      STM32Cube MCU Package for STM32WB series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, BLE, Thread and Zigbee stacks - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeWB

      Description:

      STM32Cube MCU Package for STM32WB series (HAL, Low-Layer APIs and CMSIS, USB, File system, RTOS, BLE, Thread and Zigbee stacks - and examples running on ST boards)

      STM32CubeWL

      Active

      STM32Cube MCU Package for STM32WL series (HAL, Low-Layer APIs and CMSIS, File system, RTOS, KMS, Secure Engine, Sub-GHz Phy, LoRaWAN and Sigfox stacks - and examples running on ST boards)

      STM32Cube MCU & MPU Packages ST
      STM32CubeWL

      Description:

      STM32Cube MCU Package for STM32WL series (HAL, Low-Layer APIs and CMSIS, File system, RTOS, KMS, Secure Engine, Sub-GHz Phy, LoRaWAN and Sigfox stacks - and examples running on ST boards)

      X-CUBE-AI

      Active

      AI expansion pack for STM32CubeMX

      STM32Cube Expansion Packages ST
      X-CUBE-AI

      Description:

      AI expansion pack for STM32CubeMX

      X-CUBE-ALGOBUILD

      Active

      AlgoBuilder firmware template generator expansion for STM32Cube

      STM32Cube Expansion Packages ST
      X-CUBE-ALGOBUILD

      Description:

      AlgoBuilder firmware template generator expansion for STM32Cube

      X-CUBE-AZRTOS-F4

      Active

      Azure RTOS software expansion for STM32Cube for STM32F4 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-F4

      Description:

      Azure RTOS software expansion for STM32Cube for STM32F4 series

      X-CUBE-AZRTOS-F7

      Active

      Azure RTOS software expansion for STM32Cube for STM32F7 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-F7

      Description:

      Azure RTOS software expansion for STM32Cube for STM32F7 series

      X-CUBE-AZRTOS-G4

      Active

      Azure RTOS software expansion for STM32Cube for STM32G4 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-G4

      Description:

      Azure RTOS software expansion for STM32Cube for STM32G4 series

      X-CUBE-AZRTOS-H7

      Active

      Azure RTOS software expansion for STM32Cube for STM32H7 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-H7

      Description:

      Azure RTOS software expansion for STM32Cube for STM32H7 series

      X-CUBE-AZRTOS-L4

      Active

      Azure RTOS software expansion for STM32Cube for STM32L4 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-L4

      Description:

      Azure RTOS software expansion for STM32Cube for STM32L4 series

      X-CUBE-AZRTOS-L5

      Active

      Azure RTOS software expansion for STM32Cube for STM32L5 series

      STM32Cube Expansion Packages ST
      X-CUBE-AZRTOS-L5

      Description:

      Azure RTOS software expansion for STM32Cube for STM32L5 series

      X-CUBE-BLE1

      Active

      Bluetooth Low Energy software expansion for STM32Cube

      STM32Cube Expansion Packages ST
      X-CUBE-BLE1

      Description:

      Bluetooth Low Energy software expansion for STM32Cube

      X-CUBE-MEMS1

      Active

      Sensor and motion algorithm software expansion for STM32Cube

      STM32Cube Expansion Packages ST
      X-CUBE-MEMS1

      Description:

      Sensor and motion algorithm software expansion for STM32Cube

      X-CUBE-NFC4

      Active

      Dynamic NFC/RFID tag IC software expansion for STM32Cube

      STM32Cube Expansion Packages ST
      X-CUBE-NFC4

      Description:

      Dynamic NFC/RFID tag IC software expansion for STM32Cube
    • Part number
      Status
      Description
      Type
      Supplier

      B-L462E-CELL1

      Active

      Cellular IoT Discovery kit powered by STM32L4 and ST4SIM

      STM32 Discovery Kits ST
      B-L462E-CELL1

      Description:

      Cellular IoT Discovery kit powered by STM32L4 and ST4SIM
    • Part number
      Status
      Description
      Type
      Supplier

      STM32CubeIDE

      Active

      Integrated Development Environment for STM32

      STM32 IDEs ST
      STM32CubeIDE

      Description:

      Integrated Development Environment for STM32

      TouchGFXDesigner

      Active

      TouchGFX is delivered as an X-Cube-TouchGFX package

      STM32 Configurators and Code Generators ST
      TouchGFXDesigner

      Description:

      TouchGFX is delivered as an X-Cube-TouchGFX package
    • Part number
      Status
      Description
      Type
      Supplier

      X-CUBE-TOF1

      Active

      Time-of-Flight sensors software expansion for STM32Cube

      STM32 ODE Sense SW ST
      X-CUBE-TOF1

      Description:

      Time-of-Flight sensors software expansion for STM32Cube