[ECOS] USB on the AT91SAM7S

Andrew Lunn andrew@lunn.ch
Fri Feb 29 15:33:00 GMT 2008


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



More information about the Ecos-discuss mailing list