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

lpc1768 no USB Host component?

Somewhat related to:

https://community.arm.com/developer/tools-software/tools/f/keil-forum/34159/cmsis-driver-usb-host-is-missing-error

I've managed to successfully connect to a PC USB host when running the lpc as a USB device. Now I need it to be a USB host (CDC/VirtualCOM) for another mcu (dspic30f6013a). I've looked at the samples that come with (are downloadable through) keil and it seems there isn't a CDC USB host component.

Mass storage USB host sample components:

My current project is missing the USB host component:

Do you see any conflicting components that might prevent the host component from being used? 

The lpc can be used as both a usb host and a device, right?

https://community.arm.com/developer/tools-software/tools/f/keil-forum/39003/usb-host-and-device-at-the-same-time-lpc2478

so that shouldn't be the reason. 

Given that the project is somewhat old (2013) is it possible for the components list not to have been updated and as such is missing the USB host? I remember reading that the host component was not always available. It seems uinlikely ... 

The lpc needs to connect to the dspic30f601a and read a byte stream similar to:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
__NO_RETURN void app_main (void *arg);
/*------------------------------------------------------------------------------
* Application
*----------------------------------------------------------------------------*/
__NO_RETURN void app_main (void *arg) {
usbStatus usb_status; // USB status
usbStatus hid_status; // HID status
int status;
int ch; // Character
uint8_t con = 0U; // Connection status of keyboard
(void)arg;
status = stdout_init (); // Initialize retargeted stdout
if (status != 0) {
for (;;) {} // Handle stdout init failure
}
usb_status = USBH_Initialize (0U); // Initialize USB Host 0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0