Use minicom linux carried out under the serial debugging (EAIDK-610)

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43895902/article/details/100100303

Serial debugging

  1. General Linux Download minicom:
sudo apt-get install minicom

CentOS Download minicom:

yum install minicom
  1. The Debug port EAIDK-610 development board is connected to the USB port of the host.

  2. Open minicom as root:

sudo minicom -s
  1. Open menu Minicom: input CTRL-A + z.

  2. Minicom to enter the configuration interface: Enter the "O" select "cOnfigure Minicom".

  3. Into the serial port settings: Select "Serial port setup".

  4. Serial device provided: input "A", is written "/ dev / ttyUSB0", is determined by the transport.
    (As with a USB serial port, if the direct use of the serial line, with the / dev / ttyS0, 1 indicates a serial port)

  5. Prohibit Flow Control: Type "F", press Enter to determine.

  6. Set the baud rate: input "E", then input "A" until "Current 1500000 8N1", and then enter OK. (Based on individual case may be)

  7. Save Settings: Select "Save setup as dfl". 10. Exit settings: Select "Exit".

Set up a virtual keyboard via serial debugging tools:

  • After the restart development board, input the user's account password
  • Enter virtual_keyboard,
    Here Insert Picture Description
  • Complete the operation
  • Ctrl + C End

File transfer between the host and the development board

  1. From the development board to a PC to transfer files
  • #Sudo minicom -s command input in the PC terminal, into the Minicom, on the development board or reset
  • Directory into the target file is located in the terminal development board
  • Sz filename can command, files are automatically saved in the root directory of the PC (can be set)
  1. Transfer files from pc to development board
  • Open the file in the directory transfer PC terminal, enter the command #sudo minicom -s, enter Minicom, on the development board or reset (set)
  • First I want to receive the files in the directory under which the development board, then enter the directory in the terminal, such as: #cd / root / Documents
  • Press ctrl + a, then press z, enter menu minicom
  • Select s, send files into the interface, select zmode, and then press Enter, and you will enter the file name,
  • Enter to start sending the file, after the completion of any key to exit

When in a user is using minicom, then switch the user, think about using minicom then prompts Device / dev / ttyS0 is locked. Just delete the / var / lock / LCK ... ttyS0, then enable minicom

Set the default directory transmission
input minicom -s on the host shell, enter the following interface:

—[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

Selecting a first item Filenames and paths, enter the following interface

±---------------------------------------------------------------+
| A - Download directory : /home//tmp/arm
\ B - Upload directory : /home/
/tmp/linux |
| C - Script directory : |
| D - Script program : runscript |
| E - Kermit program : |
| F - Logging options |
| |
| Change which setting?

Are set to A, B directory contents of,
A development board is stored to the host to send the file directory,
B is the host sends the file to the development board, the files in the directory where you want to send the host,
the modified save and exit.

Guess you like

Origin blog.csdn.net/weixin_43895902/article/details/100100303