public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] AT91SAM7SEK and USB-SLAVE
@ 2007-07-03 21:33 wavecom wavecom
  2007-07-04  9:24 ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: wavecom wavecom @ 2007-07-03 21:33 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I'm trying to configure usb-slave with the AT91SAM7SEK
template. So I've enabled USB and “Atmel AT91 USB
Device Driver“ and “Support the control endpoint 0”.
But in conflict list I've got that
CYGFUN_DEVS_USB_AT91_EP0 Requires CYGPKG_IO_USB 
CYGPKG_IO_USB_SLAVE. So I 've found a patch:  “
http://www.mail-archive.com/ecos-patches@ecos.sourceware.org/msg00355.html
“. I was trying to patch the usbs_at91.cdl,  but  in
my  usbs_at91.cdl (# Date:           2006-02-25)  is “
       default_value CYGINT_IO_USB_SLAVE_CLIENTS” just
like in + in the patch 
“
-        calculated    CYGINT_IO_USB_SLAVE_CLIENTS
+        default_value CYGINT_IO_USB_SLAVE_CLIENTS
“
How to solve the usb-slave problem?


Pete


       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] AT91SAM7SEK and USB-SLAVE
  2007-07-03 21:33 [ECOS] AT91SAM7SEK and USB-SLAVE wavecom wavecom
@ 2007-07-04  9:24 ` Andrew Lunn
  2007-07-04 12:08   ` wavecom wavecom
  2007-08-21  8:15   ` wavecom wavecom
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Lunn @ 2007-07-04  9:24 UTC (permalink / raw)
  To: wavecom wavecom; +Cc: ecos-discuss

On Tue, Jul 03, 2007 at 02:33:39PM -0700, wavecom wavecom wrote:
> Hi,
> 
> I'm trying to configure usb-slave with the AT91SAM7SEK
> template. So I've enabled USB and ?Atmel AT91 USB
> Device Driver? and ?Support the control endpoint 0?.
> But in conflict list I've got that
> CYGFUN_DEVS_USB_AT91_EP0 Requires CYGPKG_IO_USB 
> CYGPKG_IO_USB_SLAVE. So I 've found a patch:  ?
> http://www.mail-archive.com/ecos-patches@ecos.sourceware.org/msg00355.html
> ?. I was trying to patch the usbs_at91.cdl,  but  in
> my  usbs_at91.cdl (# Date:           2006-02-25)  is ?
>        default_value CYGINT_IO_USB_SLAVE_CLIENTS? just
> like in + in the patch 
> ?
> -        calculated    CYGINT_IO_USB_SLAVE_CLIENTS
> +        default_value CYGINT_IO_USB_SLAVE_CLIENTS
> ?
> How to solve the usb-slave problem?

What it is trying to tell you is that there is no client software
using the USB, so there is no need to compile the USB stack. So it
does not compile it.

You either need to include/write a package which uses the USB package
and implements the CDL interface CYGINT_IO_USB_SLAVE_CLIENTS, or you
need to set option CYGGLO_IO_USB_SLAVE_APPLICATION and you application
code can the use the USB slave functions.

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] AT91SAM7SEK and USB-SLAVE
  2007-07-04  9:24 ` Andrew Lunn
@ 2007-07-04 12:08   ` wavecom wavecom
  2007-08-21  8:15   ` wavecom wavecom
  1 sibling, 0 replies; 6+ messages in thread
From: wavecom wavecom @ 2007-07-04 12:08 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

