Skip to main content
Roman REITER
Associate III
Aug 21, 2021 7:59 PM UTC
Solved

STM32CubeMonitor does not show the self-defined variables

I have integrated the .elf file in the STM32CubeMonitor, but it does not show me the self-defined variables. I tried different variables like

 volatile uint32_t a = 3;

 volatile uint8_t b = 3;

 int c = 3;

Does someone have an idea what i did wrong?!

This topic has been closed for replies.
Richard.Chvr
Richard.ChvrBest answer
ST Technical Moderator
Aug 24, 2021 11:04 AM UTC

Hello @Roman REITER​ 

Only global static variables are displayed in the list.

You can check their availability in the symbol file.

Note that unused variable will not be displayed as compiler removes them for optimization reason.

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

Richard.Chvr
Richard.ChvrBest answer
ST Technical Moderator
Aug 24, 2021 11:04 AM UTC

Hello @Roman REITER​ 

Only global static variables are displayed in the list.

You can check their availability in the symbol file.

Note that unused variable will not be displayed as compiler removes them for optimization reason.

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.