ST Life.augmented


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

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.

pdf Download
Data Brief

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.

Design Resources


Technical Documentation

Product Specifications

Description Version Size
DB2187: STM32 PMSM FOC Software Development Kit
4.0 204 KB

User Manual

Description Version Size
UM1052: STM32F PMSM single/dual FOC SDK v4.2
8.0 6,407 KB
UM1053: Advanced developers guide for STM32F MCUs PMSM single/dual FOC library
8.0 635 KB
UM1080: Quick start guide for STM32F PMSM single/dual FOC SDK v4.2
6.0 2,671 KB

Release Notes

Description Version Size
RN0085: STM32 PMSM single/dual FOC SDK Release 4.2
5.0 311 KB

Presentations & Training Material


Description Version Size
STM32 Embedded Software overview
2.1.0 736 KB
STM32 PMSM FOC SDK 4.2 Hands-on workshop with hardware tools
1.5 5,796 KB
STM32 and STM8 embedded software solutions
2.0 2,415 KB

Get Software

Part Number VersionMarketing StatusSupplierOrder From ST

(*) Suggested Resale Price per unit (USD) for BUDGETARY USE ONLY. For quotes, prices in local currency, please contact your local ST Sales Office or our Distributors
(**) The Material Declaration forms available on may be generic documents based on the most commonly used package within a package family. For this reason, they may not be 100% accurate for a specific device. Please contact our sales support for information on specific devices.
Feedback Form
Customer Feedback