cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to start motor with MC sdk generated code

madhavP
Associate II

hi,

I have been trying to run PMSM motors with B-G431B-ESC1, I follow the steps given in the user manual,

1. I profile the motor and save the parameters

2. use the motor control workbench to generate a project, and generate source code,

3. run it in Cube IDE to flash it on the development board.

However, I am unable to run my motor with that source code. The motor doesn't even start. I also face inconsistency when running the motor with the same source code on different occasions. What could be the issue, and what should I do to resolve this issue?

since the profiler is working, where can I get a profiler code based on which the profiling .hex file is created to debug the issue?

Thank you,

Madhav

1 REPLY 1
GMA
ST Employee

Hello,

What is your use case: Sensor less or not? What is the reported error is any? Refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "Firmware errors" link.
What do you mean by "I also face inconsistency when running the motor with the same source code on different occasions"? Is the motor able to spin?

Once profiling was done, did you generate a non-profiler project with the profiling result?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA