Content originally posted in LPCWare by robekras on Mon Feb 17 08:07:23 MST 2014
Hello e135193
lpcopen 1.03 contains USB examples for connecting HID (and some other devices).
lpcopen 2.07 doesn't contain the USB examples.
Unfortunately the current code examples for USB in lpcopen 1.03 supports only port 1 of the 17xx controllers.
Although you have two ports (port 1 and port 2) but only one USB core.
That means you can only connect the mouse or the keyboard to port 1.
Some people are waiting for the new release which may hopefully support both ports, so you can connect mouse on one port and keyboard to the other.
As I didn't have time to wait another two or six weeks for a new release which may (or may not) contain code which supports both USB ports, I tried to fix the code by myself. That have been some hours with a lot of typing, but fortunately with success.
The necessary changes are very simple, but nevertheless it's a lot of typing. Mostly you have to assign an additional parameter (portnumber) to most of the functions and extending some one dimensional arrays into two dimensional arrays.
So it's really hard to understand why nxp didn't got it managed till today.
Robert