2025-05-20 2:50 AM - edited 2025-05-20 10:45 PM
Dear Support team,
I am currently working on a sensorless motor control application using the Observer + PLL algorithm to run a 24V PMSM motor (rated at 3600 RPM, no load) on a custom driver board based on the STM32F030R8. My PWM frequency is 8000kHz and I am using a single shunt resistor for current sensing.
The motor appears to operate correctly during the ramp-up phase. However, it stops immediately after transitioning to closed-loop FOC, triggering a startup failure error.
I am using STM32 Motor Control Workbench version 5.4.8 for configuration. I have attached the wb file and .stmcx file in .txt format containing the full GUI-based configurations for your reference.
I would appreciate your assistance in resolving this issue.
2025-05-20 3:15 AM
2025-05-20 8:48 AM
Hello @Abhishek_n17,
Refer to our FAQ Wiki page available here, Chapter 2.11 / 2.12 about Startup failure error.
2025-05-21 3:59 AM
Thanks for the reply. I have tried all possible combinations from the link you have mentioned, but my motor still is not able to transition from open loop to FOC and runs into the startup failure error. I have increased my PWM frequency to 20kHz and the ramp up phase has become smoother.
My motor shuts down at the same time irrespective of speed or torque control mode.
2025-05-22 2:26 AM - edited 2025-05-22 3:15 AM
Update:
I am somehow able to run the motor, but I am not able to change the torque or speed of the motor with the GUI and the motor does not transition to Closed loop every time (mostly undervoltage error now). How do I ensure that the motor runs every time and how do I control the speed or torque of the motor?
2025-05-23 6:13 AM
Hello @Abhishek_n17,
For Under Voltage, the root cause could be a current limiter on your DC supply.