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