Atmel Studio 6.1 structures display issue while debugging

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

Hello there,
I'm a but confused with following problem:
I can't have a look into a structure while debugging, both on real UC, or on simulator. I made some research trough similar posts, but unfortunately all of them were about some Atmel Studio/AVR Sturio bugs, and were fixed by Atmel team.
For normal variables (non-structured) and arrays all works fine...

It would be grate if anyone will have some info/suggestions about solutions

In attachments:
1&3 - example structures in watch window before pressing "expand" button
2&4 - sad view after pressing expand
5 - Datailed info about my AS version and packages

As examples, I added some structs with bit fields but I tried also with normal, simply declared struct and there was the same effect.
Effect of "invisibility" is present regardless of debug & optimization level.
And maybe this info is also useful, I'm a Windows 7 64bit user

Attachment(s): 

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

My understanding is that this is still an issue in 6.1

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

Try moving the "volatile" to your data declaration, away from the typedef:

typedef struct {....} ADC_data_t;
volatile ADC_data_t ad[10];

Does it help ?

Dan

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

Quote:

Try moving the "volatile" to your data declaration, away from the typedef:

Code:
typedef struct {....} ADC_data_t;
volatile ADC_data_t ad[10];

Does it help ?

Dan

Well, that's looks like the solution, everything works fine now! So thank you Dan, I appreciate your help :)
Let me ask You a question, how did you manage to trace that bug out? Is "typedefing" with volatile inconsistent with some C-standards? Or is that a Atmel Stusio issue? As far as I can remember, very similar styedefed structures worked fine in 6.0 version, any clues?

Thanks once again!

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

If this worked in 6.0, I would put it down to differences in the way debug info is layed out by the (different) toolchain.
I don't know about the legality of putting a modifier (volatile) in a typedef, but Studio should handle the case. I've filed bug AVRSV-4860 to trace this down.

Dan
(the workaround was a lucky hunch before I try fix the bug)

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

Hello,
I got a confirmation, that the following error is the Atmel Studio debugger error and will probably be fixed in future release :)

Thanks for help, I appreciate that