Skip to main content
Visitor II
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

    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.