Arduino/hardware/arduino/avr
Martino Facchin 4c901d3f9f [AVR] Discover newer bootloader at runtime
Replaces #4280, only checks for the bootloader once

Tested with Hoodloader2, should work with every LUFA-derived bootloader released after 2014 (.apitable_signatures section must be placed at end of the flash)

BootloaderAPITable.S :

.global BootloaderAPI_Signatures
BootloaderAPI_Signatures:

    .long BOOT_START_ADDR ; Start address of the bootloader
    .word 0xDF00 ; Signature for the CDC class bootloader
    .word 0xDCFB ; Signature for a LUFA class bootloader

makefile:

BOOT_API_LD_FLAGS    += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures,  BootloaderAPI_Signatures,  8)
2016-04-06 17:41:06 +02:00
..
bootloaders Added support to Genuino boards (drivers, boards.txt entries, bootloaders) 2015-08-27 10:40:03 +02:00
cores/arduino [AVR] Discover newer bootloader at runtime 2016-04-06 17:41:06 +02:00
firmwares Added support to Genuino boards (drivers, boards.txt entries, bootloaders) 2015-08-27 10:40:03 +02:00
libraries Update SoftwareSerial.cpp 2016-04-05 15:10:46 -04:00
variants [AVR] Discover newer bootloader at runtime 2016-04-06 17:41:06 +02:00
boards.txt Added support to Genuino boards (drivers, boards.txt entries, bootloaders) 2015-08-27 10:40:03 +02:00
platform.txt Add comment for archive_file_path 2016-04-04 13:27:47 -04:00
programmers.txt Support the Atmel STK500 development board for ISP 2015-06-05 18:43:25 +02:00