This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:edge-2l:development:setup-serial-tool [2026/02/27 04:28] gray Modify non-standard titles |
products:sbc:edge-2l:development:setup-serial-tool [2026/05/11 22:17] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Edge-2L setup serial debug console ====== | ====== Edge-2L setup serial debug console ====== | ||
| - | ===== Introduction ===== | + | {{page>products:sbc:edge2:development: |
| - | + | ||
| - | This page introduces the serial debugging tools. You will learn how to connect a Khadas SBC to a PC and install debugging software on different operating systems. | + | |
| - | + | ||
| - | ===== Preparation ===== | + | |
| - | + | ||
| - | You will need a serial tool, also known as a USB-to-TTL Converter, such as the [[https:// | + | |
| - | + | ||
| - | An [[/ | + | |
| - | + | ||
| - | + | ||
| - | ===== Hardware connection ===== | + | |
| - | + | ||
| - | {{/products/sbc/ | + | |
| - | + | ||
| - | ^ ^ USB-TTL pin name ^ Edge-2L GPIO name ^ GPIO pin ^ | + | |
| - | | 1 | '' | + | |
| - | | 2 | '' | + | |
| - | | 3 | '' | + | |
| - | + | ||
| - | Full [[/ | + | |
| - | + | ||
| - | /* IMHO its ugly | + | |
| - | + | ||
| - | You can connect your serial tool to the board GPIO pins, referring to the following diagram, | + | |
| - | + | ||
| - | * Tool Pin '' | + | |
| - | * Tool Pin '' | + | |
| - | * Tool Pin '' | + | |
| - | + | ||
| - | */ | + | |
| - | + | ||
| - | ===== Setup serial communication program ===== | + | |
| - | + | ||
| - | <WRAP important > | + | |
| - | Edge-2L Baudrate: **1500000** | + | |
| - | </ | + | |
| - | + | ||
| - | <tabbox Ubuntu> | + | |
| - | + | ||
| - | Use the '' | + | |
| - | + | ||
| - | 1. **Install** | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ sudo apt update | + | |
| - | $ sudo apt install minicom | + | |
| - | ``` | + | |
| - | Add permissions to access the serial port: | + | |
| - | ```shell | + | |
| - | $ sudo usermod -a -G dialout $(whoami) | + | |
| - | ``` | + | |
| - | <WRAP info > | + | |
| - | You may need to log out or reboot your system for this change to take effect. | + | |
| - | </ | + | |
| - | + | ||
| - | 2. **Setup** | + | |
| - | + | ||
| - | Connect your SBC to the computer via the USB-to-TTL converter before setting up '' | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ sudo minicom -s | + | |
| - | ``` | + | |
| - | + | ||
| - | You will 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 navigate to '' | + | |
| - | + | ||
| - | * Press '' | + | |
| - | * Press '' | + | |
| - | * Press '' | + | |
| - | + | ||
| - | After completing the setup, press Enter to exit the menu, then select '' | + | |
| - | <WRAP info > | + | |
| - | The serial device node must correspond to the correct serial device node in Ubuntu. | + | |
| - | </ | + | |
| - | + | ||
| - | 3. **Launch** | + | |
| - | + | ||
| - | Type '' | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ minicom | + | |
| - | ``` | + | |
| - | Output example: | + | |
| - | + | ||
| - | ```txt | + | |
| - | welcome 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** | + | |
| - | + | ||
| - | Press '' | + | |
| - | ``` | + | |
| - | +-------------------------------------------------------------------+ | + | |
| - | | 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 | + | |
| - | | | | + | |
| - | | | + | |
| - | +-------------------------------------------------------------------+ | + | |
| - | ``` | + | |
| - | Press '' | + | |
| - | + | ||
| - | ``` | + | |
| - | +----------------------+ | + | |
| - | | Leave without reset? | | + | |
| - | | | + | |
| - | +----------------------+ | + | |
| - | ``` | + | |
| - | Choose '' | + | |
| - | + | ||
| - | + | ||
| - | <WRAP info > | + | |
| - | * If the terminal output contains the following line, you need to use '' | + | |
| - | + | ||
| - | ```sh | + | |
| - | / | + | |
| - | ``` | + | |
| - | * To access U-Boot, keep the USB-Serial-Debug | + | |
| - | * Standard “help” commands are listed in the U-Boot Usage Guide. You will need to have a version of Android or Ubuntu installed on your device, available from our [[https:// | + | |
| - | </ | + | |
| - | + | ||
| - | <tabbox Windows> | + | |
| - | + | ||
| - | 1. Install Driver | + | |
| - | + | ||
| - | Install the CH340 driver. | + | |
| - | + | ||
| - | - Download the [[https:// | + | |
| - | - Unzip the compressed file. | + | |
| - | - Run the installer. | + | |
| - | + | ||
| - | 2. Install SecureCRT | + | |
| - | + | ||
| - | Download the program from the [[https:// | + | |
| - | + | ||
| - | 3. Setup SecureCRT | + | |
| - | + | ||
| - | Before starting SecureCRT, 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 requires a Meta key. To create one, open the Terminal application and go to '' | + | |
| - | + | ||
| - | {{/ | + | |
| - | {{/ | + | |
| - | {{/ | + | |
| - | + | ||
| - | 2. Install | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ brew install minicom | + | |
| - | ``` | + | |
| - | Add access permissions | + | |
| - | ```shell | + | |
| - | $ sudo usermod -a -G dialout $(whoami) | + | |
| - | ``` | + | |
| - | <WRAP info > | + | |
| - | You may need to log out 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 | + | |
| - | ``` | + | |
| - | You will 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 arrow keys to navigate to '' | + | |
| - | + | ||
| - | * Press '' | + | |
| - | * Press '' | + | |
| - | * Press '' | + | |
| - | + | ||
| - | + | ||
| - | After completing the setup, press Enter to exit the menu, then select '' | + | |
| - | + | ||
| - | <WRAP info > | + | |
| - | The serial device node must correspond to the correct serial device node in macOS. | + | |
| - | </ | + | |
| - | + | ||
| - | 4. Launch | + | |
| - | + | ||
| - | Type '' | + | |
| - | + | ||
| - | ``` | + | |
| - | $ minicom | + | |
| - | ``` | + | |
| - | Output example: | + | |
| - | ``` | + | |
| - | 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 | + | |
| - | + | ||
| - | Press '' | + | |
| - | ``` | + | |
| - | +-------------------------------------------------------------------+ | + | |
| - | | 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 | + | |
| - | | | | + | |
| - | | | + | |
| - | +-------------------------------------------------------------------+ | + | |
| - | ``` | + | |
| - | Press '' | + | |
| - | + | ||
| - | You will see: | + | |
| - | + | ||
| - | ``` | + | |
| - | +----------------------+ | + | |
| - | | Leave without reset? | | + | |
| - | | | + | |
| - | +----------------------+ | + | |
| - | ``` | + | |
| - | Select '' | + | |
| - | + | ||
| - | </ | + | |