The STSW-PTOOL2V1 firmware provides low voltage three-phase brushless DC motor control with the STEVAL-PTOOL2V1 reference design board based on the advanced STSPIN32F0252 BLDC controller with STM32 MCU.
The package includes a sample implementation to drive a BLDC motor with Hall sensors position feedback. It is preconfigured for a trapezoidal driving technique and speed loop with constant PWM duty cycle, known as voltage mode. External potentiometer support allows run-time variation of the target speed.
This software is based on the STM32CubeHAL hardware abstraction layer for the STM32 microcontroller. Motor parameters and speed loop controller parameters are easily accessed and edited in the user configuration file.
The package can be easily downloaded onto the STSPIN32F0252 controller via SWD connection.