wdt in debug

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

wdt in debug

953件の閲覧回数
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 返答(返信)

936件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Dec 02 05:29:16 MST 2010
Thanks
0 件の賞賛
返信

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

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