Skip to main content
Associate III
December 21, 2025
Solved

Unable to see Live Expressions variables refresh on a custom board

  • December 21, 2025
  • 1 reply
  • 437 views

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.



 

Best answer by Aimen1

Hello richi,

What is the optimisation you are using in STM32CubeIDE?

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

Regards.

1 reply

Aimen1Best answer
Technical Moderator
December 24, 2025

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.