1.简介

本教程将指导您使用 SDK 调试应用程序项目,本教程中描述的调试步骤是非常基础的;有关更多信息,请参考 SDK 帮助中的调试任务。

在使用本教程之前,您应该已经创建了一个应用程序项目,并在工作区中成功地构建了它。

2.配置目标连接

注意:如果您计划使用本地目标 / 计算机,则不需要配置目标连接。您可以跳过这一步。

  1. 确保已连接到远程主机;
  2. 通过执行 hw_server.bat 或 hw_server.sh 文件,在远程主机上手动启动 hw_server 服务;
  3. 在 “Target Connections” 视图中,右键 “Hardware Server“ 项 -> 选择 “Add Target Connection” -> 弹出 “Target Connection Details” 对话框;
  4. 在弹出对话框的 “Target name” 文本框中指定新远程连接的名称;
  5. 可选地,选中 “Set as default target” 复选框,将此目标设置为默认;
  6. 指定远程主机上运行的 hw_server 所在的 IP 地址和端口号。默认情况下,hw_server 运行在端口 3121 上;
  7. 单击 OK 创建到指定远程主机的新目标连接。

3.调试应用程序

使用调试配置调试目标上的程序。如果您有一个现有的调试配置,您可以重用它。否则,必须创建一个新的调试配置来调试程序。

  1. 单击 Run -> Debug Configurations;
  2. 在配置列表中,选择 “Xilinx C/C++ application (System Debugger)” 调试配置;
  3. 单击 Debug。

注1:以上步骤全部 OK 时,显示的提示信息如下所示。

SDK switches to the debug perspective and starts downloading and debugging the program. To view the program output, use the STDIO Connection tab to use SDK console.

In the Debug Perspective, the processor will be stopped in the program main() function. You can perform debug tasks in this perspective.

Some of the common tasks are listed below; for more information, refer to the Debug help pages.

* Control application debug flow - resume, suspend, step into, step over, step return and terminate the debug session
   * Set breakpoints on a program line or watchpoints on a global variable
   * Read program memories, variables, stack trace and processor registers
   * Read program function outline, dive into function or variable definitions, or view disassembly

注2:原文参见 Xilinx SDK 软件内置的帮助文档。

打开方法:打开 SDK -> Help -> Cheet Sheets... -> Xilinx SDK Tutorials -> How to debug a new software application 。

注3:hw_server 程序与 SDK 程序在同一目录。

注:此方法未测试成功,原因待调查。

最新文章

  1. 【Win 10 应用开发】打印UI元素
  2. 【log】log4j
  3. Objective-C 【Category-非正式协议-延展】
  4. 什么是Web Worker?
  5. C++ 基础知识回顾总结
  6. HDU 5950 Recursive sequence(矩阵快速幂)
  7. day12 Python列表
  8. MatchText MatchStr 区别
  9. Spark数据本地性
  10. 23、List集合
  11. JS定义类及对象
  12. [Java]通过java获取计算机名
  13. 批量删除linux的文件;find方法批量删除文件;find查找某时间段内的所有文件
  14. 瞎记录java (含this 的用法)
  15. SqlSugar批量添加修改问题
  16. 免费证书申请——Let's Encrypt的申请与应用(IIS,Tomcat)
  17. PHP artisan
  18. P2846 [USACO08NOV]光开关Light Switching
  19. 九度oj 题目1019:简单计算器
  20. C# winform启动外部exe后,如何完全阻断父界面接收事件,扩展waitforexit

热门文章

  1. eclipse与visualVM与mat
  2. node中间件概念
  3. 前端基础:form表单提交
  4. Go 常用命令
  5. Http长连接
  6. Linux中安装nodejs及插件
  7. css 优化
  8. [UE4]快速移动,给单位向量加一个力
  9. python 字符串转16进制函数
  10. 软链接ln -s 总结