Skip to main content
Associate
August 18, 2026
Question

STM32 Cube IDE Version: 2.1.1 Wrong Values Bug 

  • August 18, 2026
  • 1 reply
  • 27 views

Hello,

I am using STM32CubeIDE Version 2.1.1 and I am experiencing a debugging issue.

After flashing new code and starting the debugger, the variable values displayed in the IDE are sometimes completely incorrect. However, I am also transmitting these values via CAN, and the values received there are correct. Because of this, I suspect that the issue might be related to the IDE or the debugger rather than the firmware itself.

This behavior only occurs when the board has just been connected to power or has been without power for some time. After the first debug session, if I flash the firmware again and start another debugging session, all values are displayed correctly.

In other words, the problem consistently appears during the first debugging session after a power-up, while subsequent debug sessions work as expected.

I have attached a screenshot showing the incorrect values displayed in the IDE.

Has anyone experienced a similar issue or knows what might be causing this behavior?

Thank you in advance for your help.

1 reply

Ghofrane GSOURI
ST Technical Moderator
August 18, 2026

Hello ​@Vric 

Thank you for posting.

I believe you are facing the same issue that has been escalated in the following thread 

live expressions bug | Community

THX

Ghofrane

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.