Hi Team,
Customer reset watchdog timer after the watchdog is initialized. If there is no kicking watchdog, it will not be reset, and the program runs away. What is going on?
The code is as follows:
Watchdog_init();
Watchdog_Params_init(&watchdogParams);
watchdogParams.resetMode = Watchdog_RESET_ON;
watchdogParams.debugStallMode = Watchdog_DEBUG_STALL_ON;
watchdogParams.windowSize = Watchdog_WINDOW_100_PERCENT;
watchdogParams.preloadValue = 4095;
watchdogParams.socHandle = gMmwMssMCB.socHandle;
//watchdogParams.esmHandle = esmHandle;
/* Open the Watchdog driver */
watchdogHandle = Watchdog_open(0, &watchdogParams);
if (watchdogHandle == NULL)
{
System_printf ("Error: Watchdog Driver Open failed\n");
}
else {
System_printf ("debug :Watchdog Driver Open successd\n");
}
//the kicking watchdog function
Watchdog_clear(watchdogHandle);
Thanks.