This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:development:setup-serial-tool [2022/07/05 23:00] hyphop |
products:sbc:common:development:setup-serial-tool [2024/08/18 22:18] (current) nick |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This document mainly introduces | + | This page will introduce the serial |
| ===== Preparation ===== | ===== Preparation ===== | ||
| - | Get a Serial Debugging Tool, also known as a USB to TTL Converter. For example, the [[https:// | + | Take a serial tool, which is also known as an USB to TTL Converter |
| ===== Hardware Connection ===== | ===== Hardware Connection ===== | ||
| - | {{ / | + | {{ / |
| - | 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 '' | + | ^ Serial tools pin ^ GPIO board header pin ^ Name ^ |
| - | * Tool Pin '' | + | | '' |
| - | * Tool Pin '' | + | | '' |
| - | * Tool Pin '' | + | | '' |
| + | | '' | ||
| - | Insert the USB-side of the tool into your computer. | + | /* |
| + | * Tool Pin '' | ||
| + | * Tool Pin '' | ||
| + | * Tool Pin '' | ||
| + | * Tool Pin '' | ||
| + | */ | ||
| + | Insert | ||
| * Blue line: '' | * Blue line: '' | ||
| Line 28: | Line 35: | ||
| ===== Setup Serial Communication Program ===== | ===== Setup Serial Communication Program ===== | ||
| - | < | + | < |
| - | * VIM1/ | + | * VIM1/ |
| - | * VIM4 Baudrate: 921600 | + | * VIM4/ |
| + | * Edge1/Edge2 Baudrate: **1500000** | ||
| </ | </ | ||
| 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 | + | Add permissions |
| - | ```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 | + | You may need to logout or reboot your system to take effect. |
| </ | </ | ||
| 2. **Setup** | 2. **Setup** | ||
| - | Connect the USB to TTL Converter tool to your SBC and computer | + | Connect |
| - | ```sh | + | ```shell |
| $ sudo minicom -s | $ sudo minicom -s | ||
| ``` | ``` | ||
| - | Enter the minicom setup mode: | + | Enter the '' |
| ``` | ``` | ||
| +-----[configuration]------+ | +-----[configuration]------+ | ||
| Line 73: | Line 81: | ||
| +--------------------------+ | +--------------------------+ | ||
| ``` | ``` | ||
| - | Use the up/ | + | Use the up/ |
| * You can use '' | * You can use '' | ||
| Line 152: | Line 160: | ||
| Install the CH340 driver. | Install the CH340 driver. | ||
| - | - Download the [[https://dl.khadas.com/ | + | - Download the [[dl>tools/ch34x_install_windows_v3_4.zip|driver]]. |
| - Unzip the compressed file. | - Unzip the compressed file. | ||
| - Run the installer. | - Run the installer. | ||
| 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 '' | Connect the USB to TTL Converter tool to your SBC and computer before setting up '' | ||
| - | ```sh | + | ```shell |
| $ sudo minicom -s | $ sudo minicom -s | ||
| ``` | ``` | ||