Skip to main content
Associate
April 29, 2026
Solved

STM32CUBE RTOS view not working when debugging running target with just symbolFileName supplied to imagesAndSymbols

  • April 29, 2026
  • 1 reply
  • 394 views

STM32CubeIDE for Visual Studio Code v3.8.0

 

serverRtos fails to recognize symbolFileName when attaching to running target. This causes the rtos viewer to not work properly.

None working setup:

 "type": "stlinkgdbtarget",
 "request": "launch",
 "name": "CM7 master STM32Cube: Launch ST-Link GDB Server",
 "origin": "snippet",
 "cwd": "${workspaceFolder}/",
 "deviceName": "STM32H747BIT6",
 "deviceCore": "Cortex-M7",
 "serverReset": "None",
 "imagesAndSymbols": [
 {
 //"imageFileName": "${workspaceFolder}/executable.elf",
 "symbolFileName": "${workspaceFolder}/executable.elf",
 }
 ],
 "serverRtos": 
 {
 "enabled": true,
 "port": "60000",
 "driver": "freertos",
 "driverPort": "ARM_CM7"
 },

Debug console output:

RTOS proxy: STMicroelectronics RTOS Proxy. Version 0.18.1
Copyright (c) 2026, STMicroelectronics. All rights reserved.

Failed generate debug info
Loading RTOS driver... FreeRTOS
Connecting to GDB server 127.0.0.1 on port 61234 ... RTOS Proxy: readelf: Error: 'undefined': No such file
Waiting for debugger connection...


Working setup but with loading the elf file which is not preferred:

 "type": "stlinkgdbtarget",
 "request": "launch",
 "name": "CM7 master STM32Cube: Launch ST-Link GDB Server",
 "origin": "snippet",
 "cwd": "${workspaceFolder}/",
 "deviceName": "STM32H747BIT6",
 "deviceCore": "Cortex-M7",
 "serverReset": "Connect under reset",
 "runEntry": "main",
 "imagesAndSymbols": [
 {
 "imageFileName": "${workspaceFolder}/executable.elf",
 "symbolFileName": "${workspaceFolder}/executable.elf",
 }
 ],
 "serverRtos": 
 {
 "enabled": true,
 "port": "60000",
 "driver": "freertos",
 "driverPort": "ARM_CM7"
 },
 
Best answer by wh1

Found another post with same question formulated differently. Answered already
rtos-proxy-does-not-properly-start-when-trying-to-debug-with-hotplug 

1 reply

wh1AuthorBest answer
Associate
April 29, 2026

Found another post with same question formulated differently. Answered already
rtos-proxy-does-not-properly-start-when-trying-to-debug-with-hotplug