cancel
Showing results for 
Search instead for 
Did you mean: 

VSCode - FreeRTOS Thread awareness Debugging with ST-Link GDB

JR2963
Senior II

Hi,

I would like to enable FreeRTOS Thread awareness in VSCode. I know it worked in CubeIDE.
I can do it with Jlink GDB Server by inserting this to launch.json

"rtos":"FreeRTOS",         //Change it depending on RTOS used
But have no idea how to do for ST-Link GDB server

At least textually through the debug console.

Any Idea?

Thank you.

3 REPLIES 3
Nawres GHARBI
ST Employee

Hi @JR2963 

Seems that the same command should be added to launch.json with stlink gdb server

Of course, I tried that first, but it seems that the GDB for ST-Link doesn't have this parameter.

JiriNovotny
Associate

Hi @JR2963 

It is only supported with OpenOCD or JLink. From cortex-debug:

RTOS Thread Support in CALL STACK window (J-Link, OpenOCD, pyOCD - RTOS supported depend on GDB server)

In CubeIDE you can use RTOS proxy which is currently not supported in VSCode