[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] agv-gcc with AVR Studio 4

From: E. Weddington
Subject: Re: [avr-gcc-list] agv-gcc with AVR Studio 4
Date: Thu, 09 Dec 2004 00:08:41 -0700

On 8 Dec 2004 at 21:24, David Kelly wrote:

> I've RTFM'ed the past week and if its documented then I haven't found 
> TFM. Have the new USB AVRICE mkII which to the best of my knowledge is 
> only supported (for now) by the latest AVR Studio, which apparently 
> doesn't have the same hooks for avrgcc as the 3.x series did. Did find 
> it interesting there is an avrgcc icon in AVR Studio. Haven't figured 
> out how to use it. Only seem to be able to create an "assembler" 
> project.

Interesting. Which version/build of AVR Studio are you using that has this icon?

> No problem with Makefile from a command shell. Have no problems 
> building with -gdwarf-2 ELF format. And almost no problems converting 
> to COFF. But I can't figure out how to get AVR Studio to load *my* 
> compiled code produced outside of AVR Studio.
> "Almost no problems converting to COFF." Using avr-objcopy in WinAVR 
> says no debugging data found, but using the avr-gcc port on FreeBSD 
> doesn't have the same problem.

It's unclear what you are doing here. Are you generating DWARF2 debugging info, 
converting to COFF? If so, then you should know that both of these are mutually 

You can do one of the following:
1. Build ELF file with stabs debugging info, convert to COFF/Extended COFF, 
debug in AVR 
Studio (or alternatively VMLab [payware]).
2. Build ELF file with DWARF2 debugging info, debug in AVR Studio 4.10 (which 
contains a 
new parser for ELF/DWARF2 in beta). No converting necessary.

Method #2 above is now preferred over #1.

> Not that it really matters but avr-gcc hosted on FreeBSD 5.3 450 MHz 
> PII is about 3 times faster than WinAVR on XP Pro 2 GHz P4 and 10 times 
> faster than XP when the XP's working directory is on the company's 
> stupid Windows fileserver.

I'm not totally surprised, given the that the working directory resides on a 
server. However, how does it perform on a local directory? Compared to FreeBSD?

> Have selected ATmega128, and before messing with real hardware am 
> trying to use the simulator.
> So where did I make the wrong turn and fail to get there from here? Did 
> I install AVR Studio incorrectly? Should WinAVR have been installed 
> before or after? 

AFAIK I don't know if there's any particular order required. Perhaps install 
WinAVR first and 
then AVR Studio 4.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]