Project

General

Profile

Eclipse Arduino » History » Revision 5

Revision 4 (Joseph Foley, 2012-09-16 02:44) → Revision 5/6 (Joseph Foley, 2012-09-16 03:37)

h1. Eclipse Arduino 

 Setting up Eclipse for Arduino 

 * Official directions at: http://arduino.cc/playground/Code/Eclipse 
 * Arduino module for Eclipse: http://www.baeyens.it/eclipse/ 

 h1. Windows Install 

 # 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/ 

 h1. Linux (Ubuntu 12.04) Install 

 # Install the packages.    CDT refers to the C Development Toolkit 
 <pre>sudo apt-get install arduino eclipse-cdt </pre> 
 # Make sure you are in the dialout group so that you can access serial ports 
 <pre>sudo apt-get usermod -a -G dialout $USER</pre> 
 ## If you do so, you'll need to logout then log back in to get the proper permissions 
 h1. All platforms 

 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 

 h1. 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 

 # 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"