Hello, I am interested in using stm32cubeide to develop a PWM sine wave 3 phase programmable. I have tried this a few times but the motor phase sent to the simplefoc mini is not correct. I would like some advice. The motor can rotate, but it is not stable, for example, it vibrates and some strokes are reversed.
My file https://drive.google.com/file/d/1NgjSSfnAqv0Egu61wjsdTW0ZOTgBF5TF/view?usp=sharing
I use mcu is STM32H750VBT6, IDE is stm32cubeide .motor is GB36-2 (GB36-2 Gimbal Type 3-6S UAV Drone Motor KV30_Gimbal Type_Motors_Multi-rotor UAV Power_T-MOTOR Official Store-Multi-rotor UAV,Fixed Wing,VTOL,FPV and Robot Power)
I have references as follows.