The STSW-SPIN32F060X firmware package is a motor control example with a library for STSPIN32F0601/602 to implement a six-step driving algorithm for three phase permanent magnet (PMSM) and brushless DC (BLDC) motors.
In combination with the EVSPIN32F0601S1/602S1 boards, it allows the user to evaluate the STSPIN32F0601/602 Systems-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