title: I can't read from a UART/Nios
body: <p>I've included an UART component to my FPGA, and I've written this sample code to out a character(I want to test if its working) :</p>
  
  <pre><code>  #include &lt;alt_types.h&gt;
  #include &lt;altera_avalon_pio_regs.h&gt;
  #include &lt;altera_avalon_uart_regs.h&gt;
  #include &lt;sys/alt_irq.h&gt;
  #include &lt;sys/alt_alarm.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;fcntl.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include "system.h"
  
  int main(void)
  {
  int filed;
  int x=0;
  unsigned char c=5;
  filed = open ("dev/uart_0", O_RDWR| O_NOCTTY );
  while (x&lt;10){
  write (filed, &amp;c,1);
  x++;
  }
  
  }
  </code></pre>
  
  <p>I'm using <strong>realterm</strong> to read the output, but nothing appears, any help ?
  thx</p>