Hi,
I'm trying to get the examples/evmOMAPL138/usb_dev_serial sample going on the IAR (EWARM) toolchain. It all compiles correctly, and I was able to run the UART echo test, so I'm confident in my environment and port. But the USB serial code hangs waiting for clocks:
UsbPhyOn() {
// ..
while (!(HWREG(CFGCHIP2_USBPHYCTRL) & CFGCHIP2_PHYCLKGD));
}
Examining the registers at this point reveals:
CFGCHIP2.USB0REF_FREG = 0
So my questions are:
1) What part of the code is supposed to setup the USB clocks?
2) What clock is this sample intended to use? USB 2.0 or 1.1? 12MHz, 28MHz, or 48MHz?
3) What PC-side driver is intended to be used with the usb serial sample?
Thanks,
m++