[Top][All Lists]

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

[avr-gcc-list] Elf - coff volatile

From: Daniel Williamson
Subject: [avr-gcc-list] Elf - coff volatile
Date: Mon, 4 Nov 2002 12:31:28 -0000

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)

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

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.

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

reply via email to

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