Aurix TC397 watchdog not work

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

cross mob
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

Hello,

   I enable watchdog like "Watchdog_1_KIT_TC375_LK" in TC397 but not reset after timeout.

   Then I conf SMU like "SMU_Reset_Alarm_1_KIT_TC397_TFT" and change 

```

IfxSmu_setAlarmAction(IfxSmu_Alarm_Software_Alarm0, IfxSmu_InternalAlarmAction_reset);

to

IfxSmu_setAlarmAction(IfxSmu_Alarm_SCU_CPU0_WatchdogTimeOut, IfxSmu_InternalAlarmAction_reset);

```

   but nothing happen. And  I found the IfxSmu_activateRunState(); return False.

   

    Could you please tell me how to reset CPU when watchdog timeout?

Thank you

 

 

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

› There are two types of Watchdogs:
– The Safety WD provides protection against unintended writes to critical
system registers and memories. It consists of a timer that causes an
SMU alarm request if it is not serviced within a certain time interval
– The individual CPU WDs have similar functionalities as the safety
watchdog. They provide protection to CPU registers as well as to
particular system registers. The CPU individual timers, if activated, offer
the ability to monitor separate CPU execution threads. They have to be
serviced similar to the safety watchdog timer within a certain time
interval, otherwise a device reset is triggered

 

You can measure ESR0 pin to verify RESET status which is to control LED D106

dw_0-1649411069150.png

 

View solution in original post

0 Likes
10 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

https://www.infineon.com/dgdl?fileId=5546d4627a0b0c7b017a583fd1da244b&redirId=140316

Hi miao,

Please refer above guide.

After code compilation and flashing the device, perform the following steps:
› Check whether LED D106 (1) is off - No reset is signaled. Thus the CPU0 watchdog is well serviced periodically

› Comment out the instruction to service the CPU WD: IfxScuWdt_serviceCpuWatchdog()

› Compile, flash and run the code again

› Terminate the debug session if it is open. LED D106 (1) turns on after some timesignaling a reset. Thus the WDT is not serviced any more

 

dw

0 Likes
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

I do not havethis board, and I try this code in my board and nothing happpen after stop service watchdog.

0 Likes
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

And I ant to know why in this example if it will reset without conf  SMU ?

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

› There are two types of Watchdogs:
– The Safety WD provides protection against unintended writes to critical
system registers and memories. It consists of a timer that causes an
SMU alarm request if it is not serviced within a certain time interval
– The individual CPU WDs have similar functionalities as the safety
watchdog. They provide protection to CPU registers as well as to
particular system registers. The CPU individual timers, if activated, offer
the ability to monitor separate CPU execution threads. They have to be
serviced similar to the safety watchdog timer within a certain time
interval, otherwise a device reset is triggered

 

You can measure ESR0 pin to verify RESET status which is to control LED D106

dw_0-1649411069150.png

 

0 Likes
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

I want to use cpu watchdog and ESR0 does not change

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

For cpu watchdog triggered reset, the ESR0 is low, and LED D106 will be ON

0 Likes
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

Not work in my board , SMU IGCS0 works but watchdog timeout does not work.

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

Hi miao,

You could disconnect the debugger and check the ESR0 level after Power On Reset.

 

dw

0 Likes
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

Hello,

    I had test in release version board which has not debug interface plugin.

    And it could not reset and ESR0 not change.

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

Hi miao,

Please check your email.

dw

0 Likes