操作系统:Ubuntu 10.04
交叉编译器:arm-linux-gcc-4.1.1
一、安装配置minicom
1、安装minicom
lingd@ubuntu:~$ sudo apt-get install minicom
2、配置minicom
lingd@ubuntu:~$ sudo minicom -s
出现这样的配置界面:
+-----[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 |
+--------------------------+
选择Serial port setup, 会看到这样的选项:
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyS0 |
| 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? |
+-----------------------------------------------------------------------+
输入前面对应的字母即可进入相应的选项。将选项A的值设置为/dev/ttyS0 表示是串口1,将选项E的值设置为115200,将选项F设置为NO(请根据实际情况配置).
设置默认上传/下载的目录,选择Filenames and paths , 会看到这样的选项:
+-----------------------------------------------------------------------+
| A - Download directory : /home/lingd/arm/download |
| B - Upload directory : /home/lingd/arm/upload |
| C - Script directory : |
| D - Script program : runscript |
| E - Kermit program : |
| F - Logging options |