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模擬平台環境下Debug.
3. 實驗步驟:
(1). 我們繼續沿用上一章節的程式,在編輯程式的視窗使用〝
滑鼠左鍵〞快點兩下設置〝
中斷點〞.

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

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

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

(5). 出現下列視窗,按〝
Yes〞至下一步驟.

(6). 可以看到視窗由〝
Coder〞模式視窗,跳至〝
Debug〞模式視窗.

(7). 目前HelloWorld程式只用到printf(),因此會在Console視窗上顯示結果,我們要將Console視窗設定成固定顯示結果的視窗模式,使用〝
滑鼠左鍵〞點選〝
Display Selected Console〞圖示ICOM.

(8). 之後再使用〝
滑鼠左鍵〞點選〝
Pin Console〞圖示ICOM,防止程式執行時顯示結果的視窗模式與其他資訊視窗跳來跳去,影響閱讀.

(9). 我們可以看到〝
Debug〞視窗,有許多Debug所使用的圖示ICOM.

(10). 這時我們先按〝
Resume〞圖示ICOM,讓程式執行到中斷點.

(11). 之後按〝
Step Into〞做單歨執行程式,這時可以看到Console視窗出現第一個〝
Hello World!〞.

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