Other Parts Discussed in Thread: OMAPL138, OMAP-L138
Hi,
I have an omapl138, and want to implement the function which can communicate with a Mass storage class (eg a flash driver).
First, I initialize the controller according to usb_init() in example 1(page 81) of SPRUFM9F. Since OMAP should serve as a host, I change the last part to
usb0.POWER = USB0_POWER_HSEN; // a high speed host
usb0.DEVCTL |= USB0_DEVCTRL_SESSION; // let the host in session
But when I put a flash driver into it, I can not receive any interrupts. I am wondering what else I need to do to receive the interrupts for host mode.
More issues need to be clarified.
1) in the usb_init(), after I set usb0.DEVCTL |= USB0_DEVCTRL_SESSION and usb0_ID is gounded down, the usb controller would be in host mode.
2) After the usb controller is in host mode, what else need to be done such that I can receive the host interrupts?
3) And if a flash driver is plugged in, what kinds of interrupts I should receive?
4)Can someone explain the detail of RESET_BABBLE?
5) Can TI provide more sample code about OTG progamming?
Thanks,
Sheng