IAR compiler in AVR Studio 6

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

Hi,

How do I set up AVR Studio 6 to use IAR as compiler? (I.e. I want to work in AVR Studio 6 and do debugging but compilation is made by IAR.)

Kind regards
Bjorn

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

Since you have a full IAR license, you will probably use the IAR IDE.

Choose UBROF-8 for the object format when compiling.
In Studio 6, choose "open object file for debugging"

IAR's C-SPY is probably better for debugging than AS6. You must use the IAR object format for C-SPY.

AS6 is better at Simulation. If you are using JTAG or debugWire, there is little to choose between them.

In theory, you could set up AS6 to call the correct IAR command lines for compilation and linking. I doubt that you will find this easy.

David.

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

Hm... when using old AVR Studio 3 (or was it 4) it was really easy to use connect IAR as compiler. Just a few clicks in AVR Studio and it was done. You sure there is no easy way?

Kind regards
Bjorn

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

Quote:

(or was it 4)

Well it definitely wasn't 4 so I'm afraid this feature has maybe been "missing" for the last 10 or so years.

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

I don't see a problem. If you have a full IAR license, you will most likely have a JTAGICE-mkII anyway. i.e. if you can afford 2500 euro for a license, the debugger is pretty cheap.

So you will edit-compile-debug in the IAR environment.

If you only have the 'KickStart' evaluation like me, you can't do any serious projects anyway. So you are better off learning GCC / CV / Imagecraft ...

The only advantage of AS6 is that the Simulator is probably better. You compile in IAR with UBROF-8. Simulate in AS6.

David.

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

I find IAR's IDE ideal for embedded micros and JTAG debugging. I wouldn't want Studio 6 as a replacement.

For starving students/hobbyists, and people who work for pound-foolish bosses, Studio 6 is ideal and FREE!

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

Quote:

I find IAR's IDE ideal for embedded micros and JTAG debugging

Really? Thats the first time I hear that.
The IAR compiler is really good, one of the best there is I'd say, but the IDE sucks big time. For what they charge for a license they should have something way better. The debugger is quite good, but the editor is a POS.

Daniel Campora http://www.wipy.io

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

I've used many an editor... for decades. IAR's editor/IDE is excellent for me. Has the essentials missing in many IDEs, such as "go to the file and line where the selected symbol is defined", find all, and so on.

If you have your own preferences, fine.

Calling it a "POS" is juvenile.