Hello everyone
I'm using KV11Z128 series mcu. I can initialize and start watch dog timer but not reset.
My initialize code;
wdog_config_t wdtConfig;
WDOG_GetDefaultConfig(&wdtConfig);
wdtConfig.timeoutValue = 0x6ffU;
WDOG_Init(WDOG, &wdtConfig);
After that I'm trying reset my wtd witd;
WDOG_ClearResetCount(WDOG);
But This code can not reset WDT value and mcu reset every watch dog period.
Anyone can know solution?
Dear Engin Subasi,
The function WDOG_ClearResetCount(WDOG); resets the counter of the number of times the watchdog resets the system. For which, it doesn't prevent it from resetting.
You should use WDOG_Refresh(WDOG_Type *base); instead. It refreshes the watchdog and prevents it from resetting the system.
Regards,
Ivan.