Changes

How to use UARTs

19 bytes removed, 16:59, 29 August 2012
m
Preparing IGEP
=== Configure UART1 and UART3 in IGEP with RS232 levels on J960 connector ===
To test UARTs we use UART1 (dev/ttyS0ttyO0) and UART3 (dev/ttyS2ttyO2) via J960 connector using RS232 standard.
NOTE: Make sure that you installed open SSH server. If you don't have it go [[How to forge a local file system server with IGEP0020 board#Installing_Open_SSH_Server|here]].
</pre>
By default, UART3 is used by Kernel serial console, we need to disable it, go to igep.ini file, comment next line: <br>
<pre>;console=ttyS2ttyO2,115200n8;console=ttySttyO</pre>
=== Check UARTs devices ===
<pre>dmesg | grep tty</pre>
The result will be similar at that:
<pre>root@localhostigep00x0:~/PROGRAM# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.598999485198] serial8250omap_uart.0: ttyS0 ttyO0 at MMIO 0x4806a000 (irq = 72) is a ST16654OMAP UART0[ 0.784057485565] serial8250omap_uart.1: ttyS1 ttyO1 at MMIO 0x4806c000 (irq = 73) is a ST16654OMAP UART1[ 0.969085485931] serial8250omap_uart.2: ttyS2 ttyO2 at MMIO 0x49020000 (irq = 74) is a ST16654OMAP UART2[ 10.153503486267] serial8250omap_uart.3: ttyS3 ttyO3 at MMIO 0x49042000 (irq = 80) is a ST16654OMAP UART3root@localhostigep00x0:~/PROGRAM# </pre>
=== Connect peripherals ===
=== Send some data ===
Use minicom to prove it, open two terminals via SSH&nbsp;and log with root user:
Terminal 1:
<pre>minicom -D microcom /dev/ttyS0ttyO0</pre>
Terminal 2:
<pre>minicom -D microcom /dev/ttyS2 ttyO2 </pre>
Type something in one terminal.
4,199
edits