Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:common:applications:gpio:uart

This is an old revision of the document!


UART

Introduction

This document mainly introduces the usage of UART 40-Pin Header.

Enable UART

Uart PIN in 40-Pin Header is PIN15 and PIN16. Refer to Device Tree Overlay.

Enable uart node via device tree overlays. Edit /boot/env.txt to add uartX to overlays. E.g.

overlays=uart4 pwm_ao_a pwm_f i2c0

Reboot to effect.

  • VIM1/VIM2/VIM4 - uar4
  • VIM3/VIM3L - uart3

Check UART Node

After reboot, you will see the uart device node.

  • VIM1/VIM2/VIM4 - /dev/ttyS4
  • VIM3/VIM3L - /dev/ttyS3
Last modified: 2022/07/12 22:49 by nick