Documentation/Allspark2-Orin NX WikiEnglish · NX
Browse documentation
10 Interface Function Test Demos

10.9 UART Function Test

+ Tip Use the superuser: sudo su

1 min read · English documentation

UART Function Test

Test Equipment

Power adapter, Allspark-Orin NX main unit, and self-made RX/TX loopback cable

图片.png

NVIDIA Jetson Linux 35 Ubuntu 20.04
Pin Interface PIN 1 PIN 2 PIN 3 PIN4 PIN5 PIN6
UART0 (ttyTHS1) 5V0 5V0 RX TX GND GND
UART1 (ttyTHS0) 3V3 RX TX GND N/A N/A
UART2 (ttyUSB0) 3V3 RX TX GND N/A N/A
DEBUG 3V3 RX TX GND N/A N/A
NVIDIA Jetson Linux 36 Ubuntu 22.04
Pin Interface PIN 1 PIN 2 PIN 3 PIN4 PIN5 PIN6
UART0 (ttyTHS2) 5V0 5V0 RX TX GND GND
UART1 (ttyTHS1) 3V3 RX TX GND N/A N/A
UART2 (ttyUSB0) 3V3 RX TX GND N/A N/A
DEBUG 3V3 RX TX GND N/A N/A

Test Objective

Test the functionality of the UART-related circuitry

Test Procedure

UART0 and UART1 Test
  • Tip

    Use the superuser: sudo su
  • Connect UART0 to UART1 according to the pin definitions in the figure below.

Uart1.png

  • Enter the command to become the superuser.
  • sudo su
  • Enter the command below.
  • serialTest /dev/ttyTHS1 /dev/ttyTHS0
  • The output shown below indicates that the UART0-to-UART1 transmit/receive loop test passed.

Uart2.png

UART0 and UART2 Test
  • Connect UART0 to UART2 according to the pin definitions in the figure below.

Uart3.png

  • Enter the command to become the superuser.
  • sudo su
  • Enter the command below.
  • serialTest /dev/ttyTHS1 /dev/ttyUSB0
  • The output shown below indicates that the UART0-to-UART2 transmit/receive loop test passed.

Uart4.png