:( 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?
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.
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.
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.
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.
Does it mean, we can not watch structures in AVR Studio 4.08, if the compiler used is the latest GCC?
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!
© 2020 Microchip Technology Inc.