cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE v2.1.1 Live Expression Reliability Issues

aathota
Associate II

I am working with the NUCLEO-U575ZI-Q and I am implementing the ADC GPDMA examples described in this STM32U5 workshop https://community.st.com/t5/stm32-online-courses/stm32u5-workshop/ba-p/774159. Within the project, a GPDMA channel is configured to collect 4 channels of ADC data triggered by a timer in a buffer called data, use 2D addressing to rearrange the channel data in a new buffer called dataGrouped, then transmit the data over UART. The first time I built the project and ran the debugger in STM32CubeIDE, I was able to add the two data buffers being used by the DMA channel to the live expressions view and monitor the data in real time to confirm that the DMA channel is functioning properly. However, after terminating the debugger and relaunching it, even without making any changes to the firmware, the expressions I added no longer update and just display 0. The same expressions are still displayed properly in the Expressions tab once I halt execution. The only way I have found to get the live expressions working again is to launch the debugger for a different project in my workspace and then switch back to the current project and launch the debugger. After this, the live expressions begin working again but only for the current debugging session and they fail again after subsequent restarts of the debugger.  The workaround given in this forum post does not work for me and this bug occurs whether using STLink with GDB or OpenOCD https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-18-0-live-expressions-stopped-working-completely/m-p/783031/highlight/true#M34951

I have my assembler and compiler debug level set to maximum and compiler optimization set to Optimize for Debug (-Og).

This is what the live expression tab looks like when functioning as expected. The data updates in real time.

Screenshot 2026-03-27 205830.png

This is what the live expression tab looks like in subsequent debug sessions when not functioning properly

Screenshot 2026-03-27 211327.png

The expression can still be viewed in the Expressions tab but only when execution is halted

Screenshot 2026-03-27 211922.png

I am running STM32CubeIDE v 2.1.1 using this Windows version
Edition Windows 11 Pro
Version 25H2
OS build 26200.8037
Experience Windows Feature Experience Pack 1000.26100.300.0

If anyone else has experienced this and found a better workaround, please let me know.

Hopefully this post can help improve the live expressions feature, they are super useful but I have found them a pain to get working reliably. Please let me know if more information is needed.

3 REPLIES 3
Souhaib MAZHOUD
ST Employee

Hello @aathota 

Thanks for your feedback,

This issue is under investigation, and I will get back to as soon as I have updates.

In the meantime, could you confirm if cleaning the project and rebuilding it again solve the problem for subsequent debug sessions.

BR, Souhaib

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.

No, cleaning and rebuilding does not fix the issue for me, live expressions only start working again after debugging a different project then coming back to the current project. Would you like me to share the two projects that I experience this behavior with?

Hello @aathota 

Yes, if you could share your project, it would be helpful to replicate the issue.

 

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.