This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS0432: TPS65381 .I found No matter how I set it up.all have problem

Part Number: TMS570LS0432

Tool/software: Code Composer Studio

Hello

 These are my code

void ecmpInit(void)
{

while (ecmpIfGetRegister(ECMP_SAFETY_STATUS5) != 7);


/* Stay in Diagnostic State and configure SAFETY_CHECK_CONTROL register */
ecmpIfSetRegister(ECMP_SAFETY_CHECK_CONTROL, 0x17);

ecmpIfSetRegister(ECMP_SAFETY_FUNCTION_CONFIG, 0xE4);


/* Clear Status Innformation */
ecmpIfGetRegister(ECMP_VMON_STATUS1);
ecmpIfGetRegister(ECMP_VMON_STATUS2);
ecmpIfGetRegister(ECMP_SAFETY_STATUS1);
ecmpIfGetRegister(ECMP_SAFETY_STATUS2);
ecmpIfGetRegister(ECMP_SAFETY_STATUS3);
ecmpIfGetRegister(ECMP_SAFETY_STATUS4);
ecmpIfSetRegister(ECMP_SAFETY_ERROR_STATUS, 0x00);

}

no matter how I set .but  WdgFailCount = ecmpGetWdgFailCount();  WdgFailCount value always  7.

why?

 I see paper "The default valueis 5,and is initialized to this value upon entering the DIAGNOSTIC and ACTIVE state "