EmbeddedRelated.com
Forums

USB - LPC2148

Started by "sebastian.kozub" May 21, 2009
Hi, I am Sebastian, and I'm new to this group.
I am trying to ( or I have to ;-) ) write my own USB library for LPC214x. Could you help with some simple samples of using USB? I know that there are smaple USB stack from Keil and IAR but it's hard to understand so big library.
Thanks a lot

An Engineer's Guide to the LPC2100 Series

Hello Sebastian,

> Hi, I am Sebastian, and I'm new to this group.
> I am trying to ( or I have to ;-) ) write my own USB library for LPC214x. Could you help with some simple samples of using USB? I know that there are smaple USB stack from Keil and IAR but it's hard to understand so big library.

why do you want to write your own USB library ?

There is a third one where you can have a look at:

http://wiki.sikken.nl/index.php?title=LPCUSB

the sources are available on sourceforge

http://sourceforge.net/projects/lpcusb

Regards,

Martin

There's also a package at http://jcwren.com/arm that has Bertriks library
full integrated and ready to run, targeted for GCC

--jc

On Thu, May 21, 2009 at 9:56 AM, capiman26061973 wrote:

> Hello Sebastian,
> > Hi, I am Sebastian, and I'm new to this group.
> > I am trying to ( or I have to ;-) ) write my own USB library for LPC214x.
> Could you help with some simple samples of using USB? I know that there are
> smaple USB stack from Keil and IAR but it's hard to understand so big
> library.
>
> why do you want to write your own USB library ?
>
> There is a third one where you can have a look at:
>
> http://wiki.sikken.nl/index.php?title=LPCUSB
>
> the sources are available on sourceforge
>
> http://sourceforge.net/projects/lpcusb
>
> Regards,
>
> Martin
>
>
>


I read somewhere in the mailing list that, Bertriks library does not require
any driver in the host. Is that true? or is it makes mcu seen as HID?

I want to connect my 2148 to non-computer host which does not have any OS.
So, using Bertiks or IAR-example (from NXP web site), does that mather for
this purpose?

On Thu, May 21, 2009 at 5:26 PM, J.C. Wren wrote:

> There's also a package at http://jcwren.com/arm that has Bertriks library
> full integrated and ready to run, targeted for GCC
>
> --jc
>
> On Thu, May 21, 2009 at 9:56 AM, capiman26061973
> >wrote:
> >
> >
> > Hello Sebastian,
> >
> >
> > > Hi, I am Sebastian, and I'm new to this group.
> > > I am trying to ( or I have to ;-) ) write my own USB library for
> LPC214x.
> > Could you help with some simple samples of using USB? I know that there
> are
> > smaple USB stack from Keil and IAR but it's hard to understand so big
> > library.
> >
> > why do you want to write your own USB library ?
> >
> > There is a third one where you can have a look at:
> >
> > http://wiki.sikken.nl/index.php?title=LPCUSB
> >
> > the sources are available on sourceforge
> >
> > http://sourceforge.net/projects/lpcusb
> >
> > Regards,
> >
> > Martin
> >
> >
> >
>
>
>

--
Ercu ESER
http://twitter.com/ercu
http://www.ercueser.com


USB always requires a driver on the host, when you create a HID device
the host OS usually ships with a driver so you don't have to write one
but that
doesn't mean you do not need one. You would need to reference the
documentation for your 'non computer host' to see what it supports.

--Ray

erceser wrote:
> I read somewhere in the mailing list that, Bertriks library does not
> require
> any driver in the host. Is that true? or is it makes mcu seen as HID?
>
> I want to connect my 2148 to non-computer host which does not have any OS.
> So, using Bertiks or IAR-example (from NXP web site), does that mather for
> this purpose?
>
> On Thu, May 21, 2009 at 5:26 PM, J.C. Wren > > wrote:
>
> >
> >
> > There's also a package at http://jcwren.com/arm
> that has Bertriks library
> > full integrated and ready to run, targeted for GCC
> >
> > --jc
> >
> > On Thu, May 21, 2009 at 9:56 AM, capiman26061973
> >
> > >wrote:
> >
> >
> > >
> > >
> > > Hello Sebastian,
> > >
> > >
> > > > Hi, I am Sebastian, and I'm new to this group.
> > > > I am trying to ( or I have to ;-) ) write my own USB library for
> > LPC214x.
> > > Could you help with some simple samples of using USB? I know that
> there
> > are
> > > smaple USB stack from Keil and IAR but it's hard to understand so big
> > > library.
> > >
> > > why do you want to write your own USB library ?
> > >
> > > There is a third one where you can have a look at:
> > >
> > > http://wiki.sikken.nl/index.php?title=LPCUSB
>
> > >
> > > the sources are available on sourceforge
> > >
> > > http://sourceforge.net/projects/lpcusb
>
> > >
> > > Regards,
> > >
> > > Martin
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> Ercu ESER
> http://twitter.com/ercu
> http://www.ercueser.com
if you write your own application with usblib on PC you dont have to install drivers ;-)

On Mon, May 25, 2009 at 12:38 AM, sebastian.kozub
wrote:
> if you write your own application with usblib on PC you dont have to install drivers ;-)
>

You mean libusb-win32 device driver under Windows? That is a driver.
You still need to write the INF file and install the driver.

If you use CDC-ACM, similar thing, you need an INF file for Windows
and you need to install the driver.

For HID, USB mass storage and USB audio, you do not need an INF file
and you do not need to install the drivers as the OS (Windows, Linux,
Mac OS X, etc) have already built-in drivers. But they themselves are drivers.

--
Xiaofan http://mcuee.blogspot.com
See also Microsoft's WinUSB driver and supplied DLL for talking to devices at the app level. personally I still prefer to use user-defined HID.