zynq tcf-agent debug Linux application


  • 環境

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,

 

完。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM