Instead of using a global variable I prefer to use static variables where possible.
In general this make my code easier.
During debugging I find that the value of a static variable is only displayed in
the expressions window of Visual DSP, when the program counter is within
the scope of the function that holds the static variable. Often I would like to
stop the programs execution and see the value of the static variable no matter
where the program was stopped. As a static variable is stored at a fixed
location in RAM (in the same way as a global variable) this has to be possible.
Could somebody point out how to achive this.
thank you very much