Why won't my PMSM motor rotate with FOC on STM32F031K6T6?
Hi everybody.
I am working on a project using STM32F031K6T6 to control a PMSM motor using FOC sensorless. I tested the code generated from MCSDK running on STM32F407 and it works normally. but on STM32F031K6T6 the motor does not rotate. Anyone who has worked on this topic please help me. Thank you very much.
Solution:Jump to solution
Since it works on the STM32F407, it's likely a hardware or configuration issue.
Try this out
Clock speed: Ensure the clock speed is set correctly for the STM32F031K6T6....
1 Reply
Solution
Since it works on the STM32F407, it's likely a hardware or configuration issue.
Try this out
Clock speed: Ensure the clock speed is set correctly for the STM32F031K6T6.
Pin mappings: Double-check that the pin mappings match the new hardware.
Peripheral configurations: Verify that the peripheral configurations (e.g., UART, PWM) are correct.
Power supply: Ensure the motor and MCU have sufficient power supply.
Debugging: Use a debugger or print statements to identify where the code gets stuck.