Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] What is the recommended route to build avr-gccwithsupport for newer processors? [RSS Feed]

#1 Dec. 5, 2005 22:15:03

Nigel W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] What is the recommended route to build avr-gccwithsupport for newer processors?


Hello,

For the benefit of those reading the archives I'm following up on what I did
to enable ATmega329 support on WinAVR-20050214.

I downloaded avr-libc 1.4.0 and attempted to build it using the binaries
provided with WinAVR. The configure script completed OK, it found some
missing executables but indicated they should not cause a problem.
When doing a make however, an infinite loop occured i.e. make never
terminated. So I gave up.

Thankfully Joerg Wunsch provided a pre-built avr-libc, this was a life-saver
... many thanks Joerg.

I installed avr-libc 1.4.0 over my WinAVR-20050214. I chose mega32 as a
substitute for mega329 because it has the same amount of program flash and
the same avr5 instruction set. I then copied the following files:

C:\WinAVR\avr\include\avr\iom329.h to C:\WinAVR\avr\include\avr\iom32.h and
C:\WinAVR\avr\lib\avr5\crtm329.o to C:\WinAVR\avr\lib\avr5\crtm32.o

I also added the following lines into my Makefile:
MCU = atmega32
LDFLAGS += -Tdata 0x800100


Job Done: Memory Map and Stack init all OK.

Nigel Winterbottom



_______________________________________________
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] What is the recommended route to build avr-gccwithsupport for newer processors? [RSS Feed]

Board footer

Moderator control

Enjoy the 27th of April
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