wdt in debug

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

wdt in debug

1,049 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Wed Dec 01 06:44:16 MST 2010
When the wdt is enabled, in debug mode when a break occurs the processor is reset by WDT, how can I disable it for debug ?

Thanks
0 项奖励
回复
3 回复数

1,032 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Dec 02 05:29:16 MST 2010
Thanks
0 项奖励
回复

1,032 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Wed Dec 01 12:45:32 MST 2010
Hello blasiis,

see the User Manual UM10398 (chapter 17 WDT).
The WDMOD should be programmed. In the software MOD.

The blockdiagram gives a clear overview of the whole Watchdog.

If you want to use the WDT without the controller to be resetted, than do not set WDRESET ... it can be usefull in debugging.
0 项奖励
回复

1,032 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Dec 01 06:59:55 MST 2010
Just don't enable it for Debug Configuration:

#ifdef DEBUG
LPC_WDT->MOD = WDEN; //just enable
#else
LPC_WDT->MOD = WDEN | WDRESET; //enable & chip reset
#endif
0 项奖励
回复