LPC17xx suspend watchdog in sleep

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

LPC17xx suspend watchdog in sleep

1,400件の閲覧回数
laurianussss
Contributor II

I have a problem with LPC1768 controller. I want to use an watchdog to reset controller if stucks. 

I also want to use deep sleep. 

Problem appears when i want.to use both. If I enable watchdog as i saw there is mo possibility to suspend or disable so when system enter in deep sleep watchdog will reset the controller as it is not feed anymore.

Any solution to disable somehow watchdog when enter in sleep mode or other solutions to work both (deep sleep and an watchdog to reset mcu if stucked?)

A solution i am thinking is to use a timer with highest priority and reset in this timer is higher than a value. Value will be reset in while loop in main. I do not know if this one Will work OK 

 

 

 

 

0 件の賞賛
返信
3 返答(返信)

1,376件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @laurianussss 

 

It requires a hardware reset or a Watchdog reset/interrupt to
be disabled.

 

BR

Alice

0 件の賞賛
返信

1,371件の閲覧回数
laurianussss
Contributor II

How can i disable watchdog IRQ/Reset? As I have read in data sheet it says it cna not be disbaled in software once it is enabled. Only an hardware reset will do it.

Thanks

Laurian

0 件の賞賛
返信

1,350件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @laurianussss 

Yes, once the watchdog of the LPC1768 is enabled, it cannot be disabled via software.

Yes, you can consider using a timer to wake up the MCU and feed the watchdog. Alternatively, you can consider using an external watchdog IC.

 

BR

Alice

 

0 件の賞賛
返信