> On Tue, Jul 03, 2007 at 02:33:39PM -0700, wavecom
> wavecom wrote:
> > Hi,
> > 
> > I'm trying to configure usb-slave with the
> AT91SAM7SEK
> > template. So I've enabled USB and ?Atmel AT91 USB
> > Device Driver? and ?Support the control endpoint
> 0?.
> > But in conflict list I've got that
> > CYGFUN_DEVS_USB_AT91_EP0 Requires CYGPKG_IO_USB 
> > CYGPKG_IO_USB_SLAVE. So I 've found a patch:  ?
> >
>
http://www.mail-archive.com/ecos-patches@ecos.sourceware.org/msg00355.html
> > ?. I was trying to patch the usbs_at91.cdl,  but 
> in
> > my  usbs_at91.cdl (# Date:           2006-02-25) 
> is ?
> >        default_value CYGINT_IO_USB_SLAVE_CLIENTS?
> just
> > like in + in the patch 
> > ?
> > -        calculated    CYGINT_IO_USB_SLAVE_CLIENTS
> > +        default_value CYGINT_IO_USB_SLAVE_CLIENTS
> > ?
> > How to solve the usb-slave problem?
> 
> What it is trying to tell you is that there is no
> client software
> using the USB, so there is no need to compile the
> USB stack. So it
> does not compile it.
> 
> You either need to include/write a package which
> uses the USB package
> and implements the CDL interface
> CYGINT_IO_USB_SLAVE_CLIENTS, or you
> need to set option CYGGLO_IO_USB_SLAVE_APPLICATION
> and you application
> code can the use the USB slave functions.
> 
>      Andrew
> 


Can you recommend me a code example of USB on eCos for
the AT91 or other controller?

Pete


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] AT91SAM7SEK and USB-SLAVE
  2007-07-04  9:24 ` Andrew Lunn
  2007-07-04 12:08   ` wavecom wavecom
@ 2007-08-21  8:15   ` wavecom wavecom
  2007-08-21  8:27     ` Andrew Lunn
  1 sibling, 1 reply; 6+ messages in thread
From: wavecom wavecom @ 2007-08-21  8:15 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

IÂ’ve created test USB package (only package
directories and definition without any C-code).
testusb.cdl looks like below:
“
cdl_package CYGPKG_TEST_USB {
    display       "Test USB"
    description   "Test USB"
    implements  CYGPKG_IO_USB
    implements  CYGPKG_IO_USB_SLAVE
    implements  CYGINT_IO_USB_SLAVE_CLIENTS 

    cdl_component CYGPKG_TEST_USB_DEVICES {
        display       "Test USB dev"
        flavor        bool
        default_value 1
        description   "Test USB dev"
    }

}
“.
Next IÂ’ve added the package to ecos.db and to my
project. But still, when I’m trying to enable “Support
the control endpoint 0”, I’ve got conflict “… requires
CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE”. 
To solve that, I’ve tried to add “USB slave-side
support” and “USB Support” but the configuration tool
rejected that, because of hardware property.
Do I need to add these two packages?
How to solve CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE
problem?
IÂ’m used at91sam7sek template.

Pete

> On Tue, Jul 03, 2007 at 02:33:39PM -0700, wavecom
> wavecom wrote:
> > Hi,
> > 
> > I'm trying to configure usb-slave with the
> AT91SAM7SEK
> > template. So I've enabled USB and ?Atmel AT91 USB
> > Device Driver? and ?Support the control endpoint
> 0?.
> > But in conflict list I've got that
> > CYGFUN_DEVS_USB_AT91_EP0 Requires CYGPKG_IO_USB 
> > CYGPKG_IO_USB_SLAVE. So I 've found a patch:  ?
> >
>
http://www.mail-archive.com/ecos-patches@ecos.sourceware.org/msg00355.html
> > ?. I was trying to patch the usbs_at91.cdl,  but 
> in
> > my  usbs_at91.cdl (# Date:           2006-02-25) 
> is ?
> >        default_value CYGINT_IO_USB_SLAVE_CLIENTS?
> just
> > like in + in the patch 
> > ?
> > -        calculated    CYGINT_IO_USB_SLAVE_CLIENTS
> > +        default_value CYGINT_IO_USB_SLAVE_CLIENTS
> > ?
> > How to solve the usb-slave problem?
> 
> What it is trying to tell you is that there is no
> client software
> using the USB, so there is no need to compile the
> USB stack. So it
> does not compile it.
> 
> You either need to include/write a package which
> uses the USB package
> and implements the CDL interface
> CYGINT_IO_USB_SLAVE_CLIENTS, or you
> need to set option CYGGLO_IO_USB_SLAVE_APPLICATION
> and you application
> code can the use the USB slave functions.
> 
>      Andrew
> 



      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] AT91SAM7SEK and USB-SLAVE
  2007-08-21  8:15   ` wavecom wavecom
@ 2007-08-21  8:27     ` Andrew Lunn
  2007-08-22  8:36       ` wavecom wavecom
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2007-08-21  8:27 UTC (permalink / raw)
  To: wavecom wavecom; +Cc: ecos-discuss

On Tue, Aug 21, 2007 at 01:15:31AM -0700, wavecom wavecom wrote:
> I?ve created test USB package (only package
> directories and definition without any C-code).
> testusb.cdl looks like below:
> ?
> cdl_package CYGPKG_TEST_USB {
>     display       "Test USB"
>     description   "Test USB"
>     implements  CYGPKG_IO_USB
>     implements  CYGPKG_IO_USB_SLAVE
>     implements  CYGINT_IO_USB_SLAVE_CLIENTS 
> 
>     cdl_component CYGPKG_TEST_USB_DEVICES {
>         display       "Test USB dev"
>         flavor        bool
>         default_value 1
>         description   "Test USB dev"
>     }
> 
> }
> ?.
> Next I?ve added the package to ecos.db and to my
> project. But still, when I?m trying to enable ?Support
> the control endpoint 0?, I?ve got conflict ?? requires
> CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE?. 
> To solve that, I?ve tried to add ?USB slave-side
> support? and ?USB Support? but the configuration tool
> rejected that, because of hardware property.
> Do I need to add these two packages?
> How to solve CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE
> problem?
> I?m used at91sam7sek template.

Either use the CLI tool ecosconfig which ignores the hardware
property.  Or add CYGPKG_IO_USB and CYGPKG_IO_USB_SLAVE to the
at91sam7sek target in ecos.db.

            Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] AT91SAM7SEK and USB-SLAVE
  2007-08-21  8:27     ` Andrew Lunn
