This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: test of CAN callback stuff


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]