This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C1294NCPDT: usb_host_msc bulk endpoint wMaxPacketSize has wrong value

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: Code Composer Studio

HI TI,

I am starting on CCS example project "usb_host_msc" for both ek-tm4c1294xl and am335x starter kit respectively. The example projects from starterware and tivaware quite similiar, and both work fine with usb memory stick.

However, I happen to notice bulk endpoint wMaxPacketSize in tivaware/ek-tm4c1294xl is 64, while it is 512 in starterware/am335x starter kit. You may monitor this value through function static void * USBHMSCOpen(tUSBHostDevice *psDevice) inside usbhmsc.c

I plug this memory stick into Ubuntu laptop, and find the value is 512 (which is actually defined by USB standards)

      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               2

Please help to clarification. Thanks in advance

Mike

  • Hi Mike,

    I'm not familiar with the am335x starter kit. If they have 512 bytes as the max transfer size then it most likely means that it is operating at USB high speed using an external PHY via the ULPI interface. Without the external PHY the TM4C129 can only operate at full speed for which 64 bytes is the max for bulk transfer.