[HC08 - CW6] Problems with debugger data windows

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[HC08 - CW6] Problems with debugger data windows

3,189件の閲覧回数
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 返答(返信)

950件の閲覧回数
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 件の賞賛
返信

950件の閲覧回数
CecchiSandrone
Contributor II
Ok. Thanks. Problem solved.
0 件の賞賛
返信

950件の閲覧回数
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 件の賞賛
返信