UM0522
Motor control operations
21/39
8.4 Board
setup
8.5 Firmware
description
To address the driving of 3-phase brushless motor with permanent magnet rotor exploiting
the sensorless trapezoidal control it is required to use the firmware named "BLDC_3PH_SL"
(released for free). Together with the installation of "STEVAL-IHM017V1 - GUI" the
BLDC_3PH_SL firmware source code is installed on the PC inside the installation folder
under the "BLDC_3PH_SL" folder.
The following files are present inside the working folder:
●
".stw" file - STVD7 workspace file
●
".stp" file - STVD7 project file
●
"source" folder - containing all .c and .h files required
Note:
We suggest making a backup copy of the original working folder. The following procedure
modifes the original content of the workspace folder without leaving the possibility to return
to a previous step.
8.6 Configuring
the
firmware using GUI
Before "using" the firmware, it must be configured. The term "configure" indicates the act of
selecting a specific driving strategy, such as open or closed loop, voltage or current mode
and so on. The setting of customized parameters such as current limitation, motor settings,
driving related parameters and so on is also indicated.
Configuring the firmware is performed by compiling a set of .h files inside the source folder
and writing a series of values as fields of #define statements. To do this configuration, solid
knowledge of the hardware and the architecture of the firmware is required. Otherwise, the
configuration tool provided inside the CD-ROM called "STEVAL-IHM017V1 - GUI" can be
used. This allows the user to choose and set all required parameters visually and the
software automatically generates the ".h" files required (refer to the ".h" files that constitute
the configurations related to the firmware in
).
For a detailed description of the configuration files and how to manually customize the
related parameters see AN1905.
Table 4.
Configuration “.h” files
Firmware name
Configuration files
BLDC_3PH_SL
MTC_Settings_Sensorless.h
spec_settings.h
version.h
www.BDTIC.com/ST