linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* at91sam9260 on linux 2.6.31 with at91 patchset: UART looses bytes when receiving packets
@ 2009-10-30 17:25 Stefan Schoenleitner
  2009-10-30 22:08 ` Gerard Kam
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Schoenleitner @ 2009-10-30 17:25 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I have a at91sam9260 based development board with a Rev.B controller
sitting on it.
On this board I use UART0 in raw mode with no flow control to connect to
a DSP board and exchange data packets.
While the UART generally seems to be working it seems to loose bytes
from time to time when receiving.

Interestingly is is *always the same byte* on the same position in the
stream that is lost.
I verified that the stream really contains all the bytes by sniffing the
TX pin on the DSP board at the same time.
While on the PC that is used for sniffing all bytes are received, the
sam9260 board misses the mentioned byte.

I looked into the errata section of the sam9260 datasheet as well.
For Rev.A chips there were some related UART problems but for my Rev.B
chip these errors seem to have been fixed.

Did anyone on this list had similar problems ?
Do you have suggestions how I can find out what's wrong and fix the
problem ?

One possibility to debug the problem that comes to my mind right now is
to add some debug code to the kernel so that I can see which bytes are
actually received from the uart controller itself.
If the data coming from the controller is the same as the data I receive
in my userspace application it has to be a hardware or hardware
configuration problem, right ?

cheers,
stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-31 14:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30 17:25 at91sam9260 on linux 2.6.31 with at91 patchset: UART looses bytes when receiving packets Stefan Schoenleitner
2009-10-30 22:08 ` Gerard Kam
2009-10-31 11:20   ` Stefan Schoenleitner
2009-10-31 14:00     ` Stefan Schoenleitner
2009-10-31 14:16       ` Russell King - ARM Linux
2009-10-31 14:24         ` Stefan Schoenleitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).