Hi,I'm currently developing a USB Host Application with the DK-LM3S9B96
If I use USBHCDPipeReadNonBlocking on a bulk in endpoint I always get zero returned (data should be avaible on this pipe), because the USB_CSRL0_RXRDY Bit is not set (in USBEndpointDataGet).
There are also no USB IN Bulk transfers on the USB bus ( I'm using a Ellisys Usb Explorer for sniffing purposes).
If I use the blocking version (USBHCDPipeRead) everything works fine.
I also registered a callback function with the In-Pipe (USBHCDPipeAlloc), which is always and only returning 9 (USB_EVENT_SCHEDULER). What should that event tell me?
Could any of you guys tell me what I'm doing wrong? It would be very much appreciated. Thanks!
Patrick
Additionally I could mention that I'm running USB Host-Only mode and that the device is vendor specific
Hello,
I have the same problem. Did someone solve it?
On an USB_EVENT_RX_AVAILABLE the RxPktRdy bit (USB_CSRL0_RXRDY) is not set and no data will be read in USBEndpointDataGet.
Thanks for your help, Giovanni
You have to call repeatedly USBHCDPipeSchedule() in a task and register a callback function for that endpoint (USBHCDPipeAlloc). In that callback you can read the data non blocking (USBHCDPipeReadNonBlocking on event USB_EVENT_RX_AVAILABLE)