[Top][All Lists]

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

Fw: Re: [avr-gcc-list] Elf - coff volatile

From: Marko Panger
Subject: Fw: Re: [avr-gcc-list] Elf - coff volatile
Date: Mon, 4 Nov 2002 22:07:12 +0100 (Central Europe Standard Time)

-------Original Message-------

From: Marko Panger
Date: 04. november 2002 21:49:46
To: address@hidden
Subject: Re: [avr-gcc-list] Elf - coff volatile

I am currently subscribed to the "ImageCraft" compiler mailing list and
right now there is pretty much talk about COFF format and AVRStudio
integration. Personally I hardly believe that COFF format will ever be fully
supported by AVRStudio for which the default format is UBROF which in turn
comes from IAR. Hm......concurrence stuff.......

-------Original Message-------

From: E. Weddington
Date: 04. november 2002 17:36:35
To: address@hidden; address@hidden
Subject: Re: [avr-gcc-list] Elf - coff volatile

On 4 Nov 2002 at 12:31, Daniel Williamson wrote:

> If I declare a variable as volatile on a Mega 128 I get the following
> elf-coff error. c:/avrgcc/bin/avr-gcc -c -g -O2 -Wall
> -Wstrict-prototypes -Wa,-ahlmsÚin.ls t -mmcumega128 -I. main.c
> -o main.o c:/avrgcc/bin/avr-gcc uart.o RS232.o DCmotor.o timer.o
> error.o ain.o -Wl,-MapP03.map,--cref -mmcumega128 -o 5003.elf
> c:/avrgcc/bin/avr-objcopy -O avrobj -R .eeprom 5003.elf 5003.obj
> c:/avrgcc/bin/avr-objcopy -O ihex -R .eeprom 5003.elf 5003.hex
> c:/avrgcc/bin/elfcoff 5003.elf c:/avrgcc/bin/coff 5003.cof 5003.sym
> : 826
> : 678
> : 563
> : 387
> Error on parsing symbol 669 -> Type : 204x Desc :
> enc_cnt:G(1,3)Ø0,1) Ended
> The variable is declared as follows .
> volatile int enc_cnt;
> I do have volatile chars that seem to work ok but I don't see why this
> causes a problem.
> I'm using the latest windows release from avrfreaks, I never saw this
> problem with the same software when using the previous release from
> avr freaks.
> I'm also using avr studio 3.53.
> The code works fine on the target board and it's just the simulation
> that I'm missing.
> Any suggestions anyone?
> Thanks Dan.

There are a number of problems with elfcoff. Search the GCC forum on
AVRFreaks about problems with elfcoff. There is a recent patch as
well as someone is re-writing the tool to fix various bugs with

Someone has asked on this list if anyone has ever before worked on
binutils to produce a COFF output file for AVR, but there has been no

avr-gcc-list at http://avr1.org
avr-gcc-list at http://avr1.org

reply via email to

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