Skip to main content
Visitor II
September 9, 2025
Question

Can a variable be modified by using it's name instead of it's address?

  • September 9, 2025
  • 1 reply
  • 590 views

 

Hello Experts,

Reviving this topic as the referenced video and suggested solution zip file are not available.

https://community.st.com/t5/stm32cubemonitor-mcus/can-a-variable-be-modified-by-using-it-s-name-instead-of-it-s/td-p/87737

 

BTW I would expect such an ubiquitous feature to be already included in CubeMonitor. Perhaps my oversight but I could not find such a feature. I have a program with hundreds of variables I need to control from CubeMonitor, babysitting their addresses or spending ages updating them after every compilation is not practical.

Thank You,

-Alon.

 

    This topic has been closed for replies.

    1 reply

    Explorer
    September 9, 2025

    I don't use and thus don't know Cubemonitor.
    But the ST page says :

     - Parses debugging information from the application executable file

    You probably use a release build which is usually stripped of all debug information.
    I would try the debug build, or modify the elease variant to include debug information.

    Alon_GAuthor
    Visitor II
    September 9, 2025

    Thanks for your reply, I am using a debug build. The monitor works, I can see correct variables and addresses in the Basic_Flow I created. The ability to reference a variable by its name and not its address is there somewhere for sure (or at least I hope it is) but I could not find a way to do it.

    Explorer
    September 9, 2025

    As said, I don't use Cubemonitor.

    I hope you are aware that automatic variables have no (persistent) address.
    And in my experience, several tools have issues with global variables declared as "static".

    But perhaps it's just an issue of lacking documentation ...