Dear XNP,
Some background information:
I am trying to create a fake fault to check FCCU configuration. In manual reference, I found that register "FCCU_NCFF" can inject the fault source and trigger FCCU module. But when I set it, nothing happened.
I can sure that FCCU is configured properly, I am using example code fromMPC574xP - FCCU configuration guide, and I saw the content of FCCU configuration register are changed.
I have tried to debug and found that "FCCU_NCFF" is not available in register map (SFRs window), see the following pics for more detail:
Are there any mistake?
Thanks for your support.
Tung Dao.
Solved! Go to Solution.
Hi,
The fault injection is working as expected.
Example: as you can see after reset no fault are latched in MPC574xC.
Now I will insert NCF[6] via FCCU NCFF register: set its value to 0x6. NCFF is available.
As you can see the fault is successfully injected and latched in FCCU NCFS_0 register.
There is just no issue so I don't know what to explain.
Peter
Any help, please. petervlna
Hi,
I will try to explain it.
1. Not all faults can be injected. Some can be inserted only via module itself (like PMC). To see which can and which cannot be injected look at table Table 72-2. FCCU non-critical fault mapping in reference manual.
2. Before fault injecting configure FCCU to react on that particular fault in FCCU_NCF_CFG, FCCU_NCFS_CFG and FCCU_NCF_E0.
3. Insert the fault via NCFF register.
4. If you have not configured reset reaction on fault you can immediately see the fault in FCCU_NCF_Sx registers. To read this fault you need to set OPS to 10. Otherwise FCCU_NCF_Sx registers will return always 0 and you wont be able to see the latched faults.
Hope it answers your questions.
Peter
Thanks for your reply.
I am using "MPC5744P_FCCU_fault_injection" example code so I can sure FCCU is configured properly After injecting all fault via "FCCU_NCFFs" (setting 0xFFFFFFFF for all) I have checked the "FCCU_NCF_Sx" but didn't see any change on it.
One more thing, I didn't see the "FCCU_NCFF" in register map. Is it available in MPC5746C MCU? any explain for this concern.
Thanks.
Hi,
The fault injection is working as expected.
Example: as you can see after reset no fault are latched in MPC574xC.
Now I will insert NCF[6] via FCCU NCFF register: set its value to 0x6. NCFF is available.
As you can see the fault is successfully injected and latched in FCCU NCFS_0 register.
There is just no issue so I don't know what to explain.
Peter
You are right, it's working correctly. I assigned all values from 0 to 127 into "FCCU_NCFF" and I got changes on "FCCU_NCF_Sx" registers.
Thanks for your support.
Tung Dao.