1.撰寫在超級終端機顯示HelloWorld簡單範例程式.
2.環境:
(1). Linux OS: Ubuntu9.04.
(2).實驗板:ADP-XC5FF676 V1.1(Andes N12 core) .
3. 範例程式_Hello1:
(1). 依照下列所示撰寫hello.c程式,此程式只是顯示2個printf與主程式呼叫副程式的簡單範例.
下載完整程式:
http://cid-b01cb9ac20175eaa.skydrive.live.com/self.aspx/Non%20OS%7C_hello1/hello1.zip
完整程式包一個makefile 與.ld檔(必要檔案,在此不介紹此檔內容).
(2). 使用"Terminal"輸入"make rebuild",會產生下列訊息.
(3). 之後產生hello.bin執行檔.
(5). 使用"超級終端機",輸入"97",再輸入〝c:〞.
(6). 輸入〝hello.bin〞,再輸入〝0x500000〞.
2.環境:
(1). Linux OS: Ubuntu9.04.
(2).實驗板:ADP-XC5FF676 V1.1(Andes N12 core) .
3. 範例程式_Hello1:
(1). 依照下列所示撰寫hello.c程式,此程式只是顯示2個printf與主程式呼叫副程式的簡單範例.

http://cid-b01cb9ac20175eaa.skydrive.live.com/self.aspx/Non%20OS%7C_hello1/hello1.zip
完整程式包一個makefile 與.ld檔(必要檔案,在此不介紹此檔內容).



(4). 將hello.bin存在SD卡內,並裝上ADP-XC5FF676 V1.1實驗板上,並接上URAT與電腦連接後,開啟電源,按SW2->SW4.



(7). 輸入〝55〞.
(8). 輸入〝go 0x500000〞執行程式,顯示結果如下所示. 


沒有留言:
張貼留言