STM32 PMSM FOC Software Development Kit - MC library (UM1052)

ST’s STM32 offers the performance of the industry-standard Cortex®-M core at the service of vector (or field-oriented) control (FOC) algorithms, widely used in high-performance drives.

The STM32 PMSM FOC SDK(STSW-STM32100), which includes the PMSM FOC FW library and ST MC Workbench, allows the user to evaluate the STM32 performance in applications driving single or dual Field Oriented Control of 3-phase Permanent Magnet motors (PMSM, BLDC).

STM32 PMSM FOC SDK is part of ST's motor control ecosystem which offers a wide range of hardware and software solutions for motor control applications.

ST MC Workbench is a PC software which reduces the design effort and time in the STM32 PMSM FOC firmware library configuration. The user, through a graphical user interface (GUI), generates all parameter header files which configure the library according to the application needs and can in real time monitor and change some variables of the algorithm.

Key Features

  • Single/Dual simultaneous vector control (FOC).
  • Motor Profiler and one Touch Tuning for a fast startup of unknown motors.
  • Current reading topologies supported:
    • 1 shunt resistor;
    • 3 shunt resistors;
    • 2 ICS (isolated current sensor).
  • Speed/position sensors (Encoder and Hall) as well as sensorless operation (State observer, High frequency Injection HFI, On-the-Fly startup for fans) are supported.
  • Speed and torque control.
  • Wide range of STM32 microcontrollers supported, the full list is detailed in RN0085, available on
  • Full customization and real time communication through PC software ST MC Workbench:
    • New project creation starting from the board.
  • Motor control algorithms implemented for specific applications like Maximum Torque Per Ampere (MTPA), Flux Weakening and more.
  • Firmware ANSI C, MISRA compliant.




Technical Documentation

Product Specifications
Description Version Size
DB2187 DB2187: STM32 PMSM FOC Software Development Kit 4.0 203.69 KB
User Manuals
Description Version Size
UM1053 UM1053: Advanced developer's guide for STM32F MCUs PMSM single/dual FOC library 9.0 895.47 KB
UM1080 UM1080: Quick start guide for STM32F PMSM single/dual FOC SDK v4.3 7.0 2.49 MB
UM1052 UM1052: STM32F PMSM single/dual FOC SDK v4.3 9.0 7.22 MB
Release Notes
Description Version Size
RN0085 RN0085: STM32 PMSM single/dual FOC SDK Release 4.3 6.0 496.64 KB

Presentations & Training Material

Description Version Size
ST Motor Profiler Tips and Tricks 1.0 1.45 MB
STM32 PMSM FOC SDK FAQ 1.0 906.77 KB
STM32 PMSM FOC SDK Getting Started 1.6 5.16 MB
STM32 and STM8 embedded software solutions 7.0 3.12 MB


License Agreement
Description Version Size

Tools and Software

Embedded Software
MCU & MPU Embedded Software
Evaluation Tools
Solution Evaluation Tools
Support & Community