KV11Z128 Watch Dog Timer WDT Reset Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KV11Z128 Watch Dog Timer WDT Reset Issue

870 次查看
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?

标记 (2)
0 项奖励
回复
1 回复

733 次查看
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 项奖励
回复