The STSW-SPIN32F0251 firmware package is a motor control example with a library for STSPIN32F0251S1 to implement a six-step driving algorithm for three phase permanent magnet (PMSM) and brushless DC (BLDC) motors.
In combination with the EVSPIN32F0251S1 board, it allows the user to evaluate the STSPIN32F0251 System-in-Package in six-step applications.
Six-step driving (trapezoidal)
Speed loop in voltage mode and current mode control
Supports sensorless driving with Back EMF sensing on both ON and OFF phases