Hi all,<br><br>Well i have been able to reproduce the problem. Instead of the previous host (dSPACE), i used a PC as a host and implemented a simple application to perform both reads and writes via the serial link to the FPGA board running rtems. The rtems software simply performs writes() to the serial line at a fixed rate. I saw that:<br>
<br>1) If the rtems running on the FPGA board only sends data to the host, it's OK.<br><br>2) Instead of only reading, if the host also writes, even if there are no read()'s at the rtems side which only keeps write()'ing, i start to loose bytes received at the host side.<br>
<br>Since there are two independent Rx and Tx lines, i did not expect this to occur. Also, there are two separated hardware fifos for both Tx and Rx and since i have no read()'s on the rtems side i expect no software calls when bytes arrive, hence no software overheads.<br>
<br>What am i missing?<br><br><br>Best,<br>JM<br><br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 4:41 PM, Joćo Rasta <span dir="ltr"><<a href="mailto:freakforever@gmail.com">freakforever@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">In order to discard hardware issues I now tried the same application on a more powerful FPGA. Here the leon-3 processor runs at 80MHz and UART hardware fifos size are doubled to 32 bytes. However the problem is still the same. Rx works well, the packets received are ok but the packets sent are not correct.<br>
<br>I suspect of a problem on the driver. If i set a big buffer, 1024 as chris suggested, "trash" bytes are sent. This does not happen if i set a buffer lower than the message i want to send but in this case i loose bytes.<br>
<br>Termios is well configured, the simplest way possible. I'm using POSIX rtems support.<br><br>Can that warning on the driver be the problem? Transmissions in interrupt mode not working well? Is there any other driver i can use? <br>
<br><br>Best,<br>JM<div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 3:25 PM, Joćo Rasta <span dir="ltr"><<a href="mailto:freakforever@gmail.com" target="_blank">freakforever@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Sorry, it is this one:<br><br>rtems-4.10-mingw\src\rtems-4.10\c\src\lib\libbsp\sparc\leon3\console<div><div></div><div><br><br><br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 3:15 PM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>On 09/24/2010 04:04 PM, Joćo Rasta wrote:<br>
> The filename is console.c. I'm using rtems 4.10 from<br>
><br>
> <a href="ftp://gaisler.com/gaisler.com/rcc/src/" target="_blank">ftp://gaisler.com/gaisler.com/rcc/src/</a><br>
<br>
</div>There are 48 console.c files in this archive.<br>
<div><br>
><br>
><br>
> Best,<br>
> JM<br>
><br>
> On Fri, Sep 24, 2010 at 1:13 PM, Sebastian Huber<br>
> <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
</div><div>> <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>> wrote:<br>
><br>
> On 09/24/2010 02:01 PM, Joćo Rasta wrote:<br>
> > Hi,<br>
> ><br>
> > I have checked the termios configuration again, it seems ok. No<br>
> software<br>
> > flow control, no canonical mode. Also the same configuration works<br>
> fine<br>
> > on a x86.<br>
> ><br>
> > I'm using gaisler's console driver and when i opened the rtems driver<br>
> > file it said this:<br>
> [...]<br>
><br>
> What is the file name path of this file and the CVS version in your<br>
> case?<br>
><br>
> --<br>
> Sebastian Huber, embedded brains GmbH<br>
><br>
> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany<br>
> Phone : +49 89 18 90 80 79-6<br>
> Fax : +49 89 18 90 80 79-9<br>
> E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
</div>> <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>><br>
<div>> PGP : Public key available on request.<br>
><br>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
> _______________________________________________<br>
> rtems-users mailing list<br>
</div>> <a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a> <mailto:<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a>><br>
<div>> <a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
><br>
><br>
<br>
<br>
</div>--<br>
<div><div></div><div>Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany<br>
Phone : +49 89 18 90 80 79-6<br>
Fax : +49 89 18 90 80 79-9<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>