I have configured USB Host controller of AT91SAM9G45 board. I have enabled USB Flash drive 0 in File_config.c. OHCI is supported in our processor. Hence i have selected OHCI as USB host0 Controller interface in usb_config.c file.
When I call finit("U0") it is returning value 1. Calling usbh_init(0) returns 1. When i call usbh_engine(0) and then read status through usbh_msc_status(0,0), status always returns zero whether i connect usb pen drive or not.
What event will happen when a usb device is connected in host port ? The usb pen drive is getting power.(As i configured power gpio pin) How do i debug the application.
I have taken LPC RL-USB host sample project located in this keil path as base project : E:\Keil\ARM\Boards\Keil\MCB1700\RL\USB\Host\MSD_File.