Clear FCCU_NCF_Sx Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clear FCCU_NCF_Sx Issue

599 Views
liujinhang
Contributor III


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

Labels (1)
0 Kudos
1 Reply

414 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

MPC574xP - FCCU configuration guide

0 Kudos