This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC1788 USB host controller using RL-USB

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

Parents
  • 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.

Reply
  • 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.

Children