patchAVR Downloader/UploaDEr - Patches: patch #10150, Add support for Teensy bootloader


You are not allowed to post comments on this tracker with your current authentication level.

patch #10150: Add support for Teensy bootloader

Submitter:  Marius Greuel <mariusgreuel>
Submitted:  Sun 28 Nov 2021 10:17:31 PM UTC
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Sun 28 Nov 2021 10:17:31 PM UTC, original submission:  

This patch adds support for the Teensy HalfKay bootloader:

This programmer supports the AVR devices only:
- Teensy 1.0 (AT90USB162)
- Teensy 2.0 (ATmega32U4)
- Teensy++ 1.0 (AT90USB646)
- Teensy++ 2.0 (AT90USB1286)

Typically command-line usage is
avrdude -c teensy -p m32u4 -x wait -V -F -U flash:w:main.hex:i

The -V switch is required because the bootloader does not support reading.

Also, on my Linux box, libhidapi does not return the proper HID usage page, which is used by the bootloader to identify devices. When a HID usage of zero is reported, the programmer defaults to a zero signature, which then requires the -F switch. Not sure whether there is a Linux libhidapi implementation that actually works. Windows works correctly.

Note that the udev rules need to be changed, too:

# Teensy Bootloader
SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="0478", TAG+="uaccess"

Let me know what you think.

Marius Greuel <mariusgreuel>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #52373:  avrdude-teensy-v1.patch added by mariusgreuel (24KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mariusgreuel (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-28 mariusgreuel Attached File- Added avrdude-teensy-v1.patch, #52373

    Back to the top

    Powered by Savane 3.9