Skip to content

Commit e97d3ad

Browse files
committed
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.
1 parent 2767419 commit e97d3ad

File tree

1 file changed

+1
-1
lines changed
  • hardware/arduino/cores/arduino

1 file changed

+1
-1
lines changed

hardware/arduino/cores/arduino/CDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void Reboot()
2727
{
2828
USB.detach();
2929
cli();
30-
asm volatile("jmp 0x7800"); // jump to bootloader - DiskLoader takes up last 2 kB
30+
asm volatile("jmp 0x7000"); // jump to bootloader - DiskLoader lives in the last 4kB of Flash
3131
}
3232

3333
typedef struct

0 commit comments

Comments
 (0)