8,367
edits
Changes
→How to use the debugging serial port on the Ubuntu platform
=== How to use the debugging serial port on the Ubuntu platform ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''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.'''</big>|}
# 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
::{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''ls /dev/ttyUSB*'''
'''/dev/ttyUSB0'''
|}
<ol start="2" style="list-style-type: decimal;">
<li>Then use the following command to install putty on Ubuntu PC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo apt update'''
test@test:~$ '''sudo apt install -y putty'''
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then run putty, '''<span style="color:#FF0000">remember to add sudo permission</span>'''</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo putty'''
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>After executing the putty command, the following interface will pop up</li></ol>
<ol start="5" style="list-style-type: decimal;">
<li>First select the setting interface of the serial port</li></ol>
<div class="figure">
[[File:media/image64.jpeg|337x297px|9]]
</div></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then set the parameters of the serial port</p>
<li><p>Set '''Serial line to connect to'''to as '''dev/ttyUSB0''' (modify to the corresponding node name, usually /dev/ttyUSB0)</p></li>
<li><p>Set '''Speed(baud)''' to 115200 (the baud rate of the serial port)</p></li>
<li><p>Set '''Flow control''' as '''None'''</p></li></ol></li></ol>
<div class="figure">
[[File:media/image65.jpeg|398x352px|10]]
</div></ol></li></ol>
<ol start="7" style="list-style-type: decimal;">
<li><p>After setting the setting interface of the serial port, return to the Session interface</p>
<ol style="list-style-type: lower-alpha;">
<li><p>First select the '''Connection type''' as Serial</p></li>
<li><p>Then click the '''Open''' button to connect to the serial port</p></li></ol></li></ol>
<div class="figure">
[[File:media/image66.jpeg|375x333px|11]]
</div></ol></li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>Then start the development board, and you can see the Log information output by the system from the opened serial port terminal</li></ol>
[[File:media/image67.png|376x249px]]
</ol>
<span id="how-to-use-the-debugging-serial-port-on-windows-platform"></span>
=== How to use the debugging serial port on Windows platform ===