Skip to main content
JR2963
Senior II
October 25, 2024
Question

VSCode - FreeRTOS Thread awareness Debugging with ST-Link GDB

  • October 25, 2024
  • 2 replies
  • 1858 views

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.

2 replies

Nawres GHARBI
Technical Moderator
November 6, 2024

Hi @JR2963 

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

JR2963
JR2963Author
Senior II
November 6, 2024

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

Associate
January 6, 2025

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