3

我有一个带有 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 调试探针。

4

1 回答 1

0

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

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

解决方法很简单:

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

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

于 2017-11-02T10:36:19.003 回答