Sunday 13 March 2011

Programming AVR microcontrollers in Eclipse

     Well I presume that most of the newbie AVR programmers (just like me) started writing code in AVR Studio 4. I found this software that has a very unfriendly text editor with few customizable options and I've decided to use Eclipse for developing my future programs.

     If some of you want to make the same thing I will guide you step by step how to setup Eclipse in order to build AVR code with avr-gcc compiler.

     By the way this solution has been tested on a Windows 7 - 64bit operating system.

Install the following:
- WinAVR (my version: 20100110)
- Java Runtime Environment (latest 64-bit version)
- Eclipse Galileo (64-bit version for Windows)

After installing all of these, launch Eclipse.
- Go to: Window -> Preferences -> Install / Update -> Available Software Sites -> ADD:
http://avr-eclipse.sourceforge.net/updatesite/

- Press OK.
- Now go to: Help -> Install New Software -> choose the source you earlier entered and choose: CDT Optional Features -> AVR Eclipse Plugin (just that).
- Restart Eclipse.

That's it. ;)
Happy AVR coding.