Skip to main content
Associate III
Dec 21, 2025 4:31 PM UTC
Solved

Unable to see Live Expressions variables refresh on a custom board

Hello,

 

recently I was able to flash a programm on the STM32G474CET3 but I am unable to track Live Variables.

I wrote a simple program that just increases a cnt variable each second.

richi_0-1766334519726.png

My .ioc configuration:

richi_1-1766334655093.png

 

Every help is appreciated.



 

Aimen1Best answer
ST Technical Moderator
Dec 24, 2025 1:55 PM UTC

Hello richi,

What is the optimisation you are using in STM32CubeIDE?

Can you declare the variable "cnt" as "volatile" and try again please?

Regards.

In order 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.

1 reply

Aimen1Best answer
ST Technical Moderator
Dec 24, 2025 1:55 PM UTC

Hello richi,

What is the optimisation you are using in STM32CubeIDE?

Can you declare the variable "cnt" as "volatile" and try again please?

Regards.

In order 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.