Linux uses USB to serial port to debug ARM development board

Publisher:keiss2018Latest update time:2020-02-14 Source: eefocusKeywords:linux  debugging Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The USB to serial port uses the PL2303 chip, and Linux 2.4 and above versions already have built-in drivers.

1. Install minicom

In Ubuntu, use sudo apt-get install minicom to install it


2. Configure minicom

   # minicom -s
   Serial port setup [Enter]
    +-------------------------------------------------------------+
    | A -    Serial Device      : /dev/ttyUSB0                    |
    | B - Lockfile Location     : /var/lock                       |
    | C -   Callin Program      :                                 |
    | D - Callout Program      -:                                 |
    | E -    Bps/Par/Bits       : 115200 8N1                      |
    | F - Hardware Flow Control : No                              |
    | G - Software Flow Control : No                              |
    |                                                             |
    |    Change which setting?                                    |
    +-------------------------------------------------------------+
注: 如果没有使用USB转接口,Serial Device要配置为/dev/ttyS0

   Save setup as dfl
   Exit from Minicom

 

When using USB to serial port, please note:
First, you need to load the USB-serial conversion line driver: modprobe pl2303

Check the status: dmesg | grep pl2303

[ 2788.401258] usb 6-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 6664.718291] usbcore: registered new interface driver pl2303

 

3. Use minicom to transfer files
--------------------------------------------------
# minicom
(Ctrl + a) --> s --> zmodem --> [Okay] --> 
    
    +-----------------------------------------+ 
    |No file selected - enter filename: | 
    |> /home/zxl/ssl/codes/led/lls_led.ko | [Enter]
    +-----------------------------------------+ 

Keywords:linux  debugging Reference address:Linux uses USB to serial port to debug ARM development board

Previous article:Using Qt ARM cross-compilation prompts "This Qt version has an unknown tool chain"
Next article:tslib-1.4 in arm was successfully transplanted, but the qt application touch screen did not respond

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号