UM2300
User manual
Getting started with X-CUBE-SPN14 stepper motor driver
software expansion for STM32Cube
Introduction
The X-CUBE-SPN14 expansion package for STM32Cube gives you full control of stepper motor
operations.
When combined with one or more X-NUCLEO-IHM14A1 expansion boards, this software allows a
compatible STM32 Nucleo board to control one or more stepper motors.
It is built on top of STM32Cube software technology for easy portability across different STM32
microcontrollers.
The software comes with a sample implementation for one stepper motor. It is compatible with STM32
NUCLEO-F401RE, NUCLEO-F334R8, NUCLEO-F030R8 or NUCLEO-L053R8 boards with an
X-NUCLEO-IHM14A1 expansion board mounted on top.
October 2017
DocID031122 Rev 1
1/19
www.st.com
Contents
UM2300
Contents
1
2
3
Acronyms and abbreviations ......................................................... 5
What is STM32Cube? ...................................................................... 6
2.1
3.1
3.2
3.3
STM32Cube architecture .................................................................. 6
Overview ........................................................................................... 8
Architecture ....................................................................................... 9
Folder structure ............................................................................... 10
3.3.1
3.3.2
BSP folder ........................................................................................ 11
Projects folder ................................................................................... 12
X-CUBE-SPN14 software expansion for STM32Cube ................... 8
3.4
3.5
3.6
Software required resources ........................................................... 12
APIs ................................................................................................ 13
Sample application description........................................................ 13
Hardware description ...................................................................... 14
4.1.1
4.1.2
4.1.3
STM32 Nucleo platform .................................................................... 14
X-NUCLEO-IHM14A1 stepper motor driver expansion board .......... 15
Miscellaneous hardware components .............................................. 15
4
System setup guide....................................................................... 14
4.1
4.2
4.3
Software description ........................................................................ 15
Hardware and software setup ......................................................... 16
4.3.1
Setup to drive a single motor ............................................................ 16
5
Revision history ............................................................................ 18
2/19
DocID031122 Rev 1
UM2300
List of tables
List of tables
Table 1: List of acronyms ............................................................................................................................ 5
Table 2: Required resources for the X-CUBE-SPN14 software ............................................................... 12
Table 3: Document revision history .......................................................................................................... 18
DocID031122 Rev 1
3/19
List of figures
UM2300
List of figures
Figure 1: Firmware architecture .................................................................................................................. 6
Figure 2: X-CUBE-SPN14 software architecture ...................................................................................... 10
Figure 3: Folder structure ......................................................................................................................... 10
Figure 4: STM32 Nucleo board ................................................................................................................. 14
Figure 5: X-NUCLEO-IHM14A1 stepper motor driver expansion board ................................................... 15
Figure 6: Board connections ..................................................................................................................... 16
4/19
DocID031122 Rev 1
UM2300
Acronyms and
abbreviations
1
Acronyms and abbreviations
Table 1: List of acronyms
Acronym
API
BSP
CMSIS
HAL
IDE
LED
Description
Application programming interface
Board support package
Cortex
®
microcontroller software interface standard
Hardware abstraction layer
Integrated development environment
Light emitting diode
DocID031122 Rev 1
5/19