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 23:14]
nick ↷ Page name changed from products:sbc:common:development:setup_serial_tool to products:sbc:common:development:setup-serial-tool
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 =====
Line 13: Line 13:
 {{ /products/sbc/common/development/serial_connections_3pin.png?500|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,
  
 +^ Serial tools pin ^ GPIO board header pin ^ Name ^
 +| ''GND'' |  ''17''  | |
 +| ''TXD'' |  ''18''  | ''Linux_Rx''
 +| ''RXD'' |  ''19''  | ''Linux_Tx'' |
 +| ''VCC'' |  ''20''  | |
 +
 +/*
   * Tool Pin ''GND'' <-> ''Pin17'' of VIM’s GPIO   * Tool Pin ''GND'' <-> ''Pin17'' of VIM’s GPIO
   * Tool Pin ''TXD'' <-> ''Pin18'' of VIM’s GPIO ''Linux_Rx''   * Tool Pin ''TXD'' <-> ''Pin18'' of VIM’s GPIO ''Linux_Rx''
   * Tool Pin ''RXD'' <-> ''Pin19'' of VIM’s GPIO ''Linux_Tx''   * Tool Pin ''RXD'' <-> ''Pin19'' of VIM’s GPIO ''Linux_Tx''
   * Tool Pin ''VCC'' <-> ''Pin20'' of VIM’s GPIO   * Tool Pin ''VCC'' <-> ''Pin20'' of VIM’s GPIO
- +*/ 
-Insert the USB-side of the tool into your computer.+Insert the USB port into your computer.
  
   * Blue line: ''TXD''   * Blue line: ''TXD''
Line 30: Line 37:
 <WRAP important > <WRAP important >
   * VIM1/VIM2/VIM3/VIM3L Baudrate: **115200**   * VIM1/VIM2/VIM3/VIM3L Baudrate: **115200**
-  * VIM4 Baudrate: **921600**+  * VIM4/VIM1S Baudrate: **921600** 
 +  * Edge1/Edge2 Baudrate: **1500000**
 </WRAP> </WRAP>
  
Line 39: Line 47:
 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 73: 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 189: 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 204: 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 23:14 by nick