ST Life.augmented


STM32 PMSM FOC SDK motor control firmware 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 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).
  • Current reading topologies supported:
  • 1 shunt resistor,
  • 3 shunt resistors,
  • 2 ICS (isolated current sensor)
  • Speed/position sensors (Encoder and Halls) as well as sensorless operation (State of observer, High frequency Injection HFI) are supported.
  • Speed control, torque control, power control.
  • Wide range of STM32 microcontrollers supported: STM32F030C6/C8/K6/R8, STM32F050C6/G6/K6, STM32F051C6/C8/K6/K8/R6/R8, STM32F100xx, STM32F103xx, STM32F2 Series, STM32F302xB/C, STM32F303xB/C, STM32F4 Series.
  • Full customization and real time communication through PC software ST MC Workbench.
  • 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
2.0 208 KB

User Manual

Description Version Size
UM1052: STM32F PMSM single/dual FOC SDK v4.0
6.0 5,918 KB
UM1053: Advanced developers guide for STM32F MCUs PMSM single/dual FOC library
6.0 530 KB
UM1080: Quick start guide for STM32F PMSM single/dual FOC SDK V4.0
4.0 2,459 KB

Release Notes

Description Version Size
RN0085: STM32 PMSM single/dual FOC SDK Release 4.0
3.0 272 KB

Presentations & Training Material


Description Version Size
STM32 Embedded Software
1.0.0 571 KB
1.4 3,767 KB
STM32 and STM8 embedded software solutions
2.0 2,415 KB

Publications and Collaterals


Description Version Size
STM32 32-bit MCU family - Leading supplier of ARM® Cortex®-M microcontrollers
BRSTM320215 1,025 KB

Get Software

Part Number VersionMarketing StatusOrder 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