cancel
Showing results for 
Search instead for 
Did you mean: 

[BUG] STM32CubeIDE Live Expression sometimes fail to evaluate expression.

DVolp.5
Associate

Hi,

I have noticed a little problem in the "Live Expressions" function.

The first time I open STM32CubeIDE and debug my firmware, I can see the value of all expressions previously written by me.

When I stop the debug and debug again, some expressions does'nt show the value. Instead this appears the message " Failed to evaluate expression".

The curious is that if I "rename" the expression the correct value appears again. For example, adding a space (or removing a space) at end of a expression with the message " Failed to evaluate expression" solve the problem.

This are happenning with anyone more?

This is a real bug?! How this problem can be solved?

Best regards, 

DIego Volpini

33 REPLIES 33
NFern.1
Associate III

I am facing the same problem. This is the only solution that works for now.

Yeah, this problem still alive. I have this and don't know how to solve.

 

The work-around is mentioned somewhere in this post. I will repeat here:

You must create a dummy global variable in your project and add it to the "Live Expressions". When you see junk values in some/all the variables, then write some value ( say 0 or 1 ) to your dummy variable. I have noticed that the values of all variables now Sync up and display the correct values in the "Live Expressions".

sam
Associate II

2024 now. I can't believe it the problem is still NOT solved! I'm having the same problem!!!!