Hi,
I have AM437x starter kit hardware and have been trying to run the usb_host example from: pdk_am437x_1_0_0\packages\ti\drv\usb\example\usb_host\
After much frustration I've finally got the example to work by adding the extra conditional "retStat == S_PASS" in the do ... while loop in FSShellAppUtilsProcess as
int32_t FSShellAppUtilsProcess(void)
{
uint32_t spinProcess = TRUE;
int32_t retStat = E_FAIL;
do
{
.
.
.
} while(TRUE == spinProcess && retStat == S_PASS);
return retStat;
}
Without the extra conditional, the code was stuck in the loop inside FSShellAppUtilsProcess which meant that USBHCDMain wasn't being called, which referring to - http://processors.wiki.ti.com/index.php/StarterWare_USB
>> In order to complete the enumeration process, the host controller driver also requires that the application periodically call the USBHCDMain() function
So is this a bug in the pdk usb_host sample code or have I misunderstood?
Thanks
Nick