This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:common:development:setup-serial-tool [2022/06/29 21:51] 127.0.0.1 external edit |
products:sbc:common:development:setup-serial-tool [2024/08/18 22:18] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Setup Serial Tool ====== | ====== Setup Serial Tool ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | 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 ===== | ||
+ | |||
+ | Take a serial tool, which is also known as an USB to TTL Converter like [[https:// | ||
+ | |||
+ | ===== Hardware Connection ===== | ||
+ | |||
+ | {{ / | ||
+ | |||
+ | You can connect your serial tool to the board GPIO pins, referring to the following diagram, | ||
+ | |||
+ | ^ Serial tools pin ^ GPIO board header pin ^ Name ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | /* | ||
+ | * Tool Pin '' | ||
+ | * Tool Pin '' | ||
+ | * Tool Pin '' | ||
+ | * Tool Pin '' | ||
+ | */ | ||
+ | Insert the USB port into your computer. | ||
+ | |||
+ | * Blue line: '' | ||
+ | * Orange line: '' | ||
+ | * Black line: '' | ||
+ | |||
+ | ===== Setup Serial Communication Program ===== | ||
+ | |||
+ | <WRAP important > | ||
+ | * VIM1/ | ||
+ | * VIM4/VIM1S Baudrate: **921600** | ||
+ | * Edge1/Edge2 Baudrate: **1500000** | ||
+ | </ | ||
+ | |||
+ | <tabbox Ubuntu> | ||
+ | |||
+ | Use the '' | ||
+ | |||
+ | 1. **Install** | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install minicom | ||
+ | ``` | ||
+ | Add permissions to access | ||
+ | ```shell | ||
+ | $ sudo usermod -a -G dialout $(whoami) | ||
+ | ``` | ||
+ | <WRAP info > | ||
+ | You may need to logout or reboot your system to take effect. | ||
+ | </ | ||
+ | |||
+ | 2. **Setup** | ||
+ | |||
+ | Connect your SBC to the computer via the USB to TTL Converter tool before setting up '' | ||
+ | |||
+ | ```shell | ||
+ | $ sudo minicom -s | ||
+ | ``` | ||
+ | |||
+ | Enter the '' | ||
+ | ``` | ||
+ | +-----[configuration]------+ | ||
+ | | Filenames and paths | | ||
+ | | File transfer protocols | ||
+ | | Serial port setup | | ||
+ | | Modem and dialing | ||
+ | | Screen and keyboard | ||
+ | | Save setup as dfl | | ||
+ | | Save setup as.. | | ||
+ | | Exit | | ||
+ | | Exit from Minicom | ||
+ | +--------------------------+ | ||
+ | ``` | ||
+ | Use the up/down arrow keys to shift to '' | ||
+ | |||
+ | * You can use '' | ||
+ | * You can use '' | ||
+ | * You can use '' | ||
+ | |||
+ | After completing the setup, hit Enter to exit, then choose Save setup as dfl, then Exit from Minicom. | ||
+ | <WRAP info > | ||
+ | The serial device node must correspond to Ubuntu’s serial device node. | ||
+ | </ | ||
+ | |||
+ | 3. **Launch** | ||
+ | |||
+ | Type '' | ||
+ | |||
+ | ``` | ||
+ | $ minicom | ||
+ | elcome to minicom 2.7.1 | ||
+ | |||
+ | OPTIONS: I18n | ||
+ | Compiled on Dec 23 2019, 02:06:26. | ||
+ | Port / | ||
+ | |||
+ | Press CTRL-A Z for help on special keys | ||
+ | |||
+ | Ubuntu 20.04.2 LTS Khadas ttyS0 | ||
+ | |||
+ | Khadas login: | ||
+ | ``` | ||
+ | |||
+ | 4. **Exit** | ||
+ | |||
+ | You can use '' | ||
+ | ``` | ||
+ | +-------------------------------------------------------------------+ | ||
+ | | Minicom Command Summary | ||
+ | | | | ||
+ | | Commands can be called by CTRL-A < | ||
+ | | | | ||
+ | | Main Functions | ||
+ | | | | ||
+ | | Dialing directory..D | ||
+ | | Send files.........S | ||
+ | | comm Parameters....P | ||
+ | | Capture on/ | ||
+ | | send break.........F | ||
+ | | Terminal settings..T | ||
+ | | lineWrap on/ | ||
+ | | Paste file.........Y | ||
+ | | Add Carriage Ret...U | ||
+ | | | | ||
+ | | | ||
+ | +-------------------------------------------------------------------+ | ||
+ | ``` | ||
+ | Use '' | ||
+ | |||
+ | ``` | ||
+ | +----------------------+ | ||
+ | | Leave without reset? | | ||
+ | | | ||
+ | +----------------------+ | ||
+ | ``` | ||
+ | Choose '' | ||
+ | |||
+ | |||
+ | <WRAP info > | ||
+ | * If the Terminal output contains this line, you need to use '' | ||
+ | / | ||
+ | ``` | ||
+ | * To access U-Boot, leave your USB-Serial-Debug tool connected, then press the reset button on your device once. You should see some print-out on your Terminal, then quickly press the '' | ||
+ | * Standard “help” commands are listed in U-Boot Usage Guide, you’ll need to first have a version of Android or Ubuntu installed in your VIM device, from our [[https:// | ||
+ | </ | ||
+ | |||
+ | <tabbox Windows> | ||
+ | |||
+ | 1. Install Driver | ||
+ | |||
+ | Install the CH340 driver. | ||
+ | |||
+ | - Download the [[dl> | ||
+ | - Unzip the compressed file. | ||
+ | - Run the installer. | ||
+ | |||
+ | 2. Install SecureCRT | ||
+ | |||
+ | Download the program from the [[https:// | ||
+ | |||
+ | 3. Setup SecureCRT | ||
+ | |||
+ | Before starting SecureCRT, you’ll need to connect the USB to TTL Converter tool to your SBC and computer. | ||
+ | |||
+ | Launch SecureCRT and navigate to '' | ||
+ | |||
+ | {{/ | ||
+ | |||
+ | Select the '' | ||
+ | |||
+ | {{/ | ||
+ | |||
+ | Click '' | ||
+ | |||
+ | {{/ | ||
+ | |||
+ | <tabbox Mac OS> | ||
+ | |||
+ | 1. Setup Meta key | ||
+ | |||
+ | minicom needs a Meta key. Use Terminal to create a Meta key. | ||
+ | Go to '' | ||
+ | |||
+ | {{/ | ||
+ | {{/ | ||
+ | {{/ | ||
+ | |||
+ | 2. Install | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install minicom | ||
+ | ``` | ||
+ | Add access permissions | ||
+ | ```shell | ||
+ | $ sudo usermod -a -G dialout $(whoami) | ||
+ | ``` | ||
+ | <WRAP info > | ||
+ | You may need to logout or reboot your system for changes to take effect. | ||
+ | </ | ||
+ | |||
+ | 3. Setup | ||
+ | |||
+ | Connect the USB to TTL Converter tool to your SBC and computer before setting up '' | ||
+ | ```shell | ||
+ | $ sudo minicom -s | ||
+ | ``` | ||
+ | Enter the minicom setup mode: | ||
+ | ``` | ||
+ | +-----[configuration]------+ | ||
+ | | Filenames and paths | | ||
+ | | File transfer protocols | ||
+ | | Serial port setup | | ||
+ | | Modem and dialing | ||
+ | | Screen and keyboard | ||
+ | | Save setup as dfl | | ||
+ | | Save setup as.. | | ||
+ | | Exit | | ||
+ | | Exit from Minicom | ||
+ | +--------------------------+ | ||
+ | ``` | ||
+ | Use the up/down arrows to shift to '' | ||
+ | |||
+ | * You can use '' | ||
+ | * You can use '' | ||
+ | * You can use '' | ||
+ | |||
+ | After completing the setup, hit Enter to exit, then choose Save setup as dfl, then Exit from Minicom. | ||
+ | |||
+ | <WRAP info > | ||
+ | The serial device node must correspond to the Mac OS’ serial device node. | ||
+ | </ | ||
+ | |||
+ | 4. Launch | ||
+ | |||
+ | Type '' | ||
+ | |||
+ | ``` | ||
+ | $ minicom | ||
+ | elcome to minicom 2.7.1 | ||
+ | |||
+ | OPTIONS: I18n | ||
+ | Compiled on Dec 23 2019, 02:06:26. | ||
+ | Port / | ||
+ | |||
+ | Press CTRL-A Z for help on special keys | ||
+ | |||
+ | Ubuntu 20.04.2 LTS Khadas ttyS0 | ||
+ | |||
+ | Khadas login: | ||
+ | ``` | ||
+ | |||
+ | 5. Exit | ||
+ | |||
+ | You can use '' | ||
+ | ``` | ||
+ | +-------------------------------------------------------------------+ | ||
+ | | Minicom Command Summary | ||
+ | | | | ||
+ | | Commands can be called by CTRL-A < | ||
+ | | | | ||
+ | | Main Functions | ||
+ | | | | ||
+ | | Dialing directory..D | ||
+ | | Send files.........S | ||
+ | | comm Parameters....P | ||
+ | | Capture on/ | ||
+ | | send break.........F | ||
+ | | Terminal settings..T | ||
+ | | lineWrap on/ | ||
+ | | Paste file.........Y | ||
+ | | Add Carriage Ret...U | ||
+ | | | | ||
+ | | | ||
+ | +-------------------------------------------------------------------+ | ||
+ | ``` | ||
+ | Use '' | ||
+ | |||
+ | ``` | ||
+ | +----------------------+ | ||
+ | | Leave without reset? | | ||
+ | | | ||
+ | +----------------------+ | ||
+ | ``` | ||
+ | Choose '' | ||
+ | </ | ||
+ | |||