Part Number: LAUNCHXL-F280049C
Hello,
There seems to be a bug somewhere in the over current detection auto clearing OST status ePWM action qualifiers for DACA-VALH and DACB-VALL filtered OR'd latches.
The same basic CMPSS, ePWM faults code verified working in SDK4.0 LAB is07 does not auto clear ePWM OST registers latched conditions as seemingly does MCSDK no matter USER_M1_OVER_CURRENT_TIMES_SET value being reduced 2. This has me baffled as the ePWM OST registers latched conditions are all cleared at RUN and remain cleared other than OST 6 never being set.
Oddly enough I recently reported similar issue SDK4.0 (enable/disable PWM in hal..h). Case of MCSDK the OST bits when enabled for DACA/B OR'd filtered are never being reset after the code (motor1_drive.c) seems to clear set flags only Tz6 remains set. Note the DMC build level 2 my motor runs open loop with no issues and we test TzDACS for OVC condition by reducing the trip current level shown below captures. Both MOTOR1_FAST and MOTOR1_ESMO symbols are in the build level 2. What is clearing the OST flag register bits never resets them enable PWM hal.h?
#if defined(MOTOR1_FAST)
// enable or disable bypassLockRotor flag
if(objUser->motor_type == MOTOR_TYPE_INDUCTION)
{
EST_setFlag_bypassLockRotor(obj->estHandle,
obj->flagBypassLockRotor);
}
#endif // MOTOR1_FAST
if(obj->flagClearFaults == true)
{
HAL_clearMtrFaultStatus(obj->halMtrHandle);
obj->faultMtrNow.all &= MTR_FAULT_CLEAR;
obj->flagClearFaults = false;
}
if(obj->flagRunIdentAndOnLine == true)
{
if(HAL_getPwmEnableStatus(obj->halMtrHandle) == false)
{
#if defined(MOTOR1_FAST)
// enable the estimator
EST_enable(obj->estHandle);
// enable the trajectory generator
EST_enableTraj(obj->estHandle);
#endif // MOTOR1_FAST
// enable the PWM
HAL_enablePWM(obj->halMtrHandle);
}
