Field-oriented control of PMSM with 15 pole pairs. Max current = 20 A, max voltage = 48 V.
STM32F407 MCU, HAL library.
NXP Freemaster software is used (but not nessesarily) for useful control of motor and see plots and transients of currents, voltages, etc.