Viewing struct data during debug

Hi,

I am a new user of Keil C compiler.
During debug, I am trying to watch struct data members. But all of them show 0x0000. And they are not updated. With other variables it's just working fine.

Any suggestions?

Thanks,
Titu

Parents
  • Maybe this is a bug in your code - are you sure that the structure members are actually being updated by your code?

    Have you tried stepping through a bit of code that ought to update (part of) the structure, and seeing what happens?

    "I am a new user of Keil C compiler."

    Did you start by reading the uVision Getting Started Guide, and working through the example projects in it?
    This would give you a proper introduction to the tools, how they work, and how to use them.
    (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)

Reply
  • Maybe this is a bug in your code - are you sure that the structure members are actually being updated by your code?

    Have you tried stepping through a bit of code that ought to update (part of) the structure, and seeing what happens?

    "I am a new user of Keil C compiler."

    Did you start by reading the uVision Getting Started Guide, and working through the example projects in it?
    This would give you a proper introduction to the tools, how they work, and how to use them.
    (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder)

Children
More questions in this forum