Three-phase motor driver software expansion for STM32Cube

The X-CUBE-SPN16 is an expansion software package for STM32Cube. The software runs on the STM32 Nucleo providing management of STSPIN830 to control three-phase brushless DC motors. The expansion is built on STM32Cube software technology to ease portability across different STM32 microcontrollers.

The software comes with a sample implementation driving a three-phase brushless DC motor, with BEMF sensing.

It is compatible with the NUCLEO-F030R8, NUCLEO-F302R8, NUCLEO-F303RE or NUCLEO-F401RE development boards when connected to an X-NUCLEO-IHM16M1 expansion board.

The package contains a user interface layer enabling real-time transmission of data to a PC through the terminal.

Key Features

  • Sample application to drive a three-phase brushless motor, managing a single driver (STSPIN830) and an STM32 Nucleo expansion board (X-NUCLEO-IHM16M1).
  • GPIO, PWM and IRQ configuration
  • API function available to send any application command to the motor driver
  • User interface utility based on PC terminal to control the motor
  • Speed control through potentiometer
  • Motor control by user button
  • Easy portability across different MCU families, thanks to STM32Cube
  • Free, user-friendly license terms




Technical Documentation

Product Specifications
Description Version Size
DB3618 DB3618: Three-phase motor driver software expansion for STM32Cube 1.0 765 KB
User Manuals
Description Version Size
UM2312 UM2312: Development checklist for STM32Cube Expansion Packages 1.0 283 KB
UM2285 UM2285: Development guidelines for STM32Cube Expansion Packages 1.0 485 KB
UM2419 UM2419: Getting started with the X-CUBE-SPN16 three-phase brushless DC motor driver software expansion for STM32Cube 1.0 860 KB

Presentations & Training Material

Description Version Size
STM32 and STM8 embedded software solutions 6.0 2 MB

Publications and Collaterals

Description Version Size
STM32 Open Development Environment Brochure 17.09 1 MB
Sensor & motion algorithm software pack for STM32Cube 1.0 544 KB


License Agreement
Description Version Size
SLA0055 SLA0055: SOFTWARE LICENSE AGREEMENT ("Agreement") 4.18 122 KB

Tools and Software

STM32 Open Development Environment
Embedded Software
MCUs Embedded Software

Get Software

Part Number General Description Software Version Supplier Marketing Status Download
X-CUBE-SPN16 Three-phase motor driver software expansion for STM32Cube 1.0.0 ST Active


Support & Community