cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE, How to use Real Time variables??

Bryan_KIM
Associate II

Hello, ​

I am using the STM32 Cube IDE.

I want to monitor real-time variables through debugging mode.

But it doesn't...

How use to Real-Time variables??​

0693W000003RVLGQA4.png

0693W000003RVLQQA4.png

This discussion is locked. Please start a new topic to ask your question.
10 REPLIES 10
TDK
Super User

Add them on the live expressions tab. It's buggy on restarts, you usually have to re-enter them when you re-run, but it works.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for the answer.

I didn't understand the meaning of this.

Excuse me. How should I set it up?

Bryan_KIM
Associate II

Do you mean this?0693W000003RVN7QAO.png

TDK
Super User

The "Live Expressions" tab is two tabs to the right of the "Expressions" tab on your last screenshot.

If you feel a post has answered your question, please click "Accept as Solution".

I think it's mean.

Is it right??

But It isn't real time variables...

It has a fixed value.

I toggled it every second by program.

0693W000003RVOUQA4.png

TDK
Super User

Works for me. Make sure your variable exists and the compiler isn't optimizing it out.

If you feel a post has answered your question, please click "Accept as Solution".
Bryan_KIM
Associate II

I used ST-LINK/V2.

Target mcu is STM32G030C8T.​

VDD

GND

SWCLK

SWDIO

Debug Setting.

0693W000003RVUNQA4.png

I programmed the variable to increase by 1 every second.

However, after changing from the initial value 0 to 1, nothing has changed.

I used ST-LINK/V2.

Target mcu is STM32G030C8T.​

VDD

GND

SWCLK

SWDIO

Debug Setting.

0693W000003RVUNQA4.png

I programmed the variable to increase by 1 every second.

However, after changing from the initial value 0 to 1, nothing has changed.

Could I send it to you?