[En-Nut-Discussion] Newbie - Debugging - makefile removes(rm) *.elf file
Anton Veldhuizen
antonv at hotmail.com
Fri Jul 16 19:22:06 CEST 2004
Hi guys,
Thanks for your replies. I solved my coff creation problems by upgrading
WinAVR to 2004/04/04 (make has been upgraded) and ethernut to 3.4.2
(makefiles include extended coff). Accompanied by AVR Studio 4.09, I now
enjoy a sometimes slow, sometimes crashing (AVR Studio 4.09 bugs) yet
workable debugging environment.
Regards,
Anton
Hi,
I am using following to produce .cof file. It was used just for a small
piece of code. I never tested it with full Nut/OS.
Also avr-gcc options can be obtained by invoking it with '--help -v'
options.
-------------------
CFLAGS = -g -Os \
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \ -Wall
-Wstrict-prototypes \
-Wa,-adhlns=$(<:.c=.lst) \
-std=gnu99
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref,--defsym,__stack=0x10FF
OBJCOPY = avr-objcopy
ELFCOF = $(OBJCOPY) --debugging \
--change-section-address .text-0x0 \
--change-section-address .data-0x800000 \
--change-section-address .bss-0x800000 \
--change-section-address .noinit-0x800000 \
--change-section-address .eeprom-0x810000
%cof: %elf
$(ELFCOF) -O coff-ext-avr $< $@
>From: "Anton Veldhuizen" <antonv at hotmail.com>
>Subject: [En-Nut-Discussion] Newbie - Debugging - makefile removes(rm)
> *.elf file
>Hi all,
>
>...
>
>Furthermore, does someone have an example
>makefile, makedefs and makerules that builds a coff file for debugging via
>AVR Studio?
Dusan
_________________________________________________________________
Get FREE Web space - click to learn more!
http://groups.msn.com/people.msnw?pgmarket=en-za
More information about the En-Nut-Discussion
mailing list