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.
This commit is contained in:
Zach Eveland 2011-10-27 11:36:10 -04:00
parent be51da6b0d
commit 03e1515a51
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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