Other Parts Discussed in Thread: EK-TM4C1294XL
Tool/software: Code Composer Studio
HI TI,
I programmed ek-tm4c1294xl as USB host bulk to communicate with an out-aged usb 1.1 device. I borrowed static void * USBHMSCOpen(tUSBHostDevice *psDevice) from usbhmsc.c in /opt/ti/tivaware/usblib/host, to enumerate the endpoints,
//
// Allocate the USB Pipe for this Bulk OUT endpoint.
//
g_sUSBHMSCDevice.ui32BulkOutPipe =
USBHCDPipeAllocSize(0, USBHCD_PIPE_BULK_OUT,
psDevice,
psEndpointDescriptor->wMaxPacketSize,
0);
//
// Configure the USB pipe as a Bulk OUT endpoint.
//
USBHCDPipeConfig(g_sUSBHMSCDevice.ui32BulkOutPipe,
psEndpointDescriptor->wMaxPacketSize,
0,
(psEndpointDescriptor->bEndpointAddress &
USB_EP_DESC_NUM_M));
The enumerates show as below,
Bulkout bEndpointAddress = 2, wMaxPacketSize = 64
Bulkin bEndpointAddress = 132, wMaxPacketSize = 64
Interrupt bEndpointAddress = 129, wMaxPacketSize = 16
There are 80 bytes to be bulk transfer to the device. However, it seems the device cannot keep up with the ek-tm4c1294xl bulk transfer speed.
My questions come from two-folds,
1. how to configure ek-tm4c1294xl bulk endpoints to a lower speed?
2. since 80 bytes exceeds the bulk buffer size 64, could this possibly causes problem?
Please advise, thanks in advance
Mike