I am working on AM355x starter-ware board. I am trying to detect pen drive and performing read/write operations with the help of usb_host_msc.c code.
I am facing following problems:
1) It is working fine when storage device size is 4 GB but I am getting error when device is 8 GB or above. It fails at USBHSCSIRequestSense() stage which is called inside the USBHMSCDriveReady() function.
2) The example code usb_host_msc.c reset the machine after ejection of pen drive. But I don't want to reset my whole machine. So, after ejection of pen drive
i am doing the following activities.
// Closing
USBHMSCDriveClose(g_ulMSCInstance);
// Reopening
g_ulMSCInstance = USBHMSCDriveOpen(USB_INSTANCE, 0, MSCCallback);
But in my code. I am not getting any interrupt when I am again plugging the pen drive.
Please help.