<a data-toggle="collapse" data-target="#q15" aria-hidden="true">
Serial ports input overrun
</a>
<div id="q15" class="collapse">
<div class="panel panel-default">
<div class="panel-body" markdown="1">

##Problem

Sometimes the serial port losts incoming characters. 

##Solution

To solve this problem enable inside the Device Tree file DMA for the serial port you are using.

###/dev/ttyS1

<pre class="minicom">
      usart0: serial@f801c000 {
        pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts &pinctrl_usart0_cts>;
        status = "okay";
        atmel,use-dma-rx;
        atmel,use-dma-tx;
        dmas = <&dma0 2 0x3>,
               <&dma0 2 0x204>;
        dma-names = "tx", "rx";
      };
</pre>


###/dev/ttyS2

<pre class="minicom">
      usart1: serial@f8020000 {
        pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts &pinctrl_usart1_cts>;
        status = "okay";
        atmel,use-dma-rx;
        atmel,use-dma-tx;
        dmas = <&dma0 2 0x5>,
           <&dma0 2 0x206>;
        dma-names = "tx", "rx";
      };
</pre>

###/dev/ttyS3

<pre class="minicom">
      usart2: serial@f8024000 {
        pinctrl-0 = <&pinctrl_usart2>;
        status = "okay";
        atmel,use-dma-rx;
        atmel,use-dma-tx;
        dmas = <&dma0 2 0x7>,
           <&dma0 2 0x208>;
        dma-names = "tx", "rx";
      };
</pre>

To compile know how to compile the Device Tree follow the tutorial on the Kernel Compilation
listed in the [Tutorial Index](/tutorials).

</div>
</div>
</div>
