Go Down

Topic: use Watchdog to restart / reset (Read 1 time) previous topic - next topic



I have a well working Arduino application. "Well working" means that it runs and runs and runs. No lock up and other annoyances, runtime greater some weeks without problems.

As designed it writes data into a (serial attached) tracking device, so I see power outages etc. by writting out messages during setup().

I thought about adding a watchdog to catch the situation that are not handled... My idea was to do a reset and write something into the log file if timer expires.

After reading some forum entries about the watchdog I'm quite sure that I don't understand the watchdog function.

My code looks like that:

Code: [Select]

void setup() {

 pinMode(ledPin, OUTPUT);

void loop() {


(task manager is a simple sheduler, blinker should blink like in blink-demo)

At runtime I see it wait and then the led starts to blink really fast.

Any help to enlight me? Thanks!


The standard bootloader does not support the watchdog functions. The necessary support code exists, it's just not compiled in by default (why?). You could quite easily burn your own bootloader with watchdog support if you have an ISP.


This means: no way to implement my idea without bootloader change?

Go Up