TIMER1 outputs in STEVAL-SPIN3201 not working
Hi all,
I am working with the STEVAL-SPIN3201 development board for controlling a BLDC motor. This board is based in the STSPIN32F0 controller which integrates the STM32F031C6 MCU. I attach the system-in-package block diagram taken from the datasheet.
I am currently in the PWM generation stage (TIM1 for the U, V, W phases), but I cannot make it work. However, when I try to use other GPIO pins in the board (e.g., TIM1_CH1N in PA7 that comes directly from the F031C6 MCU) it works (as PWM, normal I/O, etc.). I don't know if the control logic in the block diagram needs a specific type of treatment but I have no clue how to deal with it, as there is no additional information and following the F0x1 reference manual doesn't seem to help. Does anybody have any clue? It would be very helpful. Thank you in advance.
P.S. I've tried to use the motor control workbench but the only available code is based on PMSM motors and it's rather confusing.
