S32K312 MCAL WDG Not Working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 MCAL WDG Not Working

825 Views
Jacky_00001
Contributor I

Hi,

I am trying to implement a Watchdog for S32K312 through MCAL's WDG module. I am using the MCAL version of R21-11_4.0.0_P01_D2312.


I have set up the GPT timer,WDG module WIT is set to 3.5 seconds, WTP is set to 1 second, WWP is set to 0.05 seconds.


The program calls Wdg_ChannelInit( WDG_IPW_INSTANCE0,NULL_PTR ) and WdgIf_SetMode(WDG_IPW_INSTANCE0,WDGIF_SLOW_MODE),
and calls WdgIf_SetTriggerCondition(WDG_IPW_INSTANCE0,2500) every 500mS.


But the program executes Reset when it reaches Swt_Ip_ServiceCmd(Base, SWT_IP_FIXED_SERVICE_VALUE1_U16), and the WDG time is not cleared. What am I doing wrong?

0 Kudos
Reply
0 Replies