Skip to main content
coco.meno
Associate
October 16, 2020
Solved

NUCLEO-F302R8 + X-NUCLEO-IHM07M1 + BR2804 motor doesn't start with ST program example

  • October 16, 2020
  • 5 replies
  • 1547 views

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 ?

This topic has been closed for replies.
Best answer by MKroe.1

Hello again,

now I have solve this problem bei use compiler optimation in STM32CubeIDE:

0693W000005ATSYQA4.jpgNow everithing works fine

5 replies

Laurent Ca...
Senior III
October 22, 2020

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...

coco.meno
coco.menoAuthor
Associate
October 22, 2020

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".

0693W00000594KSQAY.png 

Best regards,

Coco

MKroe.1
Visitor II
November 5, 2020

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:

MKroe.1
MKroe.1Answer
Visitor II
November 5, 2020

Hello again,

now I have solve this problem bei use compiler optimation in STM32CubeIDE:

0693W000005ATSYQA4.jpgNow everithing works fine

Cristiana SCARAMEL
Technical Moderator
November 9, 2020

Hello @MKroe.1​ welcome to ST Community.

Thank you for sharing your solution to the issue! ;)

"If you feel a post has answered your question, please click ""Accept as Solution"""
Cristiana SCARAMEL
Technical Moderator
November 9, 2020

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:

  • the procedure step-by-step to reproduce your issue,
  • What error messages are there?

Let us us know your feedback will be useful to address similar issue in the Community.

"If you feel a post has answered your question, please click ""Accept as Solution"""
Laurent Ca...
Senior III
June 21, 2021

The question has been set only to the "STM32 Motor Control" topic (the question is only about the STM32 MC SDK). 

Best regards