Page 1 of 1

FreeRTOS aware debugging with openocd

Posted: Sun Sep 24, 2017 11:32 pm
by evading
Hi,

I'm trying to debug a FreeRTOS project using openocd and arm-none-eabi-gdb

I'm starting openocd using:
Code: Select all
openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto"
and my .gdbinit file has the following contents:
Code: Select all
target remote localhost:3333
monitor reset halt
file build/fw.elf
load
continue
focus next
The problem is that when I try to continue i get the error message "Cannot execute this command without a live selected thread." and I can't get passed that.
What should I do?

Thanks.