[Top][All Lists]

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

[avr-gcc-list] avr-objcopy failed to produce coff/ext-coff

From: choo kok seng
Subject: [avr-gcc-list] avr-objcopy failed to produce coff/ext-coff
Date: Thu, 29 Sep 2005 18:03:09 +0800

        I am using winavr to compile a simple c code with the compiler option dwarf2 enabled.
CFLAGS = -ggdwarf-2,
 but I failed to generate extcoff file. The following is the command line I used to generate the extcoff file, I always get "no recognized debugging information":
make extcoff
Converting to AVR Extended COFF: led.cof
avr-objcopy --debugging --change-section-address .data-0x800000 --change-section
-address .bss-0x800000 --change-section-address .noinit-0x800000 --change-sectio
n-address .eeprom-0x810000  -O coff-ext-avr led.elf led.cof

avr-objcopy: led.elf: no recognized debugging information
Therefore, when I load the led.cof with AVRStudio, there it says that there is no source code information.
Can anyone shed me some light on this ?
Also, I tried to load the led.elf directly with the AVRStudio using JTAGICE mkII. The problem is that sometimes it works sometimes it does not, very unrelieable. When it does not work, the output window show the following message:
Coordinator Error when writing memory contents to the debug platform.
Coordinator Error loading object file.
Anyone has any fix regarding loading ELF file on AVRStudio?
Thanks in advance.
Below is the full compilation output
Compiling: main.c
avr-gcc -c -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL -I../../../../Apps/W
inAVR/avr/include  -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshor
t-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst  -std=gnu99 -MD -MP -MF .
dep/main.o.d main.c -o main.o
main.c: In function `main':
main.c:100: warning: unused variable `val'
main.c:101: warning: unused variable `i'
Linking: led.elf
avr-gcc -mmcu=attiny2313 -I. -gdwarf-2 -DF_CPU=1000000UL -I../../../../Apps/WinA
VR/avr/include  -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-e
nums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o  -std=gnu99 -MD -MP -MF .dep/l
ed.elf.d main.o --output led.elf -Wl,-Map=led.map,--cref    -lm
Creating load file for Flash: led.hex
avr-objcopy -O ihex -R .eeprom led.elf led.hex
Creating load file for EEPROM: led.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 -O ihex led.elf led.eep
Creating Extended Listing: led.lss
avr-objdump -h -S led.elf > led.lss
Creating Symbol Table: led.sym
avr-nm -n led.elf > led.sym

reply via email to

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