设置 OpenOCD

OpenOCD(Open On-Chip Debugger,开放式片上调试器)是一种片上调试解决方案,适用于基于 ARM7 和 ARM9 系列并带有嵌入式ICE(JTAG)设施的目标。它可以使用为 ARM 架构编译的 GDB 进行源代码级调试。

在 "设备 "偏好设置的 "裸机 "选项卡中打开OCD

为 OpenOCD 设置首选项:

  1. 转到首选项>Devices > 。 Bare Metal.
  2. 选择Add
  3. 选择OpenOCD
  4. Name 中,输入连接名称。
  5. Startup mode 中,选择启动调试服务器提供程序的模式。
  6. Peripheral description file 中,指定描述设备外围设备的文件路径。
  7. Host 中,选择连接到调试服务器提供程序的主机名和端口号。
  8. Executable file 中,输入调试服务器提供程序可执行文件的路径。
  9. Root scripts directory 中,输入配置脚本目录的路径。
  10. Configuration file 中,输入设备配置文件的路径。
  11. Additional arguments 中,输入命令的参数。
  12. Init commands 中,输入初始化连接时要执行的命令。
  13. Reset commands 中,输入重置连接时要执行的命令。
  14. 选择Apply 添加调试服务器提供程序。

另请参阅 如何:为Bare Metal 开发Bare Metal 设备开发

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.