I am using MPC57XX processor and need to set FCCU hard reaction reset in DES register
could you please clarify, which MPC57xx microcontroller you use?
I expect that you refer to Flag for FCCU failure to react reset F_FFRR in RGM [DES] register.
This reset is cause by FOSU - FCCU output supervisor unit. In case that FCCU is not able to react on latched fault withing a FOSU timeout the FOSU will trigger destructive reset in order to put device into safe state.
Example how to trigger FOSU reset:
/* Unlock configuration */ FCCU.TRANS_LOCK.B.TRANSKEY = 0xBC;
/* provide Config state key */ FCCU.CTRLK.R = 0x913756AF; /* enter config state - OP1 */ FCCU.CTRL.R = 0x1;
/* 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 with short reset */ FCCU.NCFS_CFG.R = 0x4000; // short reset reaction //set up the NOMAL mode of FCCU FCCU.CTRLK.R = 0x825A132B; //key for OP2 FCCU.CTRL.R = 0x2; //set the OP2 - set up FCCU into the NORMAL mode while (FCCU.CTRL.B.OPS != 0x3); //operational status succesfull
/* Inject a NCF STCU2 fault */ FCCU.NCFF.R = 0x7;
The example is attached.
Retrieving data ...