This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: AT91SAM7S USB corruption
- From: "oliver munz @ s p e a g" <munz at speag dot ch>
- To: "ecos-discuss at sourceware dot org >> ecos-discuss at sourceware dot org" <ecos-discuss at sourceware dot org>, erantimus at gmail dot com
- Date: Wed, 10 Feb 2010 15:58:30 +0100
- Subject: [ECOS] Re: AT91SAM7S USB corruption
- Reply-to: munz at speag dot ch
Hello Erant
I also have problems whit the current at91_usb. I try to bring an old
running eCOS firmware to the actual eCOS-version. The first thing i
found was, that the enumeration writes the last endpoint-desctipoter
twice. The patch for this is:
usbs.c:
if (done) {
endpoint->fill_buffer_fn = (void (*)(usbs_control_endpoint*)) 0;
++ endpoint->buffer_size = 0;
} else {
req->type = (unsigned char) current_interface;
req->value_lo = (unsigned char) current_endpoint;
req->value_hi = (unsigned char) last_endpoint;
req->index_hi = (unsigned char) (sent >> 8);
req->index_lo = (unsigned char) (sent & 0x00FF);
I use fprintf and fgetc for writing and reading from bulk-endpoints. The
fprintf works great as ever, but the fgetc is broken. So if You find
some problem in the driver i would like to know...
Regards Oliver
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss