I’ve for a Mega 2560 and used the following in my code:
#include <avr/wdt.h> .... wdt_enable(WDTO_8S); ..... wdt_reset();
After compiling and uploading my program would no longer run - when I plug the arduino in now the led just flashes continuously. I cant even upload the blink a led example. =(
First why did this break my program, and more importantly how do I recover from this?