Skip to main content
Roman REITER
Associate III
August 21, 2021
Solved

STM32CubeMonitor does not show the self-defined variables

  • August 21, 2021
  • 1 reply
  • 842 views

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.
Best answer by Richard.Chvr

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.

1 reply

Richard.Chvr
Richard.ChvrBest answer
Technical Moderator
August 24, 2021

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.