April 2015 DocID026392 Rev 2 1/38
38
UM1771
User manual
EVAL6474H-DISC: fully integrated microstepping motor driver
based on the L6474 and STM32™
Introduction
The EVAL6474H-DISC is a low cost development tool based on the L6474 and STM32™.
It is an ideal starter kit for both beginners and experienced users, it is autonomous and can
be used with a software interface, or it can be used with custom firmware thanks to the
embedded microcontroller with the 128 kB Flash memory and 64 kB RAM.
Through the available GUI the user can easily set the full configuration of application
parameters.
There are “Plug and Play” tools suitable for high power solutions thanks to the wide
operating voltage range from 8 V to 45 V and the current capability up to 3 A
r.m.s.
Figure 1. EVAL6474H-DISC board photo
www.st.com
Contents UM1771
2/38 DocID026392 Rev 2
Contents
1 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Board specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.2 L6474 stepper motor controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Charge pump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 Device configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1 Advanced current control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 Overcurrent protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Speed profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5 Programming section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 STM32F105RB microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 Firmware loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2.1 DfuSe installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2.2 Generate a DFU file from an HEX file . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2.3 Board settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5.2.4 DFU loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.3 Using the EVAL6474H-DISC with the firmware for the GUI (FWGUI) . . . 25
5.3.1 Sanity check of the board with the firmware for the GUI (FWGUI) . . . . 25
5.3.2 Parameters exportation from the GUI to the FW library . . . . . . . . . . . . . 31
5.4 Using the EVAL6474H-DISC with the firmware library
(FW L6474) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.4.1 FW library package contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.4.2 FW L6474 library description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.4.3 Create a project using the FW library package . . . . . . . . . . . . . . . . . . . 34
6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37