PlatformIO Community

FreeRTOS thread debug with PIO

I have FreeRTOS working on an Adafruit Feather M4. The PlatformIO debugger works great out of the box. However, it doesn’t know about threads, and so it gets very confused by the stack being all over the place.

Has anyone had any luck getting the OpenOCD GDB RTOS support working? I added -rtos auto to the .cfg file, but it seemed to have problems.


I’ve just wanted to write about -rtos auto but you already tried it. Did you try to run openOCD separetely from PlatformIO and check with dedicated GDB sesion?

It looks like -rtos is not enough, could you please try the following workaround