This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: test of CAN callback stuff
- From: cetoni GmbH - Uwe Kindler <uwe dot kindler at cetoni dot de>
- To: ecos-patches at sourceware dot org, Andrew Lunn <andrew at lunn dot ch>
- Date: Fri, 24 Aug 2007 16:26:58 +0200
- Subject: Re: test of CAN callback stuff
- Organization: cetoni GmbH
Hello Andrew,
this two errors are not really CAN specific. The loopback driver overrun
test simply reads the size of the RX queue and then sends exact the
number of events that fit into the RX queue. After sending the messages,
it simply checks if the message queue is completely filled before it
sends one additional message that produces an overrun event.
I think the proiblem is that the check if the queue is completely filled
immediatelly follows the sending procedure. On the synth target this
check maybe comes faster then the RX queue could receive all events. A
small cyg_thread_delay() before the check may solve this. I cannot check
this because I do not use synth target and on my real hardware this test
does not fail.
Regards,
Dipl. Inf. (FH)
Uwe Kindler
Software Engineering
--
cetoni GmbH
Am Wiesenring 6
D-07554 Korbussen
Tel.: +49 (0) 36602 338 28
Fax: +49 (0) 36602 338 11
uwe.kindler@cetoni.de
www.cetoni.de