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
Hello @laurianussss
It requires a hardware reset or a Watchdog reset/interrupt to
be disabled.
BR
Alice
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
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