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.
Hi,
I am Facing an issue regarding
That will result to struck the controller in infinite loop(USB APIS). unable to return me current USB Mode(Host/device/None). whick looks like that system is hanged however Interrupts in interrupt vector priority table above USBOTGInterruptHandler is working fine.
But i don't know the root cause y it get struck in USB APIs & can't be revive ever?
Please help me (Popups & Display information that DO'NOT REMOVE USB WHILE WRITING & READING kind of solutions are not accepted in our development because user can do anything.)
so, we have to take care of such conditions also.
Hi Amit,
Complete system look like hanged. When i debug i came to know that it is in USBHostenum.c, usb.h kind of files.There is no particular point where it get struck always found in different files of Usb host apis and also came to know that all interrupts in startup_ccs.c file above USBOTGinterruptHandler is working but not USBOTG handler.
Regards
Vidushi
Hi Amit,
Thanks for your early response.
I am using USB OTG mode. Is there any particular APIs of yours that i can use directly? or in a simple way PeripheralEnable ?
Regards
Vidushi
Hi Amit
I tried that you suggest me in the last attaching section of code i patched in PipeRead
if(g_sUSBHCD.ui32IntEvents & (INT_EVENT_DISCONNECT |
INT_EVENT_VBUS_ERR |
INT_EVENT_POWER_FAULT))
{
//
// Set the pipe state to error.
//
g_sUSBHCD.psUSBINPipes[ui32PipeIdx].iState = ePipeError;
//
// Needs to be set to exit out of large while loop.
//
ui32RemainingBytes = 0; //Patch
SysCtlPeripheralDisable(SYSCTL_PERIPH_USB0); //Patch
SysCtlPeripheralReset(SYSCTL_PERIPH_USB0); //Patch
SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0); //Patch
Init_USB_OTG(); //Reinitialize Port Pins Feature Set and all
break;
}
Due to this patch i am able to detect right Mode of USB OTG but USB Downloading & uploading not working after inserting USB host again it got struck in USBHMSCDriveReady() function When trying for Enumeration_State.
Can you suggest anything for this also.
Regards
Vidushi
Hi Amit,
Ok ill try that also but my main concern is after babble interrupt USB Detects But Unable to do Read write got struck in USBHMSCDriveReady function in USBhmsc.c API??
Regards
Vidushi