Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock3/dev/uart

< Rock3‎ | dev
  ROCK 3 >  Development >  Use the debug serial port as a normal serial port


Description

This guide describes how to use the debug serial port as a normal serial port.

  • Step 1:Set serial port configuration
 sudo su
 vim /boot/config.txt
change "dtoverlay=rk3568-fiq-debugger-uart2m0" to "dtoverlay=rk3568-uart2-m0"

reboot


  • Step 2:Send data test
If the above configuration is successful, /dev will appear ttyS2
sudo su
stty -F /dev/ttyS2 1500000          
echo "uart2-m0-test" > /dev/ttyS2