RT-Thread Debug Port

Linux uses UART0 as the system serial port, while RT-Thread uses UART2 as the system serial port. In this application note, pin11 and pin13 on 40-pin GPIO of VisionFive 2 are used as RX/TX pins. The following shows the circuit diagram of the VisionFive 2 40-pin GPIO.

Pin9, pin11 and pin13 form a complete serial port:
  • Pin9 (GND)
  • Pin11 (GPIO42): UART2 RX
  • Pin13 (GPIO43): UART2 TX
    Figure 1. 40-Pin Out