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.

USB hang in F28069

Other Parts Discussed in Thread: CONTROLSUITE

I am using custom board with F28069U and trying to Debug example usb_host_msc (controlsuite\v135).
I have connected USB flash drive to F28069 and can successfully read/write.
While testing, if USB connector is shaken or there is loose connection program goes into an endless loop shown below.
Even if USB is reset, connection is not reestablished.
unsigned long USBHCDPipeWrite(unsigned long ulPipe, unsigned char *pucData,unsigned long ulSize)
{
....
....
// Wait for a status change.

while(g_sUSBHCD.USBOUTPipes[ulPipeIdx].eState == PIPE_WRITING){} // here program gets in loop

....
....

}

or at
unsigned long USBHCDPipeRead(unsigned long ulPipe, unsigned char *pucData,unsigned long ulSize){

....
....
// Wait for a status change.

while(g_sUSBHCD.USBINPipes[ulPipeIdx].eState == PIPE_READING){} // here program gets in loop

....
....

}
This is my third post to TI with this problem, but I am unable to get a perfect solution.
http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/245058.aspx
http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/219269.aspx
Please see this video showing how testing is being done.

http://www.youtube.com/watch?v=kuxeDfe_4ZI&feature=youtu.be


In normal USB works perfect, but while I shaken the device, Program goes into an endless loop

Regards,
Naresh