设置 OpenOCD
OpenOCD(Open On-Chip Debugger,开放式片上调试器)是一种片上调试解决方案,适用于基于 ARM7 和 ARM9 系列并带有嵌入式ICE(JTAG)设施的目标。它可以使用为 ARM 架构编译的 GDB 进行源代码级调试。
为 OpenOCD 设置首选项:
- 转到首选项>Devices > 。 Bare Metal.
- 选择Add 。
- 选择OpenOCD 。
- 在Name 中,输入连接名称。
- 在Startup mode 中,选择启动调试服务器提供程序的模式。
- 在Peripheral description file 中,指定描述设备外围设备的文件路径。
- 在Host 中,选择连接到调试服务器提供程序的主机名和端口号。
- 在Executable file 中,输入调试服务器提供程序可执行文件的路径。
- 在Root scripts directory 中,输入配置脚本目录的路径。
- 在Configuration file 中,输入设备配置文件的路径。
- 在Additional arguments 中,输入命令的参数。
- 在Init commands 中,输入初始化连接时要执行的命令。
- 在Reset commands 中,输入重置连接时要执行的命令。
- 选择Apply 添加调试服务器提供程序。
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.