Project

General

Profile

Setting up Arduino with Eclipse IDE » History » Revision 2

Revision 1 (Joseph Foley, 2012-02-23 18:53) → Revision 2/5 (Joseph Foley, 2012-02-23 18:59)

h1. Setting up Arduino with Eclipse IDE 


 h1. Setting up Eclipse for Arduino 

 h2. Installing Eclipse and AVR-GCC 

 # Install a Java JRE (or SDK if you need it for other things) 
 ## http://java.com 
 # Follow the directions on the "Eclipse":http://www.eclipse.org website to install Eclipse for C/C++ 
 ## http://www.eclipse.org/downloads/moreinfo/c.php 
 ## If you already have a different flavor installed, you need to install the CDT configuration 
 ## http://eclipse.org/cdt/ 
 # Winstall WinAVR http://winavr.sourceforge.net/ 

 h2. Eclipse plugins  

 Start eclipse before continuing. 

 h3. Subversive (for SVN) 

 # MenuBar "Help" > Install New Software... 
 # Look at "Work with:" dropdown 
 # Pick Helios or Indigo 
 # The listing underneath should show a category "Collaboration".    Expand it. 
 # Check the box next to "Subversive SVN Team Provider (Incubation)".    If there are multiple, pick the latest version. 
 # Click Finish 
 # Answer all of the following menus which are mostly licensing. 
 # Restart eclipse 

 h3. Setting up SVN in eclipse 

 # Click on the View icon in the bottom left corner.    (It should look like a tiny window with a +) 
 # Click on "Other..." 
 # In the "Show View" window, expand SVN 
 ## Now Choose SVN Repositories 
 # More dialogs will ask what kind of SVN Connector to install.    Choose the pure java version SVNKit with the latest version number.    !!!DO NOT CHOOSE JAVAHL!!!! 
 # Restart eclipse 
 # Click on "Other..." 
 # In the "Show View" window, expand SVN 
 ## Now Choose SVN Repositories.    A Tab should appear "SVN Repositories" 
 # In the SVN Repositories tab 
 ## Click on the yellow cylinder with a green +.    DO NOT CLICK ON THE ONE THAT SAYS SVN! 
 ## The window "New Repository Location" should appear 
 ## Type in the project URL in the URL: field.    This is https://projects.cs.ru.is/svn/arduino https://projects.cs.ru.is/svn/mechatronics1-2011 
 ## Under Authentication, fill in the User: and Password: 
 ## click on Finish 
 # A yellow cylinder with "https://projects.cs.ru.is/svn/arduino" "https://projects.cs.ru.is/svn/mechatronics1-2011" should appear 
 # Expand it and see if the files in our project appear 


 h3. eclipse-avr 

 # MenuBar "Help" > Install New Software... 
 # Click on "Add" 
 ## Name: AVR Eclipse plugin 
 ## Location: http://avr-eclipse.sourceforge.net/updatesite 
 ## Click "OK" 
 # Make sure that it is selected under "Work with:" 
 # "CDT Optional features" should show up in the listing.    Expand it. 
 # Check "AVR Eclipse Plugin" 
 # Click Finish 
 # Answer all of the following menus which are mostly licensing. 
 # Restart eclipse 

 



 h2. Installing the ArduinoTemplate  

  


 # Grab Use the ArduinoTemplate.zip from https://projects.cs.ru.is/projects/arduino/files 
 ArduinoTemplate in Libraries.   
 # Unzip SVN copy the ArduinoTemplate.zip somewhere directory to your project and rename it 
 # Import Check out the files as a new AVR C++ project 
 # Rename the project in the project explorer 
 # Check in the rename 

 Note, even with this template you will need to setup the AVRDUDE 
 programmer at least once 

 # Right click on the project and select "Properties" 
 # Expand the AVR section on the left 
 # Click on "Target Hardware" 
 ## For the Arduino UNO, MCU type is ATmega328P 
 ## For the Arduino Mega 256, MCU type is ATmega2561 
 ## Both: The MCU Clock frequency is 16 000 000 
 # Click on "AVRDude" on the left 
 # Make sure "Programmer" tab is selected 
 # In the "Programmer configuration" are 
 # Click on New...   
 ## Configuration name: "Arduino UNO" 
 ## Description: "Arduino UNO on port PORT"    Put your 
	  portname instead of PORT.    This is something like COM3 on 
	  windows and /dev/ttyUSB0 on linux 
 ## Programmer Hardware (-c): choose Arduino 
 ## Override default port: choose the port that the Arduino is 
	  attached to 
 ## Click on "OK" 
 # You may have to do this for multiple ports if the 
 Arduino keeps changing which one it uses 
 #    Click on "Apply"