X-CUBE-SPN5
Bipolar stepper motor driver software expansion for STM32Cube
Data brief
Description
The X-CUBE-SPN5 expansion package for
STM32Cube gives you full control of stepper
motor operation. With this software running on
the STM32 microcontroller of an NUCLEO-
F401RE, NUCLEO-F030R8, NUCLEO-F334R8
or NUCLEO-L053R8 board, you can build and
test your applications with ST's fully integrated
L6208 stepper motor driver on an X-NUCLEO-
IHM05A1 board.
Features
A driver layer for the complete management
of the L6208 (driver for bipolar stepper
motors) device integrated in the X-NUCLEO-
IHM05A1 expansion board
Sample application for single bipolar stepper
motor control
Easy portability across different MCU
families, thanks to STM32Cube
Free, user-friendly license terms
The STM32Cube platform allows flexible solution
design and integration in a persistent
environment. Build your own ideas from scratch
or begin experimenting immediately with the
bundled sample application to control a single
bipolar stepper motor.
Information regarding STM32Cube is available
on www.st.com at http://www.st.com/stm32cube.
March 2016
DocID028115 Rev 2
1/4
www.st.com
For further information contact your local STMicroelectronics sales
office
What is STM32Cube?
X-CUBE-SPN5
What is STM32Cube?
STMCube™ represents the STMicroelectronics initiative to make developers’ lives easier
by reducing development effort, time and cost. STM32Cube covers the STM32 portfolio.
STM32Cube version 1.x includes:
STM32CubeMX, a graphical software configuration tool that allows the generation of
C initialization code using graphical wizards.
A comprehensive embedded software platform specific to each series (such as the
STM32Cube for the STM32 series), which includes:
the STM32Cube HAL embedded abstraction-layer software, ensuring maximized
portability across the STM32 portfolio
a consistent set of middleware components such as RTOS, USB, TCP/IP and
graphics
all embedded software utilities with a full set of examples
How does this software complement STM32Cube?
This software is based on the STM32CubeHAL hardware abstraction layer for the STM32
microcontroller. The package extends STM32Cube by providing a board support package
(BSP) for the STM32 expansion board based on the L6208.
It allows complete management of the L6208 through a comprehensive set of APIs, and
gives you access to the following features:
Read and write of device parameters
Configuration of GPIOs and IRQs (for enabling, direction, current decay and micro-
stepping)
Control of position, speed, acceleration and deceleration
Command locking until the device completes movement
Handling of overcurrent and thermal alarms (flag interrupt handling)
The software package includes sample bipolar stepper motor applications to help you get
started.
2/4
DocID028115 Rev 2
X-CUBE-SPN5
Revision history
1
Revision history
Table 1: Document revision history
Date
17-Jul-2015
09-Mar-2016
Version
1
2
Changes
Initial release.
Text edits throughout document
Updated cover image
Added NUCLEO-F334R8 compatibility information
DocID028115 Rev 2
3/4
X-CUBE-SPN5
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST
products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the
design of Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2016 STMicroelectronics – All rights reserved
4/4
DocID028115 Rev 2