Project

General

Profile

Setting up Eclipse for Arduino » History » Revision 2

Revision 1 (Joseph Foley, 2011-11-23 00:32) → Revision 2/3 (Joseph Foley, 2012-01-10 13:37)

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 
 # 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/mechatronics1-2011 
 ## Under Authentication, fill in the User: and Password: 
 ## click on Finish 
 # A yellow cylinder with "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  


 # Use the ArduinoTemplate in Libraries.   
 # SVN copy the directory to your project and rename it 
 # Check out the new 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 

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