STM32 Ecosystem for Motor Control

Software Tools
Embedded Software
Hardware Tools
Products & Features

From HW boards, SW tools and embedded SW to training resources and documentations, the STM32 ecosystem offers many materials to ease the development of motor control applications.

  • Large STM32/STM8 (32bit/8bit) MCU portfolio, industrial grade, supporting Motor Control requirements
  • Tailored digital and analog peripherals
  • Large set of embedded features (present in the MC-SDK) to cope with different application needs

STM32 MCUs are particularly suitable to develop Permanent Magnet Synchronous Motors (PMSM), Brushless DC motors (BLDC), AC induction motors (ACIM), and Stepper motors., Brushless DC motors (BLDC) and Stepper motors.

STM32 MCU flagships for Motor Control applications

Development Flow

Software Tools

STM32 tools and software provide an integrated development environment to ease and support the design of motor control solutions.


ST-MC-Suite is an online solution finder which offers easy access to all STM32 and STM8 MCU resources available for motor control applications, such as application notes, brochures, presentations, and magazine articles. A software wizard is included to help developers select relevant materials, add them to their bundle and download them in one click.


ST Motor Profiler is a software tool that automatically measures the electrical parameters of PMSM and BLDC motors. It can be used to run an unknown motor from scratch in only few minutes. ST Motor Profiler is included in the X-Cube-MCSDK software development kit for STM32 device.


STM32Cube & MC Workbench

STM32Cube is a free set of tools and embedded software bricks for STM32 microcontrollers and microprocessors addressing all the needs of a complete project development cycle. It includes the STM32CubeMX configuration tool which enables the generation of C initialization code for Cortex-M cores. Motor Control Workbench (available in the X-CUBE-MCSDK) is linked with STM32CubeMX. Developers can open STM32CubeMX through Motor Control Workbench during their Motor Control development to change STM32 configuration.

Embedded Software


The X-CUBE-MCSDK STM32 motor control software development kit for 6-step BLDC motors / PMSM (FOC) solutions includes a Motor Control firmware library and its Graphical User Interface, the Motor Control Workbench, which can be used to configure the library.


This motor control firmware library for BLDC and AC Induction Motors, based on the mainstream STM8S and automotive STM8A microcontrollers, allows users to evaluate STM8 performance in controlling trapezoidal 6-step BLDC motors and in driving V/F control AC Induction Motors.

00 Files selected for download
  Description Version Size Action
A three phase induction motor drive using a V/F control
Sensorless BLDC motor control and BEMF sampling methods with ST7MC.
Driving bipolar stepper motors using a medium-density STM32F103xx microcontroller

A three phase induction motor drive using a V/F control


Sensorless BLDC motor control and BEMF sampling methods with ST7MC


Driving bipolar stepper motors using a medium-density STM32F103xx microcontroller


Hardware Tools

Hardware tools to evaluate STM32 MCUs in different Motor Control environments (in terms of power range) are available. ST-MC-SUITE wizard is a useful means to select the most appropriate solution for your application.

STM32 Motor Control hardware tools


Focus on Motor Control packs and Discovery kits


  • This platform provides a motor-control solution for three-phase, low- voltage and low-current DC brushless or PMSM motors. It is based on the STSPIN830 driver and on the STM32G431RB MCU
  • The P-NUCLEO-IHM03 STM32 motor-control pack is a kit composed of the X-NUCLEO-IHM16M1 board, the NUCLEO- G431RB board, a brushless Gimbal motor (GBM2804H-100T), and the DC power supply


  • Discovery kit is based on the STM32G431CB microcontroller, L6387 driver and STL180N6F7 power MOSFETs. It is composed of a main power board, and a daughterboard with embedded ST-LINK/V2-1
  • It is an electronic speed controller (ESC), designed to drive a single 3-phase brushless motor (BLDC/PMSM), performing both sensorless FOC algorithm and 6-step control with a speed regulation, and an active braking function algorithm


  • This pack provides a perfect motor control solution for three-phase, low-voltage and low-current DC brushless motor. It is based on the L6230 driver (belonging to STSPIN family) and on the STM32F302R8 MCU
  • The P-NUCLEO-IHM001 is a kit composed of: the X-NUCLEO- IHM07M1 board, the NUCLEO-F302R8 board and a brushless DC motor (+ power supply in P-NUCLEO-IHM002).


