1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-03 14:24:15 +01:00
Arduino/hardware/arduino/bootloaders/caterina_LUFA
Zach Eveland 4c3aa52258 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
..
Caterina.c Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
Caterina.h Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
Caterina.hex Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
Descriptors.c Leonardo now checks whether bootloader should be run after a WDT event. 2012-02-14 12:17:30 -05:00
Descriptors.h initial checkin of LUFA 111009 CDC bootloader 2012-01-19 20:04:55 -05:00
makefile proper bootloader timeout and LED control in Leonardo bootloader 2012-02-03 23:15:04 -05:00