Topic : Cant watch local variables

Forum : ARM

Original Post
Post Information Post
February 21, 2009 - 11:30pm
Guest

I cannot watch any local variables inside a function, or any variables passed to a function. They all appears as -1 (0xFF).

Watch only works on global variables.

Is this normal?

If not, how can I fix?

Thanks

Replies
Post Information Post
+1
0
-1
February 26, 2009 - 4:49pm
Raisonance Support Team

Hi,

Ensure that you are not compiling with full optimization. This leads to unused locals being wiped away, and some variables may be held in registers, so they do not have an actual storage area in RAM/Stack.

Bruno

+1
0
-1
February 26, 2009 - 5:08pm
Guest

Thanks for the suggestion. The program is compiled with no optimization. I will be sending you a copy of the project so that you can reproduce and hopefully find why this is happening.