Skip to main content
Senior
August 21, 2023
Solved

I can't complete ST Motor Profiler nor make my motor rotates from C generated code

  • August 21, 2023
  • 1 reply
  • 9468 views

Hello,

Level : beginner

Hardware : NUCLEO-F302R8 + X-NUCLEO-IHM08M1 + Qmot BLDC motor

Software : Motor Control Benchwork 5.4.6, STM32CubeMX 5.6.0 and STM32CubeIDE 1.12.1

I'm trying to follow this tutoriel : STM32StepByStep:Getting started with Motor Control - stm32mcu (stmicroelectronics.cn)

First issue : when I try to use the ST Motor Profiler and click on the start profile button, I can't complete it because my board start smoking and the process stop because of overheating fault. What's the reason of that?

Second issue : I open ST Motor Control Workbench to create a new project. I select Single motor as System,  Custom as Application Type, Power & Control as Selected Boards, NUCLEO-F302R8 as Control Board, X-NUCLEO-IHM08M1-3Sh as Power Board and Generic lov voltage <= 50V as Motor. I change the motor parameters, more precisely Electrical Parameters : 4 as pole pairs, 4000rpm, 5Apk, 36V, 0.35Ohm, 1mH and I leave the B-emf constant as default because I don't know what it is and where to find the info. After that I generate the code but here come the issue when I build the project ; in the sysmem.c file, the compiler says unknown type name 'caddr_t'. I went on Google and changed it by 'void*'. Was it right ?

Last issue : after changing every 'caddr_t' by 'void*' in the sysmem.c file, I encounter no error anymore so I run the program. Once I click on the user button, the motor rotates 1 second then stop by itself. Is that was it supposed to? I don't think so.. So I moved on to the next step which is the 2.3 from the tutorial. I add these lines in my code :

 while (1)
 {
	 MC_StartMotor1();
	 HAL_Delay(2000); 
 MC_StopMotor1();
 }

But then when i run the program, the motor still rotates 1second then stop.

What am I constantly doing wrong???? I'm so frustrated right now and I can't find any thing to help me on the internet 

This topic has been closed for replies.
Best answer by Zied b.

Hello @Gnahore 
have you upgraded to version 6.1.2 of the MCSDK? because it corrects this connection problem.
Regards

1 reply

ST Employee
August 23, 2023

Hello @Gnahore 
You are using a old version of MCSDK, can you try with Version 6.1.2 and tell me if you have the same problems? We will be able to provide you better support if you are using a more recent version. 
Regard

GnahoreAuthor
Senior
August 24, 2023

Hello @Zied b. 

I'm using a old version because I can't even start profiling with ST motor pilot v1.1.12. Everytime I click on connect, it send me back to the select board page (see pictures attached).

At least the old version I can start profiling but my board can't handle...

ST Employee
August 24, 2023

hello @Gnahore ,
This problem has been solved normally in version 1.1.9 which is integrated with MCSDK 6.1.2 can you try it please?
Another solution is not to install the MCSDK in the program files but in another folder, for example "Documents"