[HC08 - CW6] Problems with debugger data windows

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[HC08 - CW6] Problems with debugger data windows

3,166 次查看
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.
标签 (1)
0 项奖励
回复
3 回复数

927 次查看
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 项奖励
回复

927 次查看
CecchiSandrone
Contributor II
Ok. Thanks. Problem solved.
0 项奖励
回复

927 次查看
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 项奖励
回复