- 環境
Zynq 激活 SD,UART,Ethernet。
- PetaLinux 配置
$ petalinux-config
設置開發板 ip 地址,
打開調試選項
開發板從 SD 卡啟動,可見 tcf-agent 已經就緒,
xsdk 中新建 Linux 應用,例如 helloworld。
右鍵點擊 helloworld 工程, 選擇 Debug As > Debug Configurations
打開的窗口雙擊 Xilinx C/C++ application (System Debugger),
在 Target Setup 頁面, 設置調試類型為 Linux Application Debug,然后點擊 New,
設置目標名稱為 helloworld(任意設置即可) , Host 指定為開發板的 IP 地址,例如 192.168.1.10, 注意 TCF Agent 的默認端口號是 1534, 不作改動,點擊 OK,
再來到 Application 頁面, Project Name 選項點擊 Browse,
選擇 helloworld,點擊 OK,
Remote File Path 填為 /tmp/helloworld.elf,
連接電腦 USB 到開發板 JTAG 口, 回到主窗口, 點擊 Debug,
完。