Hi,

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 fourth post in forum with this problem, but I am not getting perfect solution. This is my pending issue for many times. please help me to solve this problem.

 http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/245058.aspx
http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/219269.aspx

http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/262463.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