2025-01-13 07:00 PM
Hello Everybody,
MCSDK:6.3.0
CubeMX: 6.3.0
Workbench : 6.3.0
Motor Pilot : 1.2.9
Power Board : IHM08M1
Control Board : NUCLEO-G431RB
Motor : BL5702
I am now using Motor Pilot to adjust the speed. Below are part of the settings from Workbench:
a) Speed Sensing Selection : Observer +PLL(Sensorless)
b) Speed Sensing Config / Auxiliary Sensor - Speed Sensor Mode : Hall Sensor
c) Drive Settings : Open Loop OFF
d) Applicaion Configuration : Motor Profiler(Enable)
I followed the steps from STMicroelectronics/MC_SDK_6.3.0/Documentation under the Motor Profiler section. I started with Workbench to generate the project -> CubeMX GENERATE CODE -> CubeIDE to flash and run the program.
However, I noticed that the program gets stuck at TSK_HardwareFaultTask();. This prevents me from testing my Hall Sensor with Motor Pilot.
If I disable Speed Sensing Config / Auxiliary Sensor - Speed Sensor Mode : Hall Sensor and reflash the firmware, the program runs without issues. But when running Motor Pilot, I encounter a Speed Feedback Error.
Could you help me identify where I might have gone wrong in the process?
2025-01-13 07:02 PM
2025-01-14 01:46 AM
Hello @Vincent7,
Concerning the attached picture, it is mentioned that the used firmware has not been generated with the "motor profiler" enabled.
2025-01-14 03:58 PM
Hello GMA,
Thank you for your reply.
Actually, I have enabled the motor profiler, but when I execute the program, it stops at TSK_HardwareFaultTask().
I'm not sure if my settings in Workbench are correct (specifically, setting Speed Sensing Selection to Observer + PLL (Sensorless) and Speed Sensing Config / Auxiliary Sensor - Speed Sensor Mode to Hall Sensor).
2025-01-14 06:42 PM
I am using a motor with Hall sensors (but no encoder), and I want to confirm if the correct configuration in Workbench for Speed Sensing Selection is to select "Observer + PLL (Sensorless)" and then choose "Hall Sensor" in the Auxiliary option under Speed Sensing Config?
If this is not the correct setting, how can the "Start Hall Profiling" feature mentioned in the STM32_MC_Motor_Pilot_-_Start-up_guide be enabled?
Another related question is : does a motor using a hall sensor(but without an encoder) also need to measure RS, Ls and perform Hall Profiling in the Motor Pilot?