This shows you the differences between two versions of the page.
|
tutorials:common:how_to_use_the_uart [2014/03/26 18:26] allen |
tutorials:common:how_to_use_the_uart [2014/06/09 19:52] (current) allen |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== Abstract ===== | ===== Abstract ===== | ||
| - | Here is the guide to teach that open the uart port on cubiboard and how to test the uart port whether available | + | Here is the guide to teach that how to enable the uart port on cubiboard and how to test the uart port is available . |
| - | + | ||
| - | In this guide using the cubietruck as example . | + | |
| Line 19: | Line 18: | ||
| Cubieboard 1 2 [[http://docs.cubieboard.org/cubieboard1_and_cubieboard2_gpio_pin]] | Cubieboard 1 2 [[http://docs.cubieboard.org/cubieboard1_and_cubieboard2_gpio_pin]] | ||
| + | Fex Guide [[http://linux-sunxi.org/Fex_Guide]] | ||
| ===== Open the port ===== | ===== Open the port ===== | ||
| <code> | <code> | ||
| Line 56: | Line 56: | ||
| After the reboot ,the uart3 and uart4 are available. | After the reboot ,the uart3 and uart4 are available. | ||
| - | <note tip> **remember save as scrpit.bin and reboot**</note> | + | <note tip> **remember save as script.bin and reboot**</note> |
| Line 335: | Line 335: | ||
| </code> | </code> | ||
| + | The uart0 3 4 5 6 are available in Cubieboard1 and Cubieboard2 ,while uart0 3 4 7 are available in Cubietruck, but uart0 is debug serial. | ||
| - | To make sure the PG06 and PG07 internal loopback,use Dupont Line connect them . | + | To test uart3(or uart4) should make sure the PG06 and PG07 (or PG10 and PG11)internal loopback,use Dupont Line connect them . |
| - | If you only open the uart0 3 4, uart3 is mapping the device ttyS1. | + | If you only open the uart0 4, uart4 is mapping the device ttyS1. |
| - | While open the uart0 2 3 4, uart3 is mapping the device ttyS2. | + | While open the uart0 3 4, uart3 is mapping the device ttyS1. uart4 is mapping the device ttyS2. |
| <code> | <code> | ||
| Line 347: | Line 348: | ||
| The termial will prinf as below,it prove the uart3 is working . | The termial will prinf as below,it prove the uart3 is working . | ||
| - | {{:tutorials:common:选区_052.png?600|}} | + | {{:tutorials:common:选区_061.png?600|}} |
| === See Also === | === See Also === | ||