WDT during debug

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

WDT during debug

758件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Tue Apr 27 08:09:01 MST 2010
I am trying to use the Watchdog timer (with WDEN and WDRESET bits on) and it seems to work ok except each time it make a reset (when I fail to feed it) the debugger stops with a SIGSTOP received error.  Am I doing something wrong or is this just something the the wtc normally causes?  It makes it a little difficult to troubleshoot.  Originally I thought of just using the interrupt part but I couldn't figure out where the int vector took me.

Regards
0 件の賞賛
返信
1 返信

649件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkiryanov on Wed Apr 28 01:52:41 MST 2010
I disable WDT for debug build and blinking LED instead of feeding WDT.

User manual:


Quote:
WDINT The Watchdog interrupt flag is set when the Watchdog times out. This flag is cleared when any reset occurs. Once the watchdog interrupt is serviced, it can be disabled in the NVIC or the watchdog interrupt request will be generated indefinitely. The intent of the watchdog interrupt is to allow debugging watchdog activity without resetting the device when the watchdog overflows.

0 件の賞賛
返信