
Contents UM1945
2/28 DocID028309 Rev 2
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Getting started as basic user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1 System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2 Building and run the motor control for the STM32 Nucleo Packs . . . . . . . . 8
3.3 Hardware settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.4 Upload the firmware example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4.1 Drag and drop procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4.2 ST-LINK tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4 6-step and FOC control algorithm settings - advanced user . . . . . . . 17
4.1 6-step firmware based on X-CUBE-SPN7 . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.1 Firmware architecture overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.2 Firmware parameter settings to spin different BLDC motors . . . . . . . . . 20
4.1.3 Inside the 6-step firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.1.4 DAC settings for debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2 ST FOC SDK – Configuration guide for the STM32 Nucleo Packs . . . . . 21
5 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Appendix A Federal Communications Commission (FCC) and Industry Canada
(IC) Compliance Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.1 FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.1.1 Part 15.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.1.2 Part 15.105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.1.3 Part 15.21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.2 IC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.2.1 Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A.2.2 Déclaration de conformité. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27