-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I'm running tycmd version 0.9.8 on a Raspberry Pi. I have several Teensy 3 boards attached and found that I could use tycmd to upload new code to some of the boards but not others. On the boards that failed I would get a timeout error. I finally figured out the failing boards had last been flashed using Teensyduino 1.53. Boards flashed with Teensyduino 1.57 or later worked fine.
The Teensies are configured as MIDI-only so they connect to the Pi as HID raw devices. During upload tycmd calls teensy_open_interface inlibty/class_teensy.c and for HID devices that routine sends the feature report 0xAB 0xBA 0xCD 0xDC. A Teensy flashed with a core from Teensyduino 1.53 will not acknowledge that report leading to a USB timeout. A Teensy flashed with core code from Teensyduino 1.57 or later will work fine.
Is it necessary to send that report during an upload? I removed it and was able to upload without issue (which is good since it's physically difficult to access the Teensies).
BTW, the same problem prevents tycmd reset from working.