IAR Compiler and AVR Studio

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

I have been using the IAR compiler for a few months now and have discovered that C-Spy is a piece of garbage...lets just say it seems like more of an after-thought. When I found out that AVR Studio can also simulate I thought I'd give that a try. I figured Atmel built it, they should be able to simulate it better than anyone else. (I do realize IAR helped Atmel Develop the AVR)

Every time I try to load a debugger file (*.d90) into studio it crashes. I saw the errata about creating UBROF6 object files, but that doesn't help. Using AVR studio to run the IAR compiler sounds like too much work and I don't think that would do much good anyway. I've tried loading the individual module objects (*.r90 files), it recognizes them as object files but says it can't open them. There isn't much documentation out there about IAR and AVR studio, so I was wondering if anybody has tried anything similar.

Important Information:
AtMega103
AvrStudio version 3.22
IAR version 1.51B/WIN

Thanks in advance,
Ben

admin's test signature
 

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

Hello Benjamen,

I'm using the IAR compiler v2.31B, and the .d90 files it produces work like a charm under AVRStudio v3.22. This suggests the problem lies with IAR. Do you have any possibility to upgrade?

Corinthian

admin's test signature
 

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

Corinthian,
Are you sure that v2.31B is the compiler version and not the user interface version? If you look under help:about it shows two versions. I wanted to buy version 2 of the compiler because it supported C++ but they told me it wasn't out yet.
If you have been able to get the .d90 files to work, have you used any special compile options? Which processor are you using? What platform, maybe there's an incompatability with Win2000?
My specific problem is that I try to load the .d90 file and the program crashes with a divide by 0 error.

Thanks for your reply, at least I know it is posssible.

Ben

admin's test signature
 

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

Hello. I have been using version 150C and never had such problems. Neither with AVRstudio 321 or 322. If you have a file in your project directory (under /debug/exe)called *.avd try deleting this file. This is the AVR studio settings file and if it has been corrupted it may cause AVR studio to crash. I have had similar problems loading an assembler project, and deleting this *.avd file solved the problem (NOTE! a new *.avd file will be created as soon as AVRstudio openes succcessfully, and this file should not be deleted, only the corrupted one)

admin's test signature
 

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

Hello. I have been using version 150C and never had such problems. Neither with AVRstudio 321 or 322. If you have a file in your project directory (under /debug/exe)called *.avd try deleting this file. This is the AVR studio settings file and if it has been corrupted it may cause AVR studio to crash. I have had similar problems loading an assembler project, and deleting this *.avd file solved the problem (NOTE! a new *.avd file will be created as soon as AVRstudio openes succcessfully, and this file should not be deleted, only the corrupted one)

admin's test signature
 

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

Hi again!

Yes, it is the interface version. I was a bit hurried there, sorry! :) I'm on a Win98 platform because I often use AVR ISP. The compiler version is 1.50C/WIN, so it seems like Ben's the one with the most recent compiler. I therefore agree with Bjorn and join the conservatives' comittee :) Never use latest release!

Ben: Have you contacted IAR on this?

Corinthian

admin's test signature
 

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

Thanks for the help! It was a corrupted *.avd file. Now everything works like a charm

Ben

admin's test signature