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

RL-USB for LPC1788- HOST driver 1 problem

Dear friends,

I am developing an application using keil's RL-USB library to turn the microcontroller into a USB host controller so that I can read a flash memory device.

I am at the very beginning down the road and I want to use the keil's sample for LPC1788 board of embedded artists. the project is located at:
C:\Keil_v5\ARM\Boards\Embedded Artists\LPC1788-32 Developers Kit\RL\USB\Host\MSD_File

I have designed my own board (I am not using embedded artists' board) and I have used USB2 as the host controller, not USB 1. Therefore I need to change the HOST controller in USB_Config.c from USB HOST 0 to USB HOST 1. I have done all the programming and everything is fine. There is just one problem that prevents the project from being compiled correctly:
.\Obj\MSD_File.axf: Error: L6218E: Undefined symbol usbh1_hcd_ohci (referred from usb_config.o).

It is important to say that the program is compiled successfully when USB HOST 0 is chosen in USB_Config.c. I was wondering if anybody has faced the same problem and solved it before.

Parents
  • Hey there,

    I am also developing an application using Keil's RL-USB library to turn the microcontroller into a USB host controller for read a flash memory device. I need only the USB2 as host, USB1 I do not use.

    I use the LPC1788 oem board from embedded artists mounted on a own board. I know, that the hardware works fine (tested with another program not based on Keil's RL-USB).

    I've tried to get the sample program running. Without any modification at the program, I can compile it successfully, but while running the program it stays in the function USBH_Initialize(0) forever.

    Changing the Port Functionality Configuration in RTE_Device.h from (U1 = host, U2 = host) to (U1 = device, U2 = host) helps to pass successfully the USBH_Initialize(0) function. However the Program is not able to recognise the USB flash memory device. The function USBH_MSC_GetDeviceStatus(1) always return usbDeviceError.

    Are there any settings I've missed to change?
    My hardware uses only the D+ and D- line and none of the additional pins (power control/overcurrent/LED). Is it possible, that the program needs one of these pins for a successful USB connection?

    Could any one successfully run the example program and can give me a hint how to get it running?

Reply
  • Hey there,

    I am also developing an application using Keil's RL-USB library to turn the microcontroller into a USB host controller for read a flash memory device. I need only the USB2 as host, USB1 I do not use.

    I use the LPC1788 oem board from embedded artists mounted on a own board. I know, that the hardware works fine (tested with another program not based on Keil's RL-USB).

    I've tried to get the sample program running. Without any modification at the program, I can compile it successfully, but while running the program it stays in the function USBH_Initialize(0) forever.

    Changing the Port Functionality Configuration in RTE_Device.h from (U1 = host, U2 = host) to (U1 = device, U2 = host) helps to pass successfully the USBH_Initialize(0) function. However the Program is not able to recognise the USB flash memory device. The function USBH_MSC_GetDeviceStatus(1) always return usbDeviceError.

    Are there any settings I've missed to change?
    My hardware uses only the D+ and D- line and none of the additional pins (power control/overcurrent/LED). Is it possible, that the program needs one of these pins for a successful USB connection?

    Could any one successfully run the example program and can give me a hint how to get it running?

Children