I can't complete ST Motor Profiler nor make my motor rotates from C generated code
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
