control gets struck,For FCCU reset

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

control gets struck,For FCCU reset

1,064件の閲覧回数
harshavardhanbh
Contributor I

Hi 

 using MPC5744

 

I am trying to get FCCU reset,

The control gets struck in while loop, The operation I am trying to do is as follows

  1. unlocking the configuration by putting trans key as 0xBC
  2. provided configuration key as 0x913756AF
  3. changing the FCCU mode to confirmation mode and waiting for operation to get successful ( this where struck)
  4. configuring the FCCU react for short reset reaction
  5. and injecting the fake fault status
  6. reading the status register

 

 

code:

 

  FCCU.CTRL.B.OPR=0X0F;       // puts into Idle state

  test=FCCU.CTRL.B.OPS;

  

  /* Unlock configuration */

  FCCU.TRANS_LOCK.B.TRANSKEY = 0xBC; 

 

  /* provide Config state key */

  FCCU.CTRLK.R = 0x913756AF;

 

  /* enter config state - OP1 */

  FCCU.CTRL.R = 0x1;

 

  test=FCCU.CTRL.B.OPS;

  /* Verify if state change was sucessful */

  while (test != 0x3);         //operation status succesfull

              

  //FCCU.CTRL.B.DEBUG = 0x1;                   // debug mode 

  

  /* Configure FCCU to react on NCF[7] with short reset */

  FCCU.NCFS_CFG[0].R = 0x0000;

  FCCU.NCFS_CFG[0].R = 0x8000;                              // short reset reaction

ラベル(1)
0 件の賞賛
3 返答(返信)

769件の閲覧回数
harshavardhanbh
Contributor I

Thanks will try it out

0 件の賞賛

769件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You have latched faults in FCCU NCFSx registers.

Clear them prior to state change request.

Peter

0 件の賞賛

769件の閲覧回数
harshavardhanbh
Contributor I

the code what i am using is as below

FCCU.CTRL.B.OPR=0X0F; // puts into Idle state
test=FCCU.CTRL.B.OPS;

/* Unlock configuration */
FCCU.TRANS_LOCK.B.TRANSKEY = 0xBC;

/* provide Config state key */
FCCU.CTRLK.R = 0x913756AF;

/* enter config state - OP1 */
FCCU.CTRL.R = 0x1;

//test=FCCU.CTRL.B.OPS;
/* Verify if state change was sucessful */
while (FCCU.CTRL.B.OPS != 0x3); //operation status succesfull

//FCCU.CTRL.B.DEBUG = 0x1; // debug mode

/* Configure FCCU to react on NCF[7] with short reset */
FCCU.NCFS_CFG[0].R = 0x0000;
FCCU.NCFS_CFG[0].R = 0x8000; // short reset reaction

0 件の賞賛