GDB and OpenOCD

OpenOCD

Open On-Chip Debugger (OpenOCD) 旨在为嵌入式目标设备提供调试、系统内编程和边界扫描测试。它是在调试适配器的帮助下实现的,调试适配器是一个小型硬件模块,可以帮助为被调试的目标提供正确的电信号。这些都是必需的,因为调试主机(在OpenOCD上运行)通常不支持这样的信号,或连接到目标所需的连接器。

openocd 参考资料下载

GDB and OpenOCD

Connecting to GDB

  1. A socket (TCP/IP) connection is typically started as follows:

    target extended-remote localhost:3333

    or

    target remote localhost:3333

  2. A pipe connection is typically started as follows:

target extended-remote | openocd -c "gdb_port pipe; log_output openocd.log"

常见问题

1. 由于仿真环境运行频率较低,导致 Jtag Server 运行频率过低,从而导致 GDB 连接过程中出现 “timeout” in “qSupported” 错误。

解决方法:

  1. 尝试提高Jtag server 端频率,到 20Khz。

  2. 修改 GDB 连接超时时间,GDB cmd下执行如下命令:

    • show remotetimeout
    • set remotetimeout 60
    • target remote localhost:3333
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值