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 KB
User Manuals
Description Version Size
UM1052 UM1052: STM32F PMSM single/dual FOC SDK v4.2 8.0 6 MB

Presentations & Training Material

Description Version Size
STM32 PMSM FOC SDK 4.2 Hands-on workshop with hardware tools 1.5 5 MB
STM32 motor control firmware library 1.0 1 MB

Tools and Software

Embedded Software
Evaluation Tools
Evaluation Tool Software
Solution Evaluation Tools

Get Software

Part Number Software Version Marketing Status Supplier Order from ST
STSW-STM32100 4.2.0 Active ST