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
So it seems that overcurrent pin is also important. i had not used it, because it was not needed in lpc1768