Stepper motor driver evaluation board based on the l6472 (13 pages)
Summary of Contents for ST X-CUBE-SPN12
Page 1
UM2110 User manual Getting started with the X-CUBE-SPN12 low voltage dual brush DC motor driver software expansion for STM32Cube Introduction X-CUBE-SPN12 expansion software package for STM32Cube runs on the STM32 Nucleo providing management of STSPIN240 to control dual brush DC motor driver.
UM2110 Acronyms and abbreviations Acronyms and abbreviations Table 1. List of acronyms Acronym Description Application programming interface Board support package ® CMSIS Cortex microcontroller software interface standard Hardware abstraction layer Serial port interface Integrated development environment Light emitting diode UM2110 - Rev 2 page 2/14...
UM2110 X-CUBE-SPN12 software expansion for STM32Cube X-CUBE-SPN12 software expansion for STM32Cube Overview X-CUBE-SPN12 software package expands STM32Cube functionality, and features: • STSPIN240 configuration (bridge input and enabling signals) • flag interrupt handling (overcurrent and thermal alarm reporting) • handling of up to two bidirectional dual brush DC motors •...
X-CUBE-SPN12 software provides the drivers to manage the STSPIN240 motor driver. Folder structure Figure 2. X-CUBE-SPN12 package folder structure The software is packaged in the following main folders: • Drivers: – STM32Cube HAL driver files which directly derive from the STM32Cube framework.
This structure defines a list of function pointers filled during its instantiation in the corresponding motor driver component. For X-CUBE-SPN12, the structure instance is called stspin240_250Drv (see file BSP\Components\stspin240_250\stspin240_250.c) As the motor control BSP is common for all motor driver expansion boards, some functions are not available for all expansion boards.
UM2110 APIs Table 2. Required resources for the X-CUBE-SPN12 software Resources for F4xx/F3xx Resources for L0xx Resources for F0xx Features ext. line 10 flag interrupt and enable pin GPIO PA10 GPIO PB5 GPIO PB5 PWM for B PWMB brige TIM3 CH2...
STM32 microcontroller line. The Arduino connectivity support and ST morpho connectors make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide range of specialized expansion boards to choose from.
Windows™ (v. 7 and above) – laptop or PC Software requirements The following software components are needed for a suitable development environment for applications based on the motor driver expansion board: • ST-LINK/V2-1 USB driver • ST-LINK/V2-1 firmware upgrade • X-CUBE-SPN12...
UM2110 Hardware and software setup Hardware and software setup This section describes the hardware and software setup procedure for executing the provided examples and to develop new applications based on the motor driver expansion board. 3.4.1 Common setup for all configurations STM32 Nucleo development board has to be configured with the following jumper position: •...
Page 14
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’...
Need help?
Do you have a question about the X-CUBE-SPN12 and is the answer not in the manual?
Questions and answers