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