I tried to write FCCU_TRANS_LOCK register but its value doesn't change, is it because Supervisor Mode?#FCCU_TRANS_LOCK #supervisor mode
you have to be in supervisor mode and
NOTE: You can write to this field when FCCU is in any state, but the lock will not go into effect until FCCU is in Normal state.
Thanks but how to make sure that the code is in supervisor mode ?
You can see PR bit set to 0 in your MSR core register.
Hi Peter, is it true that we should clear NCF_Sx by writting 0xFFFFFFFF? why not write 0x000000000?
Well, because if you look at reference manual you will see that this register is cleared by 1. (w1c)
In AN5284 ,it mentioned that
Before entering the CONFIG state of the FCCU, perform these steps:1. Disable the SWT.
What does this mean?
I have wrote this AN some time ago. Meantime I have found that there is no need to disable SWT if your SWT didnt expire before code reach FCCU configuration routine.
SWT - software watchdog timer.
What is certain, that there must not be set NCF before entering to config state.
So implementation is fully on you.
I found that SWT have expired before FCCU Configuration. (Since there is NCF and FCCU is in Fault state after Clear Faults Opeartion) How can I avoid this? Thanks!
Simply serve the SWT or dissable it at all.
Retrieving data ...