Overview
Tools & Software
Resources
Solutions
Quality & Reliability
Sales Briefcase
eDesignSuite
Get Started
Sample & Buy
Partner products
  • 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 the STMicroelectronics STM32 microcontroller or microprocessor that matches the required set of peripherals.
    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).
    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.

    Key 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™, Keil® and GCC compilers, for Arm® Cortex®-M core
    • Generation of a partial Linux® Device Tree for Arm® Cortex®-A core (STM32 microprocessors)
    • 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, or through Eclipse plug-in

Get Software

Featured Products

Development Tools

    • Part Number

      Integrated Development Environment for STM32

      STM32CubeMX Eclipse plug in for STM32 configuration and initialization C code generation

      TouchGFX graphical UI tool for STM32 MCUs compatible with CubeMX 5.4 and later

Embedded Software

    • Part Number

      STM32Cube MCU Package for STM32F1 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32F2 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo and Evaluation boards)

      STM32Cube MCU Package for STM32F3 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, File system, RTOS, Touch Sensing, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32F4 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32F7 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32G0 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB PD, File system, RTOS) - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32G4 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32H7 series (HAL low level drivers, USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32L0 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, File system, RTOS, Touch Sensing - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32 L1 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, File system, RTOS, Touch Sensing, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32L4 series and STM32L4 Plus series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TouchSensing, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      STM32CubeMP1 Package for STM32MP1 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), OpenAMP for Inter processor communication, coming with examples running on ST boards: Discovery kits and Evaluation boards)

      STM32Cube MCU Package for STM32WB series (HAL and LL low level drivers, USB, File system, RTOS - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

      AI expansion pack for STM32CubeMX

      Bluetooth Low Energy software expansion for STM32Cube

      Sensor and motion algorithm software expansion for STM32Cube

      Dynamic NFC/RFID tag IC software expansion for STM32Cube

      cURL is a computer software project providing a library for transferring data using various protocols.

      wolfBoot is open source, commercial grade, embedded security software.

      wolfCrypt is open source, commercial grade, FIPS-validated embedded security software.

      wolfMQTT is open source, commercial grade, embedded security software.

      wolfSSH is open source, commercial grade, embedded security software.

      wolfSSL is open source, commercial grade, embedded security software.

      wolfSSL is open source, commercial grade, embedded security software.

      wolfTPM is open source, commercial grade, embedded security software.

00 Files selected for download

Technical Documentation

    • Description Version Size Action
      DB2163
      STM32 configuration and initialization C code generation
      14.0
      561.56 KB
      PDF
      DB2163

      STM32 configuration and initialization C code generation

    • Description Version Size Action
      UM1718
      STM32CubeMX for STM32 configuration and initialization C code generation
      30.0
      30.37 MB
      PDF
      UM1718

      STM32CubeMX for STM32 configuration and initialization C code generation

    • Description Version Size Action
      RN0094
      STM32CubeMX release 5.4.0
      47.0
      915.24 KB
      PDF
      RN0094

      STM32CubeMX release 5.4.0

Publications and Collaterals

    • Description Version Size Action
      STM32Cube eases STM32 development 18.12
      1.13 MB
      PDF

      STM32Cube eases STM32 development

Legal

    • Description Version Size Action
      SLA0048
      Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT
      5.7
      87.58 KB
      PDF
      SLA0048

      Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT