If you followed my previous post on how to use the famous Eclipse IDE to program AVR microcontrollers, you may have noticed, that there are some shortcomings. Especially the creation of a new project is cumbersome, as you have to change the compiler settings from gcc to avr-gcc over and over again.
But there two small nifty plugins, called AVR Plugins for Eclipse, written by Matthew R. McDougal, to help us out.
Plugin one mostly adds a new target to your IDE. This way it is much easier to configure your WinAVR compiler.
The second plugin adds a download button to Eclipse that enables directly uploading of the compiled hex file to the controller without leaving your IDE. For this purpose avrdude is used.
Installation is easy as for all Eclipse plugins.
- Download the archive from SourceForge.
- Extract the archive.
- Copy both folders into the plugins directory of your Eclipse installation.
- Copy the batch file avr-objsplit.bat into the bin directory of your WinAVR installation.
How does it look like
If everything went well, you should see the new AVR download button in the Eclipse tool bar. Selecting New->Project starts the project wizard. Now you can select the new AVR-Cross target.
To configure the upload process you have to choose Window->Preferences->AVRDUDE to bring up the following dialog. Select your COM port, type of programmer etc.
It works great for me and makes the development with Eclipse for AVRs much more comfortable. I have mailed Matthew about making the download process more responsive, as for now you get just an hour glass. Hope he puts it in.