zynq tcf-agent debug Linux application

  • 环境

Zynq 激活 SD,UART,Ethernet。

  • PetaLinux 配置
$ petalinux-config

 

设置开发板 ip 地址,

zynq tcf-agent debug Linux application

zynq tcf-agent debug Linux application

zynq tcf-agent debug Linux application

 

打开调试选项

zynq tcf-agent debug Linux application

zynq tcf-agent debug Linux application

 

开发板从 SD 卡启动,可见 tcf-agent 已经就绪,

zynq tcf-agent debug Linux application

 

xsdk 中新建 Linux 应用,例如 helloworld。

 

右键点击 helloworld 工程, 选择 Debug As > Debug Configurations

zynq tcf-agent debug Linux application

 

打开的窗口双击 Xilinx C/C++ application (System Debugger),

zynq tcf-agent debug Linux application

 

在 Target Setup 页面, 设置调试类型为 Linux Application Debug,然后点击 New,

zynq tcf-agent debug Linux application

 

设置目标名称为 helloworld(任意设置即可) , Host 指定为开发板的 IP 地址,例如 192.168.1.10, 注意 TCF Agent 的默认端口号是 1534, 不作改动,点击 OK,

zynq tcf-agent debug Linux application

 

再来到 Application 页面, Project Name 选项点击 Browse,

zynq tcf-agent debug Linux application

 

选择 helloworld,点击 OK,

zynq tcf-agent debug Linux application

 

Remote File Path 填为 /tmp/helloworld.elf,

zynq tcf-agent debug Linux application

 

连接电脑 USB 到开发板 JTAG 口, 回到主窗口, 点击 Debug,

zynq tcf-agent debug Linux application

 

完。

 

原文链接: https://www.cnblogs.com/gaowengang/p/12918037.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍;

也有高质量的技术群,里面有嵌入式、搜广推等BAT大佬

    zynq tcf-agent debug Linux application

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/349567

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年3月2日 上午5:45
下一篇 2023年3月2日 上午5:46

相关推荐