This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: USB on the AT91SAM7S
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Frank Pagliughi <fpagliughi at mindspring dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 29 Feb 2008 16:32:44 +0100
- Subject: Re: [ECOS] USB on the AT91SAM7S
- References: <47C82063.8060608@mindspring.com>
On Fri, Feb 29, 2008 at 10:10:27AM -0500, Frank Pagliughi wrote:
> Hey All,
>
> I just got an AT91SAM7S-EK board and tried playing around with the USB
> features under eCos. I'm having some trouble and am wondering if anyone
> knows whether the USB device driver for the chip/board is in an
> operational state.
It does work. I've used it for real applications.
> A few things I've seen so far:
>
> - The board's target doesn't include the base USB I/O and slave packages
Just add it if you need it. It should not make a difference if it is
included or not, so i could permanently add it.
> - The USB test application doesn't compile for the board
True. In its default configuration it needs too much RAM. When testing
i hacked it so that it uses less threads and smaller stacks. Running
the test then shows up what appears to be a hardware problem. The
first received packet on an EP does not cause an interrupt. You only
get the interrupt when the second packet is received. After that all
works well.
> - All three of the general purpose endpoints are defined as receivers
> (usbs_rx_endpoint). Not one transmitter.
It will look at the enumeration data and determine the direction of
the endpoints. What does your enumeration say?
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