[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #10150] Add support for Teensy bootloader
From: |
Marius Greuel |
Subject: |
[patch #10150] Add support for Teensy bootloader |
Date: |
Sun, 28 Nov 2021 17:17:32 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.34 |
URL:
<https://savannah.nongnu.org/patch/?10150>
Summary: Add support for Teensy bootloader
Project: AVR Downloader/UploaDEr
Submitted by: mariusgreuel
Submitted on: Sun 28 Nov 2021 10:17:31 PM UTC
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch adds support for the Teensy HalfKay bootloader:
https://www.pjrc.com/teensy/halfkay_protocol.html
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 28 Nov 2021 10:17:31 PM UTC Name: avrdude-teensy-v1.patch Size:
24KiB By: mariusgreuel
<http://savannah.nongnu.org/patch/download.php?file_id=52373>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/patch/?10150>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch #10150] Add support for Teensy bootloader,
Marius Greuel <=