Pages: [1]   Go Down
Author Topic: Bootloader should disable watchdog...  (Read 704 times)
0 Members and 1 Guest are viewing this topic.
SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6369
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's possible for a runaway (or otherwise ill-advised) sketch to enable the watchdog timers in such a way that the bootloader will not get a chance to run past its very initial led-blinking "pauses."  This can make the arduino apparently unusable - the symptom is that the pin13 LED will flash "rapidly" as the bootloader is continually reset by the watchdog, and it never gets to the portion of the bootloader that actually uploads code.

Therefore, I think the bootloader should take the precaution of disabling the watchdog before it does anything else!

Related thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234338562
Logged

Pages: [1]   Go Up
Jump to: