Forum : ARM
Original Post
Post Information | Post |
---|---|
February 21, 2009 - 11:30pm
|
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 |
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
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.