Skip to main content
Bryan_KIM
Associate II
Sep 14, 2020 2:01 AM UTC
Question

STM32CubeIDE, How to use Real Time variables??

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 topic has been closed for replies.

10 replies

TDK
Sep 14, 2020 2:04 AM UTC

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""."
Bryan_KIM
Bryan_KIMAuthor
Associate II
Sep 14, 2020 2:17 AM UTC

Thank you for the answer.

I didn't understand the meaning of this.

Excuse me. How should I set it up?

Bryan_KIM
Bryan_KIMAuthor
Associate II
Sep 14, 2020 2:21 AM UTC

​

Do you mean this?0693W000003RVN7QAO.png

TDK
Sep 14, 2020 2:28 AM UTC

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""."
Bryan_KIM
Bryan_KIMAuthor
Associate II
Sep 14, 2020 2:35 AM UTC

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
Sep 14, 2020 2:46 AM UTC

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
Bryan_KIMAuthor
Associate II
Sep 14, 2020 4:16 AM UTC

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.

Bryan_KIM
Bryan_KIMAuthor
Associate II
Sep 14, 2020 4:04 AM UTC

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.

TDK
Sep 14, 2020 1:22 PM UTC

Maybe the G0 doesn't support live expressions. I don't have a board to test it with. Not sure.

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