Skip to main content
Senior III
March 11, 2025
Solved

STM32CubeIDE 1.18.0 live expressions stopped working completely

  • March 11, 2025
  • 1 reply
  • 2961 views

Before the STM32CubeIDE had serious issues with the live expressions during debug, with variables showing random values and signs when they were unsigned (the issues are various years old now https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-18-0-released/m-p/778624#M34678)

 

After updating to STM32CubeIDE Version: 1.18.0 Build: 24413_20250227_1633 (UTC) the live expressions completely broke

 

All the variables now show 0 and they won't vary

 

As you can see from the screenshot, hovering while on breakpoint shows the correct value. On the top right, all the values are 0 in the live expressions tab

nico23_0-1741693357205.png

That's pretty bad considering, trying to migrate to VSCode for being able to debug, gives another sort of issue, acknowledge by ST itself https://community.st.com/t5/stm32-vscode-extension-mcus/stm32-vs-code-extension-no-compiler-found-in-cache-file/m-p/781619#M640

 

What happened to this company lately...? All these bugs had been unusual back in '19/'20

 

Best answer by nico23

The issue seemed to be the GDB server.

Switching to OpenOCD has made the live viewer during debug work correctly

THIS IS NOT THE SOLUTION, CHECK LATEST POST FOR WORKAROUND https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-18-0-live-expressions-stopped-working-completely/m-p/834696/highlight/true#M38371

1 reply

ST Technical Moderator
March 13, 2025

Hello
Could you please provide additional information (MCU, OS version) in order to further investigate the issue?

KR,

Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
nico23Author
Senior III
March 13, 2025

I'm using Windows 10 22H2, 10.0.19045 Build 19045 on the STM32F091VB

nico23Author
Senior III
August 28, 2025

It happens with OpenOCD as well.

The issue is ongoing and never fixed, as seen https://community.st.com/t5/stm32cubeide-mcus/live-expressions-bug/m-p/647393#M24955 https://community.st.com/t5/stm32cubeide-mcus/a-big-problem-with-live-expression-values-shifted-down/td-p/703729

The only workaround seems to be 

Step 1) Close the Tab of the Live Expressions.

Step 2) Right Click on Project >> Select "Clean Project"

Step 3) Build and debug

Step 4) Select the "Live Expression" from the windows tab