avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Help Patching gcc for mega48/88


From: address@hidden
Subject: Re: [avr-gcc-list] Help Patching gcc for mega48/88
Date: Wed, 02 Mar 2005 07:46:44 -0800
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

E. Weddington wrote:

address@hidden wrote:

I am a little confused about gcc support for mega48/88.

I would like to build gcc-avr for my linux boax. From what I understand gcc 3.4.3 does not support mega48/88, but I noticed that WinAVR gcc 3.4.3 supports mega48/88 .. idential version numbers. Further, there has been some discussion about patching the compiler, which unfortunately I could use some direction. Basically, I need help on how to get my linux gcc 3.4.3 compiler to support mega48/88.

Support for those devices (and some others) are in GCC 4.0 branch in CVS, and binutils HEAD CVS, i.e. they are not released yet for those projects. Support for those devices *is* included in the latest release of avr-libc, version 1.2.3.

There are patches for Binutils 2.15 and GCC 3.4.x series in the avr-libc project Patch Manager. You can find them here:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=2923>

You will want the files:
gcc-3_4_x-avr-new-devs2.patch
binutils-avr-new-devs.patch

These files are listed down towards the bottom of the tracker. These are the patches that WinAVR uses to provide support for these devices.

Again, you do NOT need to patch avr-libc, just get the latest release.
<https://savannah.nongnu.org/patch/download.php?item_id=2923&item_file_id=4131>
HTH
Eric

Thanks for the help Eric.

I was able to patch the binutls and the gcc for support of the mega48/88. I can dump the specs on gcc and confiirm this.

However, when I goto make my project the linker is unable to locate the crtm48.o file (see below). I was under the impression avr-gcc knows were the approprieate file are?

Linking: app.elf
avr-gcc -mmcu=atmega48 -I. -gstabs -g -mmcu=atmega48 -DF_CPU=8000000UL -DTICK_FREQ=1000 -DISR_FREQ=5000 -DTIMER_ISR=SIG_OUTPUT_COMP -O3 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=onethread_sch.o -std=gnu99 -MD -MP -MF .dep/app.elf.d onethread_sch.o rtk.o timer.o --output app.elf -Wl,-Map=app.map,--cref -lm /usr/local/lib/gcc/avr/3.4.3/../../../../avr/bin/ld: crtm48.o: No such file: No such file or directory
make: *** [app.elf] Error 1




reply via email to

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