Dear friends,
I have designed a LPC1788 board and I am trying to develop a program to use its USB host controller. I am using RL-USB and RL-FlashFS file system. The layout is similar that of the embedded artist's board, located in: C:\Keil_v5\ARM\Boards\Embedded Artists\LPC1788-32 Developers Kit\RL\USB\Host\MSD_File
The problem is that when I use finit function, it returns value 1 which corresponds to the following error: IO ERROR: IO/driver initialization field, or there is no media, or media initialization field.
When I set breakpoints at the low level configuration (uhsbh_ohci_lpc177x_8x.c) the USB is powered in the function usbh_ohci_hw_pins_config (the USB_PPWR2 pin goes high), but then when the following function is executed, the USB power is cut off: usbh_ohci_hw_reg_wr
I was wondering if this is a normal behavior of the library, because I am unable to put a file system on flash memory device.
best regards
This is the same Problem as mine but how hard I've tried ,I have found no solution, it is in case that rl-usb have been customized for lpc1768 which work well.
Actually I found the problem. It turned out that the footprint of my USB female connector was wrong, so I was connecting VBus to ground (Short circuit). You can check yours too. Check if the Overcurrent pin of your USB power switch IC goes low. If it does, bang there is something wrong with your hardware.
So it seems that overcurrent pin is also important. i had not used it, because it was not needed in lpc1768