New Bug in TeensyDuino 1.41

Elmue

Well-known member
Hello Paul

I discovered a new little bug in TeensyDuino 1.41 which was not there before.

In my previous TeensyDuino version you have defined the USB version as 2.0.
Now you wanted to change this into 1.1.
I don't know why you did this.
Version 2.0 would also be OK.
But you did this incorrectly.

in usb_desc.c

Code:
[FONT=Courier New]/ **************************************************************
//   USB Device
// **************************************************************

#define LSB(n) ((n) & 255)
#define MSB(n) (((n) >> 8) & 255)

// USB Device Descriptor.  The USB host reads this first, to learn
// what type of device is connected.
static uint8_t device_descriptor[] = {
        18,                                     // bLength
        1,                                      // bDescriptorType
[B]        0x01, 0x01,                             // bcdUSB[/B]
#ifdef DEVICE_CLASS
        DEVICE_CLASS,                           // bDeviceClass
#else
[/FONT]
THE USB version is BCD encoded.
You define the USB version as 1.01.
This version does not exist.
Correct would be 1.10

When you connect a Teensy USB device and start USBLyzer it shows the attached error message.
 

Attachments

  • USBVersionWrong.png
    USBVersionWrong.png
    10.9 KB · Views: 126
Back
Top