aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/optiboot/pin_defs.h
diff options
context:
space:
mode:
authorWestfW <westfw@gmail.com>2011-06-13 19:07:07 -0700
committerDavid A. Mellis <d.mellis@arduino.cc>2011-10-10 12:11:16 -0400
commit0d9377c729d3dfe4719bab1631587bfc5d444b60 (patch)
treefdf18f6c101c39d58d9936e38a415fe28053d7d9 /bootloaders/optiboot/pin_defs.h
parente74e76ce14724fc3ea0a49e291de9b707825a576 (diff)
http://code.google.com/p/arduino/issues/detail?id=368
Optiboot does not support ArduinoasISP programmer. When avrdude runs and talks to an arduino running ArduinoISP, it needs the optiboot (entered due to auto-reset) to abort and start the ArduinoISP "application" when it sees communications at the wrong serial speed. Unfortunately, optiboot treats all unrecognized command characters as "no-ops" and responds/loops for more commands, leading to a nice loop that never gets to the sketch. This patch causes characters received with Framing errors (the most likely error for speed mis-matches) to NOT reset the watchdog timer (normally done in getch()), which will cause the application to start if it continues for "a while." (tested. Works! Running ArduinoISP at speeds as high as 57600 still causes the bootloader to start the sketch (although it fails later on for other reasons.)) (cherry picked from commit e81c1123b624b6cac7da018c9c786700f3152bc9)
Diffstat (limited to 'bootloaders/optiboot/pin_defs.h')
-rw-r--r--bootloaders/optiboot/pin_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootloaders/optiboot/pin_defs.h b/bootloaders/optiboot/pin_defs.h
index 313e453..27d7772 100644
--- a/bootloaders/optiboot/pin_defs.h
+++ b/bootloaders/optiboot/pin_defs.h
@@ -21,6 +21,7 @@
#define UDR0 UDR
#define UDRE0 UDRE
#define RXC0 RXC
+ #define FE0 FE
#define TIFR1 TIFR
#define WDTCSR WDTCR
#endif