【问题标题】:openocd freertos awareness can't start gdbopenocd freertos意识无法启动gdb
【发布时间】:2018-03-02 07:28:43
【问题描述】:

我有一个带有 openocd 和 arm-none-eabi-gdb 的设置,我正在尝试调试 FreeRTOS 固件。

我开始使用 openocd:

openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto"

该命令运行良好。

然后我运行 arm-none-eabi-gdb -tui 并在我的 .gdbinit 结束时:

target remote localhost:3333
monitor reset halt
file build/fw.elf
load
continue
focus next

但是当我尝试停止 <ctrl>-c 并启动 continue 我的 fw 时,我得到的只是错误:

Cannot execute this command without a live selected thread.

我错过了什么?

我正在使用 JLink Base 调试探针。

【问题讨论】:

  • 你找到解决这个问题的方法了吗?我也遇到了同样的问题,找不到解决办法
  • 看起来与这个问题有关:mcuoneclipse.com/2016/10/23/…

标签: gdb freertos gdbserver openocd


【解决方案1】:

我的情况与你的情况有些不同,使用 QtCreator 及其 Baremetal 插件进行设置,但发现了一个错误报告,其中说明了解决方法:

https://bugreports.qt.io/browse/QTCREATORBUG-18436

解决方法很简单:

in GDB Init commands add "info threads" after load command. It fixes issue.

我试过了,它成功了,错误消息被删除了,现在我可以在 FreeRTOS 中看到不同的任务了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-04
    • 2011-04-02
    • 1970-01-01
    • 2013-01-02
    • 2013-03-18
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多