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

cross mob
Sureshkumar_89
Level 1
Level 1
25 sign-ins First reply posted First question asked

Hello,

              We are working with the TC322 hardware, and we are having a problem related to the reset for the CPU watchdog. We are using the Aurix example code "Watchdog_1_KIT_TC334_LK". If we are not servicing the watchdog within the configured time delay, a reset needs to happen. but in our case, it is not happening.

Note: During the testing, we disconnected the debugger.

Can you suggest solutions for the related to watchdog reset issues?

0 Likes
3 Replies
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @Sureshkumar_89 ,

 

Can you clarifying how you are verifying that the reset is not happening, are you observing the ESR0 pin state for this or something else.

 

Also you can refer to this thread which might be related to your issue and see if you are able to find any solutions: https://community.infineon.com/t5/AURIX/Aurix-TC397-watchdog-not-work/td-p/343980

 

Best Regards,

Meet.

0 Likes
Hi,
 
We are transmitting a periodic can message in every 10 milisecond 
with a message counter. 
To check for watchdog reset we are verifying if the message counter has been restarted from 0 which is not happening.
 
Below is the pseudocode that we tried :
1. Configure the CPU watchdog time using 
IfxScuWdt_changeCpuWatchdogReload(IfxScuWdt_getCpuWatchdogPassword(), RELOAD_VALUE); //RELOAD_VALUE is E000
 
2. Congfigure the Watchdog reset using SMU alarm :
IfxSmu_setAlarmAction(IfxSmu_Alarm_SCU_CPU0_WatchdogTimeOut, IfxSmu_InternalAlarmAction_reset);
IfxScuRcu_configureResetRequestTrigger(IfxScuRcu_Trigger_smu, IfxScuRcu_ResetType_system);
 
3. Make sure not to service the CPU watchdog.
The above did not work.
 
So we also tried the suggestion of the thread as below:
1. Configure the CPU watchdog time using
IfxScuWdt_changeCpuWatchdogReload(IfxScuWdt_getCpuWatchdogPassword(), RELOAD_VALUE); //RELOAD_VALUE is E000
 
2. Congfigure the Watchdog reset using SMU alarm :
IfxScuRcu_configureResetRequestTrigger(IfxScuRcu_Trigger_esr0, IfxScuRcu_ResetType_system);
 
3. Make sure not to  service the CPU watchdog.
 
This also did not work.
 
Please confirm what step are we missing here?
0 Likes
Meet_T
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi @Sureshkumar_89 ,

 

It seems that you are using example code of TC334 but you are working with TC322, so can you confirm if you are changing something in the code or using the example code as it is for TC322. Also, If you've made some changes can you provide the entire code file so we can debug more efficiently.

 

Best Regards,

Meet.

0 Likes