[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Elf - coff volatile
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] Elf - coff volatile |
Date: |
Mon, 04 Nov 2002 09:27:32 -0700 |
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=main.ls t -mmcu=atmega128 -I. main.c
> -o main.o c:/avrgcc/bin/avr-gcc uart.o RS232.o DCmotor.o timer.o
> error.o ain.o -Wl,-Map=5003.map,--cref -mmcu=atmega128 -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)=B(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
elfcoff.
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
response.
Eric
avr-gcc-list at http://avr1.org
- [avr-gcc-list] Elf - coff volatile, Daniel Williamson, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile,
E. Weddington <=
- Re: [avr-gcc-list] Elf - coff volatile, E. Weddington, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, Marko Panger, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, E. Weddington, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, Jesper Hansen, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, E. Weddington, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, Jeff Barlow, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, Larry Barello, 2002/11/09
- Re: [avr-gcc-list] Elf - coff volatile, E. Weddington, 2002/11/09
Re: [avr-gcc-list] Elf - coff volatile, address@hidden, 2002/11/09