wdt in debug

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

wdt in debug

950 Views
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 Kudos
Reply
3 Replies

933 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by blasiis on Thu Dec 02 05:29:16 MST 2010
Thanks
0 Kudos
Reply

933 Views
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 Kudos
Reply

933 Views
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 Kudos
Reply