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.
