FOC duration and Software error. The motor doesn't start rotation
- November 25, 2020
- 3 replies
- 2442 views
Hi,
NUCLEO-F303RE
X-NUCLEO-IHM07M1
Maxon motor 496653 with 5.8:1 gear ratio
Motor Profiler 5.4.4
MotorControl Workbench 5.4.4
STM32CubeMX 5.5
STM32CubeIDE 1.4.0
I have created a motor profile using the motor profiler and confirmed the hardware is working correctly. I have then attempted to create a position control project using the AN5464 as a guide. I have got to a stage where the motor doesn't rotate at all. I have tried to debug the code and I have realised that it gets stuck at the "while(MC_GetAlignmentStatusMotor1()!=TC_ALIGNMENT_COMPLETED){}" line of code. I have attached a PDF showing the value returned by the function.
I have then tried to connect to the board via the monitor in the motor control workbench and it shows FOC duration and Software error as soon as the MC_StartMotor1() function is called. Does anyone know what's going on?
Thanks in advance
Kind Regards
Manpreet Singh
