Hi,
Now,I have some questoins to ask about SWT(soft watching dog).
The first is how can triggle the SWT to cause a reset request.And if need to write a interrupthandler to reset.Or the reset request is sent to FCCU and reset automatic.
The second question is about S32R274 SWT example.
In the void FCCU_Init()
#if LONG_RESET
/* Configure FCCU to react on NCF14 with long functional reset */
FCCU.NCFS_CFG[0].R = 0x20000000; //long functional reset reaction
#else
/* Configure FCCU to react on NCF with short reset */
FCCU.NCFS_CFG[0].R = 0x10000000;
#endif
In the datasheet:
01 Short functional reset request pulse (FAULT state reaction) according to the datasheet ,why the FCCU.NCFS_CFG[0].R = 0x20000000 and FCCU.NCFS_CFG[0].R = 0x10000000?Not is FCCU.NCFS_CFG[0].R = 0x80000000,and FCCU.NCFS_CFG[0].R = 0x40000000. That all.Thanks. Tao |
Hi,
The first is how can triggle the SWT to cause a reset request.And if need to write a interrupthandler to reset.Or the reset request is sent to FCCU and reset automatic.
The SWT is hardwired to RGM. So the reset is triggered once the SWT reach its modulo.
If the SWT is set to trigger interrupt on first timeout then interrupt is triggered and you have to serve it in ISR.
Second timeout is always reset.
The second question is about S32R274 SWT example.
You can configure SWT reset reaction in FCCU module for:
Short reset -> to reset phase 3
long reset -> to reset phase 1
regards,
Peter