[HC08 - CW6] Problems with debugger data windows

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[HC08 - CW6] Problems with debugger data windows

3,168 Views
CecchiSandrone
Contributor II
Hi all,

I'm finding some problems with data windows in CW debugger. Even if I add variables into my procedure, I only see the same declared before. You can understand better watching the attached image.
Labels (1)
0 Kudos
Reply
3 Replies

929 Views
Technoman64
Contributor III
I have also found that by declaring local variables in functions as "static" just to debug they will show up. Then you can delete the static declaration after debugging and still let the compiler optimize for final the version. This is if you have enough RAM available for the allocation of the static variables.
0 Kudos
Reply

929 Views
CecchiSandrone
Contributor II
Ok. Thanks. Problem solved.
0 Kudos
Reply

929 Views
CompilerGuru
NXP Employee
NXP Employee
Because the compiler did not generate any code for the variable,
or even allocate any location for it.
So either tell the compiler not to optimize them away (guess: -onu) or make it volatile.

Daniel



Message Edited by CompilerGuru on 2007-11-15 12:42 PM
0 Kudos
Reply