Skip to main content
Graduate 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.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    November 6, 2024

    Hi @JR2963 

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

    JR2963Author
    Graduate II
    November 6, 2024

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

    Visitor II
    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