Clear FCCU_NCF_Sx Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Clear FCCU_NCF_Sx Issue

1,217 次查看
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

标签 (1)
0 项奖励
回复
1 回复

1,032 次查看
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 项奖励
回复