Go to file
Zach Eveland 7948125208 Leonardo now checks whether bootloader should be run after a WDT event.
Before the sketch initiates an auto-reset for upload it pokes a magic word into a specific RAM address.  On starting the bootloader checks this address.  If it finds the magic word it knows the bootloader code should run. If not it jumps straight back to sketch.

Test in a sketch by adding to setup():
wdt_enable(WDTO_2S);

Sketch should upload, start, run for two seconds, WDT, and sketch should restart (not bootloader).

Had to cut out unused descriptor code to make the bootloader still fit in 4k.
2012-02-14 12:17:30 -05:00
bootloaders Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
cores/arduino Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
firmwares Added latest firmware for usbserial (not combined with DFU) 2011-11-12 12:57:30 +01:00
variants changed Leonardo bootloader and sketch PID values again (now 0x0701 for bootloader, 0x0801 for sketch) 2012-02-13 00:10:16 -05:00
boards.txt Changed Leonardo fuses to select longer clock startup time. 2012-02-14 10:00:55 -05:00
programmers.txt Adding links to documentation of boards.txt and programmers.txt files. 2012-01-04 16:01:52 -05:00