2018-11-05 02:25 AM
I am really stuck while using STSPIn32F0 and I am really hoping someone here can help me move forward.
I made a board that has the same schematic as the steval spin3201, with some minor changes:
When I start the motor using STMotor Control Workbench, the motor spins about ~45 degrees and stops. At that point: Either I see a speed feedback error on the computer or the MCU stops receiving commands from the Computer - I have to reset the MCU using the reset push button then.
I scoped all three high side gate terminals of the Mosfets and I saw this:
There is an initial push and then nothing.
Can someone please tell me what could be going wrong?
I have a 12V-250W-550RPM motor.
On a side note. I have the STESC001 eval, that I used to profile the motor and use that in making this code, the motor ran fine in the profiler using the 'play' option.
If needed, I can upload the schematics here.
Firmware: I am running the absolute stock firmware generated by the Motor Controller Workbench. I simply connect to the board using UART and try to start the motor / use the push button on the board. Both give the same result.
Edit: The motor stops moving after executing the Align function, it seems like the FOC bit fails to execute, do I need to add anything in the Main() function for it to go through ?
2021-06-22 02:09 AM
The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK).
Best regards