why the studio can't watch the structure variable?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:( I use avrstudio simulated my app.I declared a structure variable"div_t disp", but when I simulated the app,I found the avrstudio can't watch this variable! why?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I could give you a blunt, uncensored answer to that, but I wont. :twisted:
I'll leave it to someone else to give you a more diplomatic explanation for why this wonderful tool can't do such a basic and simple thing.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A slight oversight on Atmel's part?

Andreas

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For 10 points, can anyone tell me what the attached watch window screengrab is showing :wink:

The answer isn't as simple as Jesper suggests. Studio 4 can watch structure variables from IAR-compiled code - thus the basic ability is present in the S4 code. What seems to be missing is the ability to extract the neccesary information from debug files generated by other compilers. Yes, this should be included, especially if it was present in Studio 3 (I assume it was, given that this issue only seems to have arisen since S4 was released), but to imply that S4 is generally incapable of watching a structured variable is, quite simply, incorrect.

Regards,
Chris

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, by showing that it works with IAR and not with AVR-GCC, nicely hints as what I would have said.

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also ICCAVR Pro has structure debug information.

Caleb

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
Does it mean, we can not watch structures in AVR Studio 4.08, if the compiler used is the latest GCC?

Regards

Parthasaradhi Nayani

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all,
You can watch structures in studio, code compiled using GCC. All you need to do is create the extended coff file and load this in the studio!

Parthasaradhi Nayani