Chapt 2. Introduction to the use of the development board
2.8.2. How to use the debugging serial port on the Ubuntu platform
There are many serial port debugging software that can be used under Linux, such as putty, minicom, etc. The following demonstrates how to use putty.
1) First, insert the USB-to-TTL module into the USB port of the Ubuntu computer. If the connection and identification of the USB-to-TTL module is normal, you can see the corresponding device node name under /dev on the Ubuntu PC.
Remember this node name, and then set the serial port software will be used
test@test:~$ ls /dev/ttyUSB*
/dev/ttyUSB0
2) Then use the following command to install putty on Ubuntu PC
test@test:~$ sudo apt update
test@test:~$ sudo apt install -y putty
3) Then run putty, remember to add sudo permission
test@test:~$ sudo putty
4) After executing the putty command, the following interface will pop up
Img
2.58
5) First select the setting interface of the serial port
Img
2.59
6) Then set the parameters of the serial port
a. Set Serialline to connect as dev/ttyUSB0 (modify to the corresponding node name, usually /dev/ttyUSB0)
b. Set Speed(baud) to 115200 (the baud rate of the serial port)
c. Set Flowcontrolas None
Img
2.60
7) After setting the setting interface of the serial port, return to the Session interface a. First select the Connectiontype as Serial
b. Then click the Open button to connect to the serial port
Img
2.61
8) Then start the development board, and you can see the Log information output by the system from the opened serial port terminal
Img
2.62