LPC17xx suspend watchdog in sleep

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

LPC17xx suspend watchdog in sleep

602 次查看
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 回复数

578 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @laurianussss 

 

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

 

BR

Alice

0 项奖励
回复

573 次查看
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 项奖励
回复

552 次查看
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 项奖励
回复