@ 2007-08-22  8:36       ` wavecom wavecom
  0 siblings, 0 replies; 6+ messages in thread
From: wavecom wavecom @ 2007-08-22  8:36 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Another AT91 USBSlave question :):) :
File:
ecos/packages/devs/usb/at91/current/include/usbs_at91.h
contains only usbs_control_endpoint and 3
usbs_rx_endpoint.
How to retrieve proper instance of usbs_tx_endpoint?

Thanks,
Pete

--- Andrew Lunn <andrew@lunn.ch> wrote:

> On Tue, Aug 21, 2007 at 01:15:31AM -0700, wavecom
> wavecom wrote:
> > I?ve created test USB package (only package
> > directories and definition without any C-code).
> > testusb.cdl looks like below:
> > ?
> > cdl_package CYGPKG_TEST_USB {
> >     display       "Test USB"
> >     description   "Test USB"
> >     implements  CYGPKG_IO_USB
> >     implements  CYGPKG_IO_USB_SLAVE
> >     implements  CYGINT_IO_USB_SLAVE_CLIENTS 
> > 
> >     cdl_component CYGPKG_TEST_USB_DEVICES {
> >         display       "Test USB dev"
> >         flavor        bool
> >         default_value 1
> >         description   "Test USB dev"
> >     }
> > 
> > }
> > ?.
> > Next I?ve added the package to ecos.db and to my
> > project. But still, when I?m trying to enable
> ?Support
> > the control endpoint 0?, I?ve got conflict ??
> requires
> > CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE?. 
> > To solve that, I?ve tried to add ?USB slave-side
> > support? and ?USB Support? but the configuration
> tool
> > rejected that, because of hardware property.
> > Do I need to add these two packages?
> > How to solve CYGPKG_IO_USB CYGPKG_IO_USB_SLAVE
> > problem?
> > I?m used at91sam7sek template.
> 
> Either use the CLI tool ecosconfig which ignores the
> hardware
> property.  Or add CYGPKG_IO_USB and
> CYGPKG_IO_USB_SLAVE to the
> at91sam7sek target in ecos.db.
> 
>             Andrew
> 
> -- 
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 



      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-22  8:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-03 21:33 [ECOS] AT91SAM7SEK and USB-SLAVE wavecom wavecom
2007-07-04  9:24 ` Andrew Lunn
2007-07-04 12:08   ` wavecom wavecom
2007-08-21  8:15   ` wavecom wavecom
2007-08-21  8:27     ` Andrew Lunn
2007-08-22  8:36       ` wavecom wavecom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).