AURIX SCU_WDT:how to  really enable  the  WDTCPU0 in debug mode?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
oneday
Level 2
Level 2
First comment on blog 10 replies posted 10 questions asked

When using the code example to test SCU_WDT(in debug mode ), there are some question as follows:

oneday_0-1669605939257.png

when execute code line 61:   IfxScuWdt_serviceCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); /* Service the CPU0WDT */,then use the "printf"  to print the REG "SCU_WDTCPU0SR" , the value of "SCU_WDTCPU0SR" shows as follows:

oneday_1-1669606181700.png

I think the WDTCPU0 is not really enabled,because the SCU_WDTCPU0SR.B.TIM = 0xFFFC and this value has never changed.

so,  how to  really enable  the  WDTCPU0 in debug mode?  

Looking forward to your reply.

 

 

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Generally, FFFCh is counted up to FFFFh and then timeout, that means only 4 clocks to be expired, in this short window,  the user could do some operations.

View solution in original post

0 Likes
1 Reply
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Generally, FFFCh is counted up to FFFFh and then timeout, that means only 4 clocks to be expired, in this short window,  the user could do some operations.

0 Likes