AVRStudio 6 / Debug / Struct watch problem

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

Hi there,

 

I am using:

 

AVRStudio 6

IAR Embedded Workbench 5.11B (output format UBROF 8)

JTAG ICE MKII 

 

While debuging my project in AVRStudio 6 and need to see the contents of a struct in watch window I have a serious problem that never had while debuging in AVRStudio 4.

 

When I add a (struct type) variable in the watch window, a "+" is displayed in it's left side, as expected because it's a struct type variable.

 

When I press the "+" symbol in order to open and see the contents of the struct then the "+" dissapeared and no content appears.

 

My struct type is:

typedef struct{
    UC second;
    UC minute;
    UC hour;
    UC dayOfTheWeek;
    UC day;
    UC month;
    UC year;
}TYPE_RTC;

 

 

volatile TYPE_RTC rtcRead = {0, 0, 0, 0, 0, 0, 0};

 

 

This phenomenon also stands in any other struct type variable.

 

Is there anything I can do to solve the problem ?

 

Thank you.

 

Michael.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Any help please ???

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Not many others here use IAR and it looks like Morten from Atmel has not contributed recently so you are probably better opening a support ticket with Atmel.

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

Which studio version (all numbers). IAR changes how they encode this in the ubrof regularly, so it feels like it's a game of cat and mouse. You might have luck trying to get IAR to produce elf files, although all that I have tried was far from elf compliant. Also, check what debug format that IAR is set to produce (should be dwarf).

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

 it looks like Morten from Atmel has not contributed recently so you are probably better opening a support ticket with Atmel.

Called summer vacation.... :) 

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

I thought they had locked you up somewhere...... devil

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Apparently the current version is "Embedded Workbench for the AVR (Version 6.5)"

Shirley,   IAR will upgrade your licence for free.    (or a modest sum)

 

I would have thought that C-SPY will be far better than AS6.2 for hardware debugging.

The only advantage of AS6.2 would be for the Simulator.

 

But yes,   if IAR claim that they can produce AS6 compatible debug files,    I would ask IAR to fix any problem.

Obviously this would be a mutual cooperation between Atmel and IAR)

 

David.

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

I finally found that C-SPY/JTAGICE-mkII is faster and it's better to use, than using AVRStudio 6. Unfortunately never tried it before, because I used to debud my projects using AVRStudio 4 all these years.

 

Using C-SPY, I have no problems of watching structure's contents.

 

Thank you all.

 

 

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer