在Linux 環境下開發嵌入式系統程式時,又要使用Ms Windows下的超級終端機,是否覺得非常麻煩,可以使用Linux下的minicom文字輸入介面的終端機.
1. 實驗環境:
(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-AG101 V1.2.
(3). Linux OS: Ubuntu10.04.
(4). Embedded Linux2.6.27
2. 實驗步驟:
(1). 使用〝Terminal〞,輸入〝
sudo apt-get install minicom〞,輸入Password安裝.

(2). 安裝完成後,輸入〝
sudo minicom〞開啟minicom.

(3). 使用鍵盤按下〝
Ctrl +
A〞鍵,之後再按〝
Z〞鍵.

(4). 到下列選單後,使用鍵盤按下〝
O〞鍵,進入〝
cOnfigure minicom〞設定參數.

(5). 選擇〝
Serial port setup〞選項,設定串列埠設定參數.

(6). 進入〝Serial port setup〞後設定選項,我們需要修改〝
A - Serial Device〞,〝
E - Bps/Par/Bits〞,〝
F - Hardware Flow control〞等參數.(6-1). 使用鍵盤按〝
A〞鍵後,直接刪除原來的參數,因為我使用USB to RS232的轉接線因此輸入〝
/dev/ttyUSB0〞,之後按〝
Enter〞鍵結束設定.
注意:
〝
/dev/ttyUSB0〞 USB to RS232轉接線.
〝
/dev/ttyS0〞 COM1.
〝
/dev/ttyS1〞 COM2.

(6-2). 使用鍵盤按〝
E〞鍵後,在按〝
D〞鍵,選擇for Andes core平台的鮑率〝38400〞,之後按〝
Enter〞鍵結束設定.

(6-3). 使用鍵盤按〝
F〞鍵後,將參數改成〝
No〞,完成(6-1)~(6-3)設定後, 按〝
Enter〞鍵結束設定.

(7). 選擇〝
Save setup as dfl〞存檔,這樣之後開啟minicom後,都會使用上面的設定參數.

(8). 選擇〝
Exit〞結束設定.

(9). 重新開啟一個新的〝Terminal〞,輸入〝
minicom〞開啟minicom.

(10). 將USB to RS232的轉接線接至Andes Core平台後,按〝
Enter〞鍵所顯示的結果如下所示.
沒有留言:
張貼留言