2025-03-11 4:43 AM - edited 2025-03-12 4:37 AM
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
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
Solved! Go to Solution.
2025-03-14 3:17 AM
The issue seemed to be the GDB server.
Switching to OpenOCD has made the live viewer during debug work correctly
2025-03-13 2:17 AM
Hello
Could you please provide additional information (MCU, OS version) in order to further investigate the issue?
KR,
Souhaib
2025-03-13 2:54 AM
I'm using Windows 10 22H2, 10.0.19045 Build 19045 on the STM32F091VB
2025-03-14 2:41 AM
Hello @nico23
I am unable to reproduce the issue on my side. Could you try these suggestions below and check if the issue persists?
- Update the firmware version of ST-Link.
- Disable optimization during debugging by compiling with -OO
- Debug with OpenOCD if you are using a GDB server.
2025-03-14 3:17 AM
The issue seemed to be the GDB server.
Switching to OpenOCD has made the live viewer during debug work correctly