KV11Z128 Watch Dog Timer WDT Reset Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KV11Z128 Watch Dog Timer WDT Reset Issue

429 Views
esubasi
Contributor II

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?

Tags (2)
0 Kudos
1 Reply

292 Views
IvanRuiz
NXP Employee
NXP Employee

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.

0 Kudos