2020-10-16 04:27 AM
Hi everyone,
I'm trying to control a brushless motor with a NUCLEO-F302R8 + X-NUCLEO-IHM07M1. I've follow the video given by STM on youtube "https://www.youtube.com/watch?v=h3ZuM2Z0UGs". I've follow each steps and my motor won't start with my program. But the motor is starting with the motor profiler.
I think the problem is not in the code but in the ST Motor Control Workbench. I didn't change this settings but the problem is maybe here.
Does anyone have the same problem and can help me ?
Solved! Go to Solution.
2020-11-05 05:33 AM
Hello again,
now I have solve this problem bei use compiler optimation in STM32CubeIDE:
Now everithing works fine
2020-10-22 05:27 AM
Dear @Corentin Méneau o
Welcome to the STM32 Community
Could you give more details to the STM32 Community about your setup -the material you use- (HW and SW, CPU(s), tools and versions, board(s), motor(s) and so on)?
And more especially did you use MC tools (such as MC_suite, MC-Motor Profile, MC-SDK, MC-workbench, and so on)?
Best regards
Laurent Ca...
2020-10-22 10:47 AM
Thanks for your reply. I have the same config of the picture below, it's the P-NUCLEO-IHM001 kit. I'm using "Motor Profiler 5.4.4", "MotorControl Workbench 5.4.4", "STM32CubeMX", "STM32CubeIde 1.4.0".
Best regards,
Coco
2020-11-05 04:00 AM
Hello,
I have the same problems. I have download the newest versions of STM32CubeMX CubeIde and Motorworkbench.
In Motor control workbench "FOC duration" and "Software error" was shown after "Start Motor"
When I reduced the PWM frequency to 20000Hz the error "Over current" was shown. So the Bull-Running motor need 30kHz.
After reducing the execution rate of the controlling to 3 PWM cycles the errors above was solved but the motor not running correct, make errors an go to "Over current"
Than I set the compiler optimisation to "Optimize for speed".
The motor runs a little bit at 30kHz PWM and execution rate of 1 but it shaking and stop running with "Speed feedback" error.
So i think the STM32F302 have not enogh calculation power for the sortware which is generated by CubeMX.
I am angry because I have bough two of this board and now this board is not usefull for me :grimacing_face:
2020-11-05 05:33 AM
Hello again,
now I have solve this problem bei use compiler optimation in STM32CubeIDE:
Now everithing works fine
2020-11-09 04:17 AM
Hello @Corentin Méneau,
did you find the same error messages as @MKroe.1 ?
>> In Motor control workbench "FOC duration" and "Software error" was shown after "Start Motor"
If yes, try to solve the issue using the above-mentioned compiler optimization.
Otherwise, share a more detailed description of your issue:
Let us us know your feedback will be useful to address similar issue in the Community.
2020-11-09 04:19 AM
Hello @MKroe.1 welcome to ST Community.
Thank you for sharing your solution to the issue! ;)
2021-06-21 12:45 PM
The question has been set only to the "STM32 Motor Control" topic (the question is only about the STM32 MC SDK).
Best regards