KV11Z128 Watch Dog Timer WDT Reset Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KV11Z128 Watch Dog Timer WDT Reset Issue

868件の閲覧回数
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)
タグ(2)
0 件の賞賛
返信
1 返信

731件の閲覧回数
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 件の賞賛
返信