Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE
I am attempting to progress through the InstaSpin labs. Unfortunately, I am getting hung up on Lab3 "is03_hardware_test" as well as other labs that rely on a pre-identified motor configuration. I am currently able to identify and spin my BLDC hub motor using the InstaSpin GUI paired with Lab "is05_motor_id". I have taken the motor parameters identified in that lab and updated my user.h file with the new parameters.
In Lab 3, whenever I set motorVars.flagRunIndentAndOnLine equal to true the input current briefly spikes and the motor does a small jerk, but that is all. I found that the function below is preventing the code from continuing because motorVars.faultNow.bit.moduleOverCurrent is getting set to true:
if(HAL_getPwmEnableStatus(halHandle) == true)
{
if(HAL_getTripFaults(halHandle) != 0)
{
motorVars.faultNow.bit.moduleOverCurrent = 1;
}
}
motorVars.faultUse.all =
motorVars.faultNow.all & motorVars.faultMask.all;
//
// Had some faults to stop the motor
//
if(motorVars.faultUse.all != 0)
{
motorVars.flagRunIdentAndOnLine = 0;
}
I would like to get a better understanding of how the moduleOverCurrent fault is set,and which potentially incorrect motor parameters may be causing this.