[gnoduino: 198/237] changes in core and boards.txt to support new bootloader



commit 245afc495291d860ca60fc884f300a71ad672ed0
Author: Zach Eveland <zeveland blacklabel-development com>
Date:   Thu Oct 27 11:36:10 2011 -0400

    changes in core and boards.txt to support new bootloader
    
    old bootloader could fit in only 2 kB of flash.  new version has to have a 4 kB block - jump-to address and boards.txt must reflect this.

 arduino/boards.txt            |    4 ++--
 arduino/cores/arduino/CDC.cpp |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/arduino/boards.txt b/arduino/boards.txt
index 3e99f81..aa5c70d 100644
--- a/arduino/boards.txt
+++ b/arduino/boards.txt
@@ -146,10 +146,10 @@ mega.build.variant=mega
 
 leonardo.name=Arduino Leonardo
 leonardo.upload.protocol=arduino
-leonardo.upload.maximum_size=30720
+leonardo.upload.maximum_size=28672
 leonardo.upload.speed=1200
 leonardo.bootloader.low_fuses=0xde
-leonardo.bootloader.high_fuses=0xda
+leonardo.bootloader.high_fuses=0xd8
 leonardo.bootloader.extended_fuses=0xcb
 leonardo.bootloader.path=nuevo_diskloader
 leonardo.bootloader.file=DiskLoader.hex
diff --git a/arduino/cores/arduino/CDC.cpp b/arduino/cores/arduino/CDC.cpp
index 14a0eae..b8df09f 100644
--- a/arduino/cores/arduino/CDC.cpp
+++ b/arduino/cores/arduino/CDC.cpp
@@ -27,7 +27,7 @@ void Reboot()
 {
 	USB.detach();
 	cli();
-	asm volatile("jmp 0x7800");		// jump to bootloader - DiskLoader takes up last 2 kB
+	asm volatile("jmp 0x7000");		// jump to bootloader - DiskLoader lives in the last 4kB of Flash
 }
 
 typedef struct



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]