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?

2 REPLIES 2
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.

 

LaurentL
ST Employee

Hello,

The first symbol not found xQueueRegistrySize is not killer as you saw in your other post.

But I think the 2nd pxCurrentTimerList is more important and this is why it stops then.

So as Pavel wrote, your code is no more valid for RTOS debugging.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.