Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices [RSS Feed]

#1 Dec. 5, 2005 07:42:16

Ned K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices


I patched the avr-gcc 4.02 sources with the attached patch file(which I modified from one posted here for gcc 3.4.3).My intention was to add some of the newer devices, especially theattiny45.Then I rebuilt and reinstalled it (I'm using fink on a Mac). The newversion seems to work, at least on the older devices (though Ihaven't tested it heavily).However, the new version still doesn't admit that it knows about theadded devices.avr-gcc --target-help

says:

Known MCU names:avr1 avr2 avr3 avr4 avr5 at90s1200 attiny10 attiny11 attiny12attiny15attiny28 at90s2313 at90s2323 at90s2333 at90s2343 attiny22 attiny26
at90s4433 at90s4414 at90s4434 at90s8515 at90s8535 at90c8534 at86rf401attiny13 attiny2313 atmega603 atmega103 at43usb320 at43usb355at76c711atmega48 atmega8 atmega83 atmega85 atmega88 atmega8515 atmega8535
atmega16 atmega161 atmega162 atmega163 atmega165 atmega168 atmega169
atmega32 atmega323 atmega325 atmega3250 atmega64 atmega128 atmega645
atmega6450 at90can128 at94kAmong those added were the attiny13, at90pwm2, and attiny45 (whichdon't appear above).When I do

avr-gcc -dumpspecs

the new names show up:

*link:%{!mmcu*:-m avr2}%{mmcu=at90s1200|mmcu=attiny11|mmcu=attiny12|mmcu=attiny15|mmcu=attiny28:-m avr1} %{mmcu=attiny22|mmcu=attiny26|mmcu=at90s2*|mmcu=at90s4*|mmcu=at90s8*|mmcu=at90c8*|mmcu=at86rf401|mmcu=attiny13|mmcu=attiny2313|mmcu=attiny25|mmcu=attiny45|mmcu=attiny85:-m avr2}%{mmcu=atmega103|mmcu=atmega603|mmcu=at43*|mmcu=at76*:-m avr3}%{mmcu=atmega8*|mmcu=atmega48|mmcu=at90pwm*:-mavr4}%{mmcu=atmega16*|mmcu=atmega32*|mmcu=atmega64*|mmcu=atmega128*|mmcu=at90can*|mmcu=at94k:-m avr5}%{mmcu=atmega324|mmcu=atmega325|mmcu=atmega3250|mmcu=atmega329|mmcu=atmega3290|mmcu=atmega48|mmcu=atmega88|mmcu=atmega64|mmcu=atmega644|mmcu=atmega645|mmcu=atmega6450|mmcu=atmega649|mmcu=atmega6490|mmcu=atmega128|mmcu=at90can*|mmcu=atmega162|mmcu=atmega164|mmcu=atmega165|mmcu=atmega168|mmcu=atmega169|mmcu=at90pwm*: -Tdata 0x800100}%{mmcu=atmega640|mmcu=atmega1280|mmcu=atmega1281: -Tdata 0x800200}*multilib_matches:mmcu=atmega103 mmcu=avr3;mmcu=atmega603 mmcu=avr3;mmcu=at43usb320mmcu=avr3;mmcu=at43usb355 mmcu=avr3;mmcu=at76c711mmcu=avr3;mmcu=atmega8515 mmcu=avr4;mmcu=atmega8535mmcu=avr4;mmcu=atmega8 mmcu=avr4;mmcu=atmega48mmcu=avr4;mmcu=atmega88 mmcu=avr4;mmcu=at90pwm2mmcu=avr4;mmcu=at90pwm3 mmcu=avr4;mmcu=atmega161mmcu=avr5;mmcu=atmega162 mmcu=avr5;mmcu=atmega163mmcu=avr5;mmcu=atmega164 mmcu=avr5;mmcu=atmega165mmcu=avr5;mmcu=atmega168 mmcu=avr5;mmcu=atmega169mmcu=avr5;mmcu=atmega16 mmcu=avr5;mmcu=atmega323mmcu=avr5;mmcu=atmega324 mmcu=avr5;mmcu=atmega325mmcu=avr5;mmcu=atmega3250 mmcu=avr5;mmcu=atmega329mmcu=avr5;mmcu=atmega3290 mmcu=avr5;mmcu=atmega32mmcu=avr5;mmcu=atmega640 mmcu=avr5;mmcu=atmega644mmcu=avr5;mmcu=atmega645 mmcu=avr5;mmcu=atmega6450mmcu=avr5;mmcu=atmega649 mmcu=avr5;mmcu=atmega6490mmcu=avr5;mmcu=atmega64 mmcu=avr5;mmcu=atmega128mmcu=avr5;mmcu=atmega1280 mmcu=avr5;mmcu=atmega1281mmcu=avr5;mmcu=at90can32 mmcu=avr5;mmcu=at90can64mmcu=avr5;mmcu=at90can128 mmcu=avr5;mmcu=at94k mmcu=avr5;mmcu=avr2mmcu=avr2;mmcu=avr3 mmcu=avr3;mmcu=avr4 mmcu=avr4;mmcu=avr5 mmcu=avr5;*crt_binutils:%{mmcu=at90s1200|mmcu=avr1:crts1200.o%s} %{mmcu=attiny11:crttn11.o%s}%{mmcu=attiny12:crttn12.o%s} %{mmcu=attiny15:crttn15.o%s} %{mmcu=attiny28:crttn28.o%s} %{!mmcu*|mmcu=at90s8515|mmcu=avr2:crts8515.o%s} %{mmcu=at90s2313:crts2313.o%s} %{mmcu=at90s2323:crts2323.o%s} %{mmcu=at90s2333:crts2333.o%s} %{mmcu=at90s2343:crts2343.o%s} %{mmcu=attiny22:crttn22.o%s} %{mmcu=attiny26:crttn26.o%s} %{mmcu=at90s4433:crts4433.o%s} %{mmcu=at90s4414:crts4414.o%s} %{mmcu=at90s4434:crts4434.o%s} %{mmcu=at90c8534:crtc8534.o%s} %{mmcu=at90s8535:crts8535.o%s} %{mmcu=at86rf401:crt86401.o%s} %{mmcu=attiny13:crttn13.o%s} %{mmcu=attiny2313:crttn2313.o%s} %{mmcu=attiny25:crttn25.o%s} %{mmcu=attiny45:crttn45.o%s} %{mmcu=attiny85:crttn85.o%s} %{mmcu=atmega103|mmcu=avr3:crtm103.o%s} %{mmcu=atmega603:crtm603.o%s} %{mmcu=at43usb320:crt43320.o%s} %{mmcu=at43usb355:crt43355.o%s} %{mmcu=at76c711:crt76711.o%s} %{mmcu=atmega8|mmcu=avr4:crtm8.o%s} %{mmcu=atmega48:crtm48.o%s} %{mmcu=atmega88:crtm88.o%s} %{mmcu=atmega8515:crtm8515.o%s} %{mmcu=atmega8535:crtm8535.o%s} %{mmcu=at90pwm2:crt90pwm2.o%s} %{mmcu=at90pwm3:crt90pwm3.o%s} %{mmcu=atmega16:crtm16.o%s} %{mmcu=atmega161|mmcu=avr5:crtm161.o%s} %{mmcu=atmega162:crtm162.o%s} %{mmcu=atmega163:crtm163.o%s} %{mmcu=atmega164:crtm164.o%s} %{mmcu=atmega165:crtm165.o%s} %{mmcu=atmega168:crtm168.o%s} %{mmcu=atmega169:crtm169.o%s} %{mmcu=atmega32:crtm32.o%s} %{mmcu=atmega323:crtm323.o%s} %{mmcu=atmega324:crtm324.o%s} %{mmcu=atmega325:crtm325.o%s} %{mmcu=atmega3250:crtm3250.o%s} %{mmcu=atmega329:crtm329.o%s} %{mmcu=atmega3290:crtm3290.o%s} %{mmcu=atmega64:crtm64.o%s} %{mmcu=atmega640:crtm640.o%s} %{mmcu=atmega644:crtm644.o%s} %{mmcu=atmega645:crtm6450.o%s} %{mmcu=atmega6450:crtm6450.o%s} %{mmcu=atmega649:crtm649.o%s} %{mmcu=atmega6490:crtm6490.o%s} %{mmcu=atmega128:crtm128.o%s} %{mmcu=atmega1280:crtm1280.o%s} %{mmcu=atmega1281:crtm1281.o%s} %{mmcu=at90can32:crtcan32.o%s} %{mmcu=at90can64:crtcan64.o%s} %{mmcu=at90can128:crtcan128.o%s} %{mmcu=at94k:crtat94k.o%s}What am I missing?

Thanks,
Nedavr-gcc.patchDescription:Binary data_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Attachments:
attachment avr-gcc.patch (7.1 KB)

Offline

#2 Dec. 5, 2005 17:56:46

Bernd T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices


--- Ned Konz <> wrote:

> What am I missing?

Patching the binutils?

Whats the output of "avr-as --target-help"?







__________________________________
Start your day with Yahoo! - Make it your home page!http://www.yahoo.com/r/hs_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Dec. 5, 2005 19:21:44

Ned K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices


On Dec 5, 2005, at 9:50 AM, Bernd Trog wrote:--- Ned Konz <> wrote:What am I missing?Patching the binutils?Ah... wonder where I can find a corresponding patch. Suggestions?Whats the output of "avr-as --target-help"?Known MCU names:avr1 avr2 avr3 avr4 avr5 at90s1200 attiny10 attiny11 attiny12attiny15attiny28 at90s2313 at90s2323 at90s2333 at90s2343 attiny22 attiny26
at90s4433 at90s4414 at90s4434 at90s8515 at90s8535 at90c8534 at86rf401attiny13 attiny2313 atmega603 atmega103 at43usb320 at43usb355at76c711atmega48 atmega8 atmega83 atmega85 atmega88 atmega8515 atmega8535
atmega16 atmega161 atmega162 atmega163 atmega165 atmega168 atmega169
atmega32 atmega323 atmega325 atmega3250 atmega64 atmega128 atmega645
atmega6450 at90can128 at94k

Thanks,
Ned


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#4 Dec. 7, 2005 19:57:22

Bernd T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices


--- Ned Konz <> wrote:

> >> What am I missing?
> >
> > Patching the binutils?
> >
> Ah... wonder where I can find a corresponding patch.http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-binutils/files/__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Getting avr-gcc 4.02 to recognize new devices [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support