Hello Everyone,
We have designed custom boards using TI microcontroller TM4C1233.
The microcontroller's USB module is programmed as a bulk device using one IN and one OUT pipe.
The USB part of the board's firmware is based on TI Tiva bulk example and the PC side receives data using Lmusb.dll on top of WinUSB driver.
The PC application receives data using the following line:
dwError = ReadUSBPacket(MainForm->hUSB, szBuffer, sizeof(szBuffer), &ulRead, 450, NULL);
The problem is that the receiver often times out and then the board reports USBD_STATUS_STALL_PID condition on the IN pipe.
Can somebody explain what conditions can cause the IN pipe stall if the Tiva USB library function USBDBulkPacketWrite is used?
Every hint would be appriciated.
The microcontroller is labeled:
980 YF
TM4C1233
H6PGEI
38AK3TW
G4
Thank you very much in advance
Best Regards
Nils