AnsweredAssumed Answered

How to display value of a "static const"?

Question asked by misterdsp on May 2, 2013
Latest reply on May 3, 2013 by CraigG

If I create a const char xxx[] = "abc" variable, it can be displayed in an expression window (because it is displaying the ram copy of the data from rom).

 

If I create a static const char xxx[] ="abc" variable, how can I show the value in VisualDSP? The data is kept in rom and not copied to ram. I was planning to put code revision numbers in rom in this way, that are never used by the executing code, but useful for configuration management. For example, add this to a file taken out of RCS :

 

static const char variables_rcsid[] = "$Id:";

Outcomes