mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
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:
parent
be51da6b0d
commit
03e1515a51
@ -146,10 +146,10 @@ mega.build.variant=mega
|
|||||||
|
|
||||||
leonardo.name=Arduino Leonardo
|
leonardo.name=Arduino Leonardo
|
||||||
leonardo.upload.protocol=arduino
|
leonardo.upload.protocol=arduino
|
||||||
leonardo.upload.maximum_size=30720
|
leonardo.upload.maximum_size=28672
|
||||||
leonardo.upload.speed=1200
|
leonardo.upload.speed=1200
|
||||||
leonardo.bootloader.low_fuses=0xde
|
leonardo.bootloader.low_fuses=0xde
|
||||||
leonardo.bootloader.high_fuses=0xda
|
leonardo.bootloader.high_fuses=0xd8
|
||||||
leonardo.bootloader.extended_fuses=0xcb
|
leonardo.bootloader.extended_fuses=0xcb
|
||||||
leonardo.bootloader.path=nuevo_diskloader
|
leonardo.bootloader.path=nuevo_diskloader
|
||||||
leonardo.bootloader.file=DiskLoader.hex
|
leonardo.bootloader.file=DiskLoader.hex
|
||||||
|
@ -27,7 +27,7 @@ void Reboot()
|
|||||||
{
|
{
|
||||||
USB.detach();
|
USB.detach();
|
||||||
cli();
|
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
|
typedef struct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user