1. 開發環境:
(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Windows OS: MS-Windows XP.
(4). Toolchains: AndeSight v1.4 for MS-Windows XP.
2. 實驗目的:
使用ESL模擬平台環境下GPIO控制.
3. 實驗步驟:
(1). 依照之前的章節新增一個新的C Project與Source File,並加入下列程式.

程式下載:
http://cid-b01cb9ac20175eaa.office.live.com/self.aspx/3%5E_AndeSight%5E_VEP%5E_ESL%5E_GPIO/3%5E_AndeSight%5E_VEP%5E_ESL%5E_GPIO.zip
(2). 先建立模擬平台(VEP, Visual Editor Project),使用滑鼠選擇〝
Target〞->〝
Fork VEP Target〞.

(3). 選擇模擬的平台,這裡為了配合編譯器是for N1213-S core,所以這裡選擇〝
ADP-XC5-for-N1213-S.vep〞,之後按〝
Finish〞.

(4). 最後可以看到模擬平台的VEP產生.

(5). 之後要建立程式模擬參數,先使用〝
滑鼠左鍵〞點選Project,再點選〝
滑鼠右鍵〞,之後選擇〝
New〞->〝
New VEP Config〞.

(6). 在〝
File name:〞欄位裡輸入〝
GPIO.vep〞.

(7). 再選擇VEP 樣板,這裡選擇〝
ADP-XC5 for N1213-S〞,之後按〝
Finish〞.

(8). 可以看到一個完整模擬ADP-XC5實驗板上 SoC的樣板.

(9). 最後我們要執行程式, ,先使用〝
滑鼠左鍵〞點選Project,再點選〝
滑鼠右鍵〞,之後選擇〝
Run As〞->〝
Run〞.

(10). 使用〝
滑鼠左鍵〞點兩下〝
Cross Platform Application〞.

(11). 之後如下圖所示,增加了要run的Project,之後按〝
Run〞.

(12). 最後可以在下列GPIO的模擬視窗上看到閃爍的紅點.

(13). 終止程式需按下〝
Terminate〞.

(14). 最後當程式執行完畢,需要修改程式之前,先至跳至〝
Debug〞模式視窗,請按〝
Remove All Terminated Launches〞圖示ICOM,將此次的程式設定清除.
沒有留言:
張貼留言