Products & Key Features for Motor Control

The STM32 portfolio includes devices based on Arm® Cortex®-M cores (M0, M0+, M3, M33, M4, and M7). Thanks to the MCUs' shared ecosystem, developers benefit from enhanced flexibility to move forward with their motor control design. STM8 MCUs, our 8-bit family of microcontrollers, complement our offer and enable the design of very cost-sensitive motor control solutions.

Each STM32 series offers a different set of peripherals matching different Motor Control application requirements.

STM32 F3 series and G4 series

The STM32G4 series combines a 32-bit Arm® Cortex®-M4 core (with FPU and DSP instructions) running at 170 MHz combined with three different hardware accelerators, rich analog peripherals and advanced motor control timers to meet all motor control application requirements. These product series are ideal for Motor Control applications.


The STSPIN32F0 is a System-In-Package providing an integrated solution suitable for driving three-phase BLDC motors using different driving modes. This product series combines an STM32F031 microcontroller with triple half-bridge gate driver able to drive power MOSFETs or IGBTs with a current capability of 600 mA (sink and source) as well as other analog components.


    Test configuration 1:
  • HW boards based on STM32 Nucleo (as control board) + X-NUCLEO-IHM16M1 (as LV-LP power board)
  • Running ‘legacy’ STO/PLL sensorless solution
  • PWM frequency = 20kHz - FOC = 10KHz
  • Speed regulation (MediumFrequencyTask): 1KHz
  • Compiler STM CubeIDE (option -Ofast)
    Test configuration 2:
  • HW boards based on B-G473E-ZeSTS1 (as control board) + STEVAL-LVLP01 (as LV-LP power board)
  • Running HSO sensorless solution
  • PWM frequency = 10kHz
  • Speed regulation (MediumFrequencyTask): 1KHz
  • Compiler IAR (option - HighSpeed)
  Default configuration generated from MCSDK Workbench
  In post MCSDK Workbench generation, to improve executions time, by using CubeMx change default options in System Core categories or by using CCMRAM in F3 & G4 cases


The Motor Control Library included in X-CUBE-MCSDK (today available for PMSM/BLDC motors) enables the features listed below.

Full Integration/configuration in MC Workbench tools:


Getting started with STM32 Motor control SDK6.0

The new MC-SDK v6.0.0 offers a completely renewed GUI (Motor Control Workbench V2), fully supporting FOC and 6-Step control, to enhance developers autonomy and support more features and products in the future.

Getting Started with the NEW Motor Control Nucleo Pack

Getting Started with the P-NUCLEO-IHM001

Getting starting with P-NUCLEO-IHM03

The P-NUCLEO-IHM03 STM32 motor-control pack is a kit composed of the X-NUCLEO-IHM16M1 board, the NUCLEO-G431RB board, a brushless Gimbal motor (GBM2804H-100T), and the DC power supply.

STM32G4 series - Product overview

The STM32G4 Series combines a 32-bit Arm® Cortex®-M4 core (with FPU and DSP instructions) ru nning at 170 MHz combined with 3 different hardware accelerators: ART Accelerator™, CCM-SRAM routine booster and mathematical accelerators.

Motor Control MOOC

STM32 online training courses in MOOC format to help you design with ST products, software and tools.

Get involved in the STM32 Community

Ask questions, share projects and collaborate with your fellow community members.

Fundamentals of Motor Control

STM32 Motor Control Whitepaper
Getting the most out of your motor drive