EmbeddedRelated.com
Forums

lpc2468 HID USB

Started by Martijn Broens February 10, 2009
Hi all,

I know it's been here several times before buts o far i could not fin dan
answer.

I was wondering if there's some sample code for setting up a USB HID in the
LPC2468. perhaps that NXP has some code not yet published??

What I'd like to do is set the lpc as a generic hid device using USB_D1
(P0.30 and P0.29) I've already played with the lpc2148 works fine, but the
lpc2468 is something different.

So my question; does anybody have some code and is willing to share or does
anybody know of some good starting point.

The lpusb and tnkernel all cover the smaller parts and sofar I was unable to
port it to the lcp24xx series. Or am I missing something.

Any repley is more than welcome

thanks martijn



An Engineer's Guide to the LPC2100 Series

Hi again,

i just foundout i already had an example from the keil sample tree
for the LPC23xx_24xxSampleSoftware.r5. so i'l try that one and than
port it to rowley (which i use). when done i'll upload it to the
files section.

sorry for the mails

regards martijn

--- In l..., "Martijn Broens" wrote:
>
> Hi all,
>
>
>
> I know it's been here several times before buts o far i could not
fin dan
> answer.
>
> I was wondering if there's some sample code for setting up a USB
HID in the
> LPC2468. perhaps that NXP has some code not yet published??
>
>
>
> What I'd like to do is set the lpc as a generic hid device using
USB_D1
> (P0.30 and P0.29) I've already played with the lpc2148 works fine,
but the
> lpc2468 is something different.
>
>
>
> So my question; does anybody have some code and is willing to share
or does
> anybody know of some good starting point.
>
> The lpusb and tnkernel all cover the smaller parts and sofar I was
unable to
> port it to the lcp24xx series. Or am I missing something.
>
>
>
> Any repley is more than welcome
>
>
>
> thanks martijn
>
>

> i just foundout i already had an example from the keil sample tree
> for the LPC23xx_24xxSampleSoftware.r5. so i'l try that one and than
> port it to rowley (which i use). when done i'll upload it to the
> files section.
>
> sorry for the mails
>
> regards martijn

Martijn:

Were you able to get this working on the 2468? I'm using Crossworks myself, and am always a bit frustrated by the fact that everything produced by NXP seems to be full of Keil extensions, etc., though I've noticed in the past couple months that they've added Crossworks projects to a couple application notes.

If you don't mind uploaded this, I suspect a lot of other people would appreciate it. I just got HID working on the 2148, but now I need to get it running on a 2478 as well.

Kevin

It's easy to do a HID Joystick from these sources?

2009/6/16 Kevin Townsend

> > i just foundout i already had an example from the keil sample tree
> > for the LPC23xx_24xxSampleSoftware.r5. so i'l try that one and than
> > port it to rowley (which i use). when done i'll upload it to the
> > files section.
> >
> > sorry for the mails
> >
> > regards martijn
>
> Martijn:
>
> Were you able to get this working on the 2468? I'm using Crossworks myself,
> and am always a bit frustrated by the fact that everything produced by NXP
> seems to be full of Keil extensions, etc., though I've noticed in the past
> couple months that they've added Crossworks projects to a couple application
> notes.
>
> If you don't mind uploaded this, I suspect a lot of other people would
> appreciate it. I just got HID working on the 2148, but now I need to get it
> running on a 2478 as well.
>
> Kevin
>
>
>

--
Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 91 120 1798
+34 636 52 25 69
skype: ajoajoajo


> It's easy to do a HID Joystick from these sources?

I was able to get the LPCUSB code working in a day on an LPC2148 and with Windows (and I'm pretty new to this), and the included HID example uses a joystick as an 'report' example. But ... while the LPCUSB stack works well on a 2148 more or less out of the box, whether it's 'easy' to make an HID Joystick really depends on you. Do you know how to work with interrupts, etc.? I'd say making a USB joystick isn't hard core rocket science, but there is definately some know-how involved in customising the HID reports, writing the code to handle the joystick feedback/interrupts, etc. I can't say whether that's relatively easy for you or not, but working with GCC (and Rowley's Crossworks in my case) I think LPCUSB is probably the 'easiest' way to go.

I'm still interested in knowing if the original poster had any luck getting HID working on the 2468/78 in GCC, though, since I have no real experience working with Keil extensions, and have been a bit frustrated trying to remove them all.