EmbeddedRelated.com
Forums

USB Host controller for LPC17xx

Started by prab...@yahoo.co.in June 22, 2011
Hi all,
We are developing USB host controller for LPC17xx.I would like proper guide from urs.Here is my Quries

1.Is there any sample code frm(NXP etc)?

2.What are the documents have to refer for write USB host controller?

3.Pls give me the steps i have to follow?

Note:I have already developed UART driver.We will have(LPC) to connect with USBDatacard.

Anyone have already developed,pls share your experience.
--Thanks for your help in advance.

An Engineer's Guide to the LPC2100 Series

Google is your friend, search for 'lpc21xx usb host code' and you will find over 200,000 replys at least a few of which are helpful.

There is an NXP example document

Richard
--- In l..., prabuisin@... wrote:
>
> Hi all,
> We are developing USB host controller for LPC17xx.I would like proper guide from urs.Here is my Quries
>
> 1.Is there any sample code frm(NXP etc)?
>
> 2.What are the documents have to refer for write USB host controller?
>
> 3.Pls give me the steps i have to follow?
>
> Note:I have already developed UART driver.We will have(LPC) to connect with USBDatacard.
>
> Anyone have already developed,pls share your experience.
> --Thanks for your help in advance.
>

Hi,

You will need OpenHCI specification for USB host registers and how it works: http://www.compaq.com/productinfo/development/openhci.html

Then check NXP OpenHCI for MSD class example code at:
http://ics.nxp.com/support/software/usb.host.msc/

If you are not expert in USB or not having USB analyzer at hand, better put it off. It's not a trivial task.

Regards,
-daniel

--- On Wed, 6/22/11, rtstofer wrote:

> From: rtstofer
> Subject: [lpc2000] Re: USB Host controller for LPC17xx
> To: l...
> Date: Wednesday, June 22, 2011, 2:47 PM
>
> Google is your friend, search for 'lpc21xx usb host code'
> and you will find over 200,000 replys at least a few of
> which are helpful.
>
> There is an NXP example document
>
> Richard
>
>
> --- In l...,
> prabuisin@... wrote:
> >
> > Hi all,
> > We are developing USB
> host controller for LPC17xx.I would like proper guide from
> urs.Here is my Quries
> >
> >1.Is there any sample code frm(NXP
> etc)?
> >
> >2.What are the documents have to
> refer for write USB host controller?
> >
> >3.Pls give me the steps i have to
> follow?
> >
> > Note:I have already developed UART driver.We will
> have(LPC) to connect with USBDatacard.
> >
> > Anyone have already developed,pls share your
> experience.
> >
> >
> > --Thanks for your help in advance.

On Wed, Jun 22, 2011 at 7:34 PM, wrote:

> **
> Hi all,
> We are developing USB host controller for LPC17xx.I would like proper guide
> from urs.Here is my Quries
>
> 1.Is there any sample code frm(NXP etc)?
>
> 2.What are the documents have to refer for write USB host controller?
>
> 3.Pls give me the steps i have to follow?
>
> Note:I have already developed UART driver.We will have(LPC) to connect with
> USBDatacard.
>
> Anyone have already developed,pls share your experience.
>

Take a look @ our mx-LPC1768-S
.
Hope this helps.

--
Warm regards
Ashwin
Director, NGX Technologies Pvt. Ltd.
Hi,
I have enumerated my USB modem and read modem configuration parameters
from LPC.
There is two interfaces(modem,Mass storage) and each using two end points with
Bulk(in/out) transfer types.

I can send AT commands using bulk endpoint transfer type and read response using
bulk transfer type.Am i correct???

But if modem send any asynchronous response(incoming sms,incoming call),How can
host controller knows or read that response??
I thought modem supports interrupt transfer endpoint descriptor for reading
asynchronous modem response.But it didnt support interrupt transfer endpoint
descriptor .

So How can host controller read modem asynchronous response or notification???Is
it possible to use Bulk transfer type??
Pls share your experience and knowledge and guide me???
Thanks in advance.

________________________________
From: Ashwin Athani
To: l...
Sent: Thu, 23 June, 2011 9:46:44 AM
Subject: Re: [lpc2000] USB Host controller for LPC17xx

On Wed, Jun 22, 2011 at 7:34 PM, wrote:

>
>Hi all,
>We are developing USB host controller for LPC17xx.I would like proper guide from
>urs.Here is my Quries
>
>1.Is there any sample code frm(NXP etc)?
>
>2.What are the documents have to refer for write USB host controller?
>
>3.Pls give me the steps i have to follow?
>
>Note:I have already developed UART driver.We will have(LPC) to connect with
>USBDatacard.
>
>Anyone have already developed,pls share your experience.
>

Take a look @ our mx-LPC1768-S . Hope this helps.

--
Warm regards
Ashwin
Director, NGX Technologies Pvt. Ltd.
--- In l..., pra bu wrote:
>
> Hi,
> I have enumerated my USB modem and read modem configuration parameters
> from LPC.
> There is two interfaces(modem,Mass storage) and each using two end points with
> Bulk(in/out) transfer types.
>
> I can send AT commands using bulk endpoint transfer type and read response using
> bulk transfer type.Am i correct???
>
> But if modem send any asynchronous response(incoming sms,incoming call),How can
> host controller knows or read that response??
> I thought modem supports interrupt transfer endpoint descriptor for reading
> asynchronous modem response.But it didnt support interrupt transfer endpoint
> descriptor .
>
> So How can host controller read modem asynchronous response or notification???Is
> it possible to use Bulk transfer type??
> Pls share your experience and knowledge and guide me???
> Thanks in advance.
>
> ________________________________
> From: Ashwin Athani
> To: l...
> Sent: Thu, 23 June, 2011 9:46:44 AM
> Subject: Re: [lpc2000] USB Host controller for LPC17xx
>
>
>
> On Wed, Jun 22, 2011 at 7:34 PM, wrote:
>
>
> >
> >Hi all,
> >We are developing USB host controller for LPC17xx.I would like proper guide from
> >urs.Here is my Quries
> >
> >1.Is there any sample code frm(NXP etc)?
> >
> >2.What are the documents have to refer for write USB host controller?
> >
> >3.Pls give me the steps i have to follow?
> >
> >Note:I have already developed UART driver.We will have(LPC) to connect with
> >USBDatacard.
> >
> >Anyone have already developed,pls share your experience.
> > Take a look @ our mx-LPC1768-S . Hope this helps.
>
> --
> Warm regards
> Ashwin
> Director, NGX Technologies Pvt. Ltd.
>

Most of source code of mx-LPC1768-S ( http://shop.ngxtechnologies.com/download/sample_code/LPC1768/mX-LPC1768-Stamp.zip ) derive from NXP USBHostLite for LPC17xx, distributed on
http://ics.nxp.com/support/software/usb.host.msc/

> There is two interfaces(modem,Mass storage) and each using two end points with Bulk(in/out) transfer types.

Sound like the modem interface is a vendor specific, apart from common CDC.
To confirm it, can you post the descriptors on the modem?

Tsuneo

Hi

I am trying to download the files from the links below and the ones from the NXP site for the LPC2468 comes up with file corrupted. It supposted to be 1.2M but the downloaded file size is 250K.

A lot of NXP downloadable files often are corrupted.

Any help on this

Regards

Jean-Jacques

--- In l..., "t_chinzei" wrote:
>
> --- In l..., pra bu wrote:
> >
> > Hi,
> > I have enumerated my USB modem and read modem configuration parameters
> > from LPC.
> > There is two interfaces(modem,Mass storage) and each using two end points with
> > Bulk(in/out) transfer types.
> >
> > I can send AT commands using bulk endpoint transfer type and read response using
> > bulk transfer type.Am i correct???
> >
> > But if modem send any asynchronous response(incoming sms,incoming call),How can
> > host controller knows or read that response??
> > I thought modem supports interrupt transfer endpoint descriptor for reading
> > asynchronous modem response.But it didnt support interrupt transfer endpoint
> > descriptor .
> >
> > So How can host controller read modem asynchronous response or notification???Is
> > it possible to use Bulk transfer type??
> >
> >
> > Pls share your experience and knowledge and guide me???
> >
> >
> > Thanks in advance.
> >
> >
> >
> >
> >
> > ________________________________
> > From: Ashwin Athani
> > To: l...
> > Sent: Thu, 23 June, 2011 9:46:44 AM
> > Subject: Re: [lpc2000] USB Host controller for LPC17xx
> >
> >
> >
> >
> >
> > On Wed, Jun 22, 2011 at 7:34 PM, wrote:
> >
> >
> > >
> > >Hi all,
> > >We are developing USB host controller for LPC17xx.I would like proper guide from
> > >urs.Here is my Quries
> > >
> > >1.Is there any sample code frm(NXP etc)?
> > >
> > >2.What are the documents have to refer for write USB host controller?
> > >
> > >3.Pls give me the steps i have to follow?
> > >
> > >Note:I have already developed UART driver.We will have(LPC) to connect with
> > >USBDatacard.
> > >
> > >Anyone have already developed,pls share your experience.
> > >
> >
> > Take a look @ our mx-LPC1768-S . Hope this helps.
> >
> > --
> > Warm regards
> > Ashwin
> > Director, NGX Technologies Pvt. Ltd.
> > Most of source code of mx-LPC1768-S ( http://shop.ngxtechnologies.com/download/sample_code/LPC1768/mX-LPC1768-Stamp.zip ) derive from NXP USBHostLite for LPC17xx, distributed on
> http://ics.nxp.com/support/software/usb.host.msc/
>
> > There is two interfaces(modem,Mass storage) and each using two end points with Bulk(in/out) transfer types.
>
> Sound like the modem interface is a vendor specific, apart from common CDC.
> To confirm it, can you post the descriptors on the modem?
>
> Tsuneo
>