cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE for VSCode RTOS proxy seems to be crashing GDB server

NMartin
Associate III

Hello,

I'm not sure where to begin with this issue. 

When I enable the RTOS Proxy as shown below in the debug launch configuration. 

NMartin_1-1766086257224.png

And I flash and debug, I get the following error/crash. And I also have to unplug and replug the stlink v2 from the computer for it to be recognized again. 

NMartin_2-1766086625855.png

This behavior is consistent except when I change the code structure in some small way like commenting out a few lines of code. Changing the code in some small way appears to make it work consistently again?

1 REPLY 1
Pavel A.
Super User

As you see in the output, the proxy could not find some symbols that must be exported by the program: xQueueRegistryStyle and so on.

When you comment out few lines of code it could cause a bigger effect due to linker optimization of unused code and LTCG. For example, if commented-out lines refer to functions and these functions become unreferenced.