We are developing a board with OMAP-L138.
We are using usb_dev_bulk example of OMAPL138_StarterWare_1_10_04_01 to use USB0 as usb device.
But After calling USBDBulkInit() function, this example is pended in while loop in my board.
------------------------------------------------------
...
USBDBulkInit()
...
while(1)
{
....
}
------------------------------------------------------
So we check BDEVICE bit value in the device control register(DEVCTL) in our board and OMAP-L138 SOM-M1 (EVM) board. The datasheet of OMAP-L138 say that this read-only bit indicates whether the USB controller is operating as the 'A' device or the 'B' device.
The EVM board gets this bit as '1', but Our board gets it as '0'. I found that the cable that we use makes the USB controller operate as the 'A' device or the 'B' device. but i don't understand why these boards get different value even though using Mini-B Type cable in two board.
I think that this causes this problem in my board because i can only find different thing between the EVM board and our board.
So Please tell me anything to able to cause this problem and the way to solve this problem. please.
Thanks,
Young-Geun, LIM