Hi:
why doesn't the FCCU_NCF_Sx can be cleared by the following code ?
{
FCCU.NCFK.R = FCCU_NCFK_KEY;
FCCU.CTRL.B.OPR = 0xC;
while(FCCU.CTRL.B.OPS != 0x3);
}
Thanks
You can use following code that cleat all faults (you can modify it to clear only some faults):
void ClearNCF(void)
{
uint32_t i;
for(i=0;i<4;i++)
{
FCCU.NCFK.R = FCCU_NCFK_KEY;
FCCU.NCF_S[i].R = 0xFFFFFFFF;
while(FCCU.CTRL.B.OPS != 0x3)
{
}; /* wait for the completion of the operation */
}
}
Please also pay attention to following documents:
http://cache.freescale.com/files/32bit/doc/eng_bulletin/EB758.pdf