Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: New Bug in TeensyDuino 1.41

  1. #1
    Senior Member
    Join Date
    May 2015
    Posts
    115

    New Bug in TeensyDuino 1.41

    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:
    / **************************************************************
    //   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
            0x01, 0x01,                             // bcdUSB
    #ifdef DEVICE_CLASS
            DEVICE_CLASS,                           // bDeviceClass
    #else
    
    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.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	USBVersionWrong.png 
Views:	58 
Size:	10.9 KB 
ID:	12795  

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,576
    Opps, yup, a mistake. Fixed.

    https://github.com/PaulStoffregen/co...6abb064ee009bb

    Pretty sure it's been like this all along. I just looked at 1.30 (from June 2015) and it was this way at least that far back.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •