2023-03-11 09:44 AM
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.
Solved! Go to Solution.
2023-03-17 02:30 AM
Hello @adromo95 and welcome to the ST Community.
At the power-up the STSPIN32F0 is in standby mode and the 12 V regulator is disabled.
To enable the device and enable the regulator, you have to set the GPIOs PF6 and PF7 of the device, this selects the overcurrent threshold and meanwhile enables the device (refer to Table 12).
I hope this post helps you, if yes consider to click on "Select as Best" label.
2023-03-11 12:29 PM
UPDATE: when measuring VREG12, the supply voltage for the OPAMPS, does not provide 12 V. I have checked the connections and everything seems to be fine. The rest of the supply voltages (i.e., 3V3 and so on) are working fine. Any clue?
2023-03-17 02:30 AM
Hello @adromo95 and welcome to the ST Community.
At the power-up the STSPIN32F0 is in standby mode and the 12 V regulator is disabled.
To enable the device and enable the regulator, you have to set the GPIOs PF6 and PF7 of the device, this selects the overcurrent threshold and meanwhile enables the device (refer to Table 12).
I hope this post helps you, if yes consider to click on "Select as Best" label.
2023-03-17 11:11 AM
Thank you for the response! I will try it out, hope it works