1.創(chuàng)建一個FVP模型 .ds腳本用于代替ARM調(diào)試器
a. 右鍵單擊工程根目錄彈出菜單選擇New →?Other....
b. 在 新建對話框中, 選擇 Arm Debugger →?Arm Debugger Script,單擊 Next.
c. 輸入use_model_semihosting文件名,單擊Finish按鈕。
d. 在use_model_semihosting 文件里輸入set semihosting enabled off,并保存。
2. 在主菜單中File →?New →?Model Connection.
3. 在 Model Connection對話框中, 輸入調(diào)試鏈接名字,例如HelloWorld_FVP,關(guān)聯(lián)項目,然后單擊Next按鈕
4.在Target Selection 對話框中, 選擇Arm FVP (Installed with Arm DS) →?Base_A53x1,單擊Finish按鈕。
5. 在Edit Configuration對話框里
a. 在 Connection 選項卡里, 確保 Arm FVP (Installed with Arm DS) →?Base_A53x1 →?Bare Metal Debug →?Cortex-A53 被選中.
b. 在 Bare Metal Debug---the Model parameters區(qū)域, 添加以下參數(shù):
-C bp.secure_memory=false
這個參數(shù)使能訪問DRAM存儲器。
c. 在Files 選項卡中, 選擇 Target Configuration →?Application on host to download →?Workspace.
d. 單擊展開 HelloWorld 項目下Debug 文件夾, 選擇 HelloWorld.axf 并單擊OK.
e. 在Debugger選項卡中, 選擇 Debug from symbol.
f. 使能 Run target initialization debugger script (.ds/.py) ,單擊Workspace....
g. 選擇 use_model_semihosting.ds 腳本,單擊 OK.
6. 單擊 Debug 把應用程序下載到目標板。
結(jié)論
Arm Development Studio 鏈接?model 并顯示連接狀態(tài)在Debug Control 視圖中.
應用程序下載到目標板上,然后停留在main()函數(shù),等待執(zhí)行。