Correct MCU/Board relationship
authorOsamu Aoki <osamu@debian.org>
Sun, 5 Dec 2021 03:15:08 +0000 (12:15 +0900)
committerOsamu Aoki <osamu@debian.org>
Sun, 5 Dec 2021 04:34:49 +0000 (13:34 +0900)
commitba7c69af865ebfbd04a6764379040d7a37b6dc28
treeacb5ac1e4fe71d0574071ebfb3cd21162285bc27
parentd10535a4bb1d94b7151f51d4d204e9d88795f66b
Correct MCU/Board relationship

https://www.pjrc.com/teensy/jump_to_bootloader.html (2021/Dec)

Each board has a different beginning address for the bootloader.

Original bootloaders for Teensy 2 comes with a proprietary 512 Byte HID
bootloader called halfkey.  So the address needs to be adjusted for
bigger LUFA bootloaders.  For free 512 Byte bootloaders for ATMEGA32U4,
see:

  * https://github.com/volium/nanoBoot    (original)
  * https://github.com/osamuaoki/nanoBoot (LED mod, me)
  * https://github.com/sigprof/nanoBoot   (Mac mod)

(I have no information on other original bootloaders)

PJRC site lists:

Model        Chip          Jump Address   Estimated max bootloader size
                           (byte address)

Teensy   1.0 AT90USB162       0x3E00      ( 512 Byte max)
Teensy++ 1.0 AT90USB646       0xFC00      (2048 Byte max)

Teensy   2.0 ATMEGA32U4       0x7E00      ( 512 Byte max)
Teensy++ 2.0 AT90USB1286     0x1FC00      (2048 Byte max)

LED pins are always at D6 but its polarity changed from Teensy/Teensy++
to Teensy2/Teensy2++.

https://www.pjrc.com/teensy/prescaler.html
 All use F_CPU = 16000000

Signed-off-by: Osamu Aoki <osamu@debian.org>
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
BuildTests/BoardDriverTest/BoardDeviceMap.cfg
LUFA/Common/BoardTypes.h
LUFA/Drivers/Board/AVR8/TEENSY/Board.h
LUFA/Drivers/Board/AVR8/TEENSY/LEDs.h
LUFA/Drivers/Board/Board.h
LUFA/Drivers/Board/LEDs.h