:( 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?
why the studio can't watch the structure variable?
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.
A slight oversight on Atmel's part?
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):
Well, by showing that it works with IAR and not with AVR-GCC, nicely hints as what I would have said.
Also ICCAVR Pro has structure debug information.
Caleb
Hello,
Does it mean, we can not watch structures in AVR Studio 4.08, if the compiler used is the latest GCC?
Regards
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!