HardFault_Handler Triggered When Enabling Hall Effect in Motor Profiler with MC Workbench 6.3.0
Hello,
I am experiencing an issue with the Motor Profiler in MotorControl Workbench 6.3.0. When I enable the Hall Effect in the generated source code, the program triggers the HardFault_Handler during execution.
Here are the details of my setup:
- Tools:
- MotorControl Workbench 6.3.0
- STM32CubeIDE 1.15.1
- STM32CubeMX 6.11.1
- Hardware:
- Control Board: NUCLEO-G474RE
- Power Board: X-NUCLEO-IHM17M1
The following configurations work fine with this setup:
- Motor Profiler with Hall Effect OFF
- FOC with Main Sensor Observer+PLL
- FOC with Main Sensor Observer+PLL and Auxiliary Sensor Hall Sensor
However, when running the Motor Profiler with Hall Effect ON, the debugger shows that the HardFault_Handler is called within the FOC_Init() function, specifically at the HT_Init(&HT, false) call. The error message is:
Can't find a source file at "C:\Motor_Control\MC_Releases\6.3.0\MotorProfilerLibs\Projects\NUCLEO-G431RB-X-NUCLEO-IHM07M1-3Sh\MotorControlDev\MCSDK\MCLib\Any\Src\mp_hall_tuning.c"
Locate the file or edit the source lookup path to include its location.
Please note that since MotorControl Workbench 6.3.0 is installed in its default location, the folder "C:\Motor_Control" does not exist.
I have also set up the same tool configuration on a new PC where MotorControl Workbench 6.3.0 was not previously installed, but I encounter the same error.
Could anyone provide guidance on what might be causing this issue and how to resolve it?
Thank you in advance for your support.
inaba
