********************************************************************************
* Detailed Description:
* Test HW: MPC57xx + S32R274RRUEVB
* Maskset: 1N58R
* Target : internal_FLASH
* Fsys: 240 MHz PLL with 40 MHz crystal reference for z7 and 120MHz for z4
********************************************************************************
Revision History:
1.0 Apr-02-2019 b21190(Vlna Peter) Initial Version
1.1 Apr-03-2019 b21190(Vlna Peter) Added SWT reset reaction
*******************************************************************************/
This example demonstrated the reset trigger on first SWT_2 timeout.
Following screens shows the reset source after code execution in standalone mode and debugger connection afterwards:
Hi Peter,
I am working on S32R274 and I need help for SWT_2.
I need your help regarding above code :
I am not able to see the NCFS_CFG0 is getting updated with my value 0x40000000 .
FCCU.NCFS_CFG[0].R = 0x40000000;.
and I can see that, NCF_S0 is showing value 0x00070000.
Below are the screen shot during debug :
Could please help me,. why this value NCF_S0 = 0x00070000, as I have just configure SWT_2 only.
and why I am not able to see the my written value in NCFS_CFG0.
Thanks !
Hi,
Hmm, and do you performing FCCU configuration in FCCU CONFIG mode?
regards,
Peter
Hi Peter,
If timeout expires the SWT causes a reset, after this reset next timeout the SWT no longer reset.
I try the interrupt mode and the IR is correctly triggered in both cases but no reset after first reset.
What could be the problem?
What can I check?
Thank in advance.
Salvatore.
Hi petervlna ,
If timeout expires the SWT causes a reset, after this reset next timeout the SWT no longer reset.
I try the interrupt mode and the IR is correctly triggered in both cases but no reset after first reset.
What could be the problem?
What can I check?
Thank in advance.
Salvatore.
Hi,
Since you did not share much about your test setup, I guess it can be debugger whose preventing the code run or simply disable SWT as most debuggers do automatically.
regards,
Peter
Sorry, I've solved the problem. I had commented FCCU_clear_faults(). Now work.
Thanks