Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:development:setup-serial-tool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:development:setup-serial-tool [2022/07/05 22:56]
hyphop [Hardware Connection]
products:sbc:common:development:setup-serial-tool [2022/10/16 02:20] (current)
hyphop [Hardware Connection]
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces serial debugging tools, you will learn how to connect Khadas SBC to PCand install debugging software on different PCs.+This page will introduce the serial tool. You will learn how to connect Khadas SBC to PC and install debugging software on different PCs.
  
 ===== Preparation ===== ===== Preparation =====
  
-Get Serial Debugging Tool, also known as USB to TTL Converter. For example, the [[https://www.amazon.com/Adaptor-Download-Adapter-Converter-LinkMore/dp/B08VGRRJ67/ref=sr_1_4?dchild=1&keywords=USB+to+TTL+ch340&qid=1629184609&sr=8-4|CH340 USB to TTL Converter]].+Take serial toolwhich is also known as an USB to TTL Converter like [[https://www.amazon.com/Adaptor-Download-Adapter-Converter-LinkMore/dp/B08VGRRJ67/ref=sr_1_4?dchild=1&keywords=USB+to+TTL+ch340&qid=1629184609&sr=8-4|CH340 USB to TTL Converter]].
  
 ===== Hardware Connection ===== ===== Hardware Connection =====
  
-{{ /products/sbc/common/development/serial_connections_3pin.png|serial_connections}}+{{ /products/sbc/common/development/serial_connections_3pin.png?500|serial_connections}}
  
-Use the following diagram to connect your serial tool to your board’s GPIOs.+You can connect your serial tool to the board GPIO pins, referring to the following diagram,
  
-  * Tool Pin ''GND'': <—> Pin17 of VIM’s GPIO +^ Serial tools pin ^ GPIO board header pin ^ Name ^ 
-  * Tool Pin ''TXD'': <—> Pin18 of VIM’s GPIO (''Linux_Rx'') +''GND''  ''17''  | | 
-  * Tool Pin ''RXD'': <—> Pin19 of VIM’s GPIO (''Linux_Tx'') +''TXD'' |  ''18'' ''Linux_Rx''  
-  * Tool Pin ''VCC'': <—> Pin20 of VIM’s GPIO +''RXD'' |  ''19'' ''Linux_Tx'' | 
- +''VCC'' |  ''20''  | |
-Insert the USB-side of the tool into your computer. +
- +
-Refer to this image:+
  
 +/*
 +  * Tool Pin ''GND'' <-> ''Pin17'' of VIM’s GPIO
 +  * Tool Pin ''TXD'' <-> ''Pin18'' of VIM’s GPIO ''Linux_Rx''
 +  * Tool Pin ''RXD'' <-> ''Pin19'' of VIM’s GPIO ''Linux_Tx''
 +  * Tool Pin ''VCC'' <-> ''Pin20'' of VIM’s GPIO
 +*/
 +Insert the USB port into your computer.
  
   * Blue line: ''TXD''   * Blue line: ''TXD''
Line 31: Line 35:
 ===== Setup Serial Communication Program ===== ===== Setup Serial Communication Program =====
  
-<WRAP alert +<WRAP important 
-VIM1/VIM2/VIM3/VIM3L Baudrate: 115200 +  VIM1/VIM2/VIM3/VIM3L Baudrate: **115200** 
- +  VIM4/VIM1S Baudrate: **921600** 
-VIM4 Baudrate: 921600+  * Edge1/Edge2 Baudrate: **1500000**
 </WRAP> </WRAP>
  
Line 41: Line 45:
 Use the ''minicom'' serial communication program. Use the ''minicom'' serial communication program.
  
-1. Install+1. **Install**
  
-```sh+```shell
 $ sudo apt update $ sudo apt update
 $ sudo apt install minicom $ sudo apt install minicom
 ``` ```
-Add access permissions +Add permissions to access 
-```sh+```shell
 $ sudo usermod -a -G dialout $(whoami) $ sudo usermod -a -G dialout $(whoami)
 ``` ```
 <WRAP info > <WRAP info >
-You may need to logout or reboot your system for changes to take effect.+You may need to logout or reboot your system to take effect.
 </WRAP> </WRAP>
  
-2. Setup+2. **Setup**
  
-Connect the USB to TTL Converter tool to your SBC and computer before setting up ''minicom''+Connect your SBC to the computer via the USB to TTL Converter tool before setting up ''minicom''. 
-```sh+ 
 +```shell
 $ sudo minicom -s $ sudo minicom -s
 ``` ```
-Enter the minicom setup mode:+ 
 +Enter the ''minicom'' setup mode:
 ``` ```
 +-----[configuration]------+ +-----[configuration]------+
Line 75: Line 81:
 +--------------------------+ +--------------------------+
 ``` ```
-Use the up/down arrows to shift to ''Serial port setup'', and hit Enter to enter the ''Serial port setup menu''.+Use the up/down arrow keys to shift to ''Serial port setup'', and hit Enter to enter the ''Serial port setup menu''.
  
   * You can use ''Shift'' + ''A'' to setup the serial device, hit Enter to confirm.   * You can use ''Shift'' + ''A'' to setup the serial device, hit Enter to confirm.
Line 86: Line 92:
 </WRAP> </WRAP>
  
-3. Launch+3. **Launch**
  
 Type ''minicom'' into the Ubuntu Terminal: Type ''minicom'' into the Ubuntu Terminal:
Line 105: Line 111:
 ``` ```
  
-4. Exit+4. **Exit**
  
 You can use ''Ctrl''+''A''+''Z'' to open the menu: You can use ''Ctrl''+''A''+''Z'' to open the menu:
Line 191: Line 197:
 2. Install 2. Install
  
-```sh+```shell
 $ sudo apt update $ sudo apt update
 $ sudo apt install minicom $ sudo apt install minicom
 ``` ```
 Add access permissions Add access permissions
-```sh+```shell
 $ sudo usermod -a -G dialout $(whoami) $ sudo usermod -a -G dialout $(whoami)
 ``` ```
Line 206: Line 212:
  
 Connect the USB to TTL Converter tool to your SBC and computer before setting up ''minicom''. Connect the USB to TTL Converter tool to your SBC and computer before setting up ''minicom''.
-```sh+```shell
 $ sudo minicom -s $ sudo minicom -s
 ``` ```
Last modified: 2022/07/05 22:56 by hyphop