Setting up Eclipse for Arduino » History » Version 2
Joseph Foley, 2012-01-10 13:37
Heavily updated directions with how to install Eclipse and the plugins.
| 1 | 1 | Joseph Foley | h1. Setting up Eclipse for Arduino |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Joseph Foley | h2. Installing Eclipse and AVR-GCC |
| 4 | |||
| 5 | # Install a Java JRE (or SDK if you need it for other things) |
||
| 6 | ## http:/java.com |
||
| 7 | # Follow the directions on the "Eclipse":http://www.eclipse.org website to install Eclipse for C/C++ |
||
| 8 | ## http://www.eclipse.org/downloads/moreinfo/c.php |
||
| 9 | # Winstall WinAVR http://winavr.sourceforge.net/ |
||
| 10 | |||
| 11 | h2. Eclipse plugins |
||
| 12 | |||
| 13 | Start eclipse before continuing. |
||
| 14 | |||
| 15 | h3. Subversive (for SVN) |
||
| 16 | |||
| 17 | # MenuBar "Help" > Install New Software... |
||
| 18 | # Look at "Work with:" dropdown |
||
| 19 | # Pick Helios or Indigo |
||
| 20 | # The listing underneath should show a category "Collaboration". Expand it. |
||
| 21 | # Check the box next to "Subversive SVN Team Provider (Incubation)". If there are multiple, pick the latest version. |
||
| 22 | # Click Finish |
||
| 23 | # Answer all of the following menus which are mostly licensing. |
||
| 24 | # Restart eclipse |
||
| 25 | |||
| 26 | h3. Setting up SVN in eclipse |
||
| 27 | |||
| 28 | # Click on the View icon in the bottom left corner. (It should look like a tiny window with a +) |
||
| 29 | # Click on "Other..." |
||
| 30 | # In the "Show View" window, expand SVN |
||
| 31 | ## Now Choose SVN Repositories |
||
| 32 | # 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!!!! |
||
| 33 | # Restart eclipse |
||
| 34 | # Click on "Other..." |
||
| 35 | # In the "Show View" window, expand SVN |
||
| 36 | ## Now Choose SVN Repositories. A Tab should appear "SVN Repositories" |
||
| 37 | # In the SVN Repositories tab |
||
| 38 | ## Click on the yellow cylinder with a green +. DO NOT CLICK ON THE ONE THAT SAYS SVN! |
||
| 39 | ## The window "New Repository Location" should appear |
||
| 40 | ## Type in the project URL in the URL: field. This is https://projects.cs.ru.is/svn/mechatronics1-2011 |
||
| 41 | ## Under Authentication, fill in the User: and Password: |
||
| 42 | ## click on Finish |
||
| 43 | # A yellow cylinder with "https://projects.cs.ru.is/svn/mechatronics1-2011" should appear |
||
| 44 | # Expand it and see if the files in our project appear |
||
| 45 | |||
| 46 | |||
| 47 | h3. eclipse-avr |
||
| 48 | |||
| 49 | # MenuBar "Help" > Install New Software... |
||
| 50 | # Click on "Add" |
||
| 51 | ## Name: AVR Eclipse plugin |
||
| 52 | ## Location: http://avr-eclipse.sourceforge.net/updatesite |
||
| 53 | ## Click "OK" |
||
| 54 | # Make sure that it is selected under "Work with:" |
||
| 55 | # "CDT Optional features" should show up in the listing. Expand it. |
||
| 56 | # Check "AVR Eclipse Plugin" |
||
| 57 | # Click Finish |
||
| 58 | # Answer all of the following menus which are mostly licensing. |
||
| 59 | # Restart eclipse |
||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | h2. Installing the ArduinoTemplate |
||
| 64 | |||
| 65 | |||
| 66 | 1 | Joseph Foley | # Use the ArduinoTemplate in Libraries. |
| 67 | # SVN copy the directory to your project and rename it |
||
| 68 | # Check out the new project |
||
| 69 | # Rename the project in the project explorer |
||
| 70 | # Check in the rename |
||
| 71 | |||
| 72 | Note, even with this template you will need to setup the AVRDUDE |
||
| 73 | programmer at least once |
||
| 74 | 2 | Joseph Foley | |
| 75 | # Right click on the project and select "Properties" |
||
| 76 | # Expand the AVR section on the left |
||
| 77 | # Click on "Target Hardware" |
||
| 78 | ## For the Arduino UNO, MCU type is ATmega328P |
||
| 79 | ## For the Arduino Mega 256, MCU type is ATmega2561 |
||
| 80 | ## Both: The MCU Clock frequency is 16 000 000 |
||
| 81 | # Click on "AVRDude" on the left |
||
| 82 | # Make sure "Programmer" tab is selected |
||
| 83 | # In the "Programmer configuration" are |
||
| 84 | # Click on New... |
||
| 85 | ## Configuration name: "Arduino UNO" |
||
| 86 | ## Description: "Arduino UNO on port PORT" Put your |
||
| 87 | 1 | Joseph Foley | portname instead of PORT. This is something like COM3 on |
| 88 | windows and /dev/ttyUSB0 on linux |
||
| 89 | 2 | Joseph Foley | ## Programmer Hardware (-c): choose Arduino |
| 90 | ## Override default port: choose the port that the Arduino is |
||
| 91 | 1 | Joseph Foley | attached to |
| 92 | 2 | Joseph Foley | ## Click on "OK" |
| 93 | # You may have to do this for multiple ports if the |
||
| 94 | 1 | Joseph Foley | Arduino keeps changing which one it uses |
| 95 | 2 | Joseph Foley | # Click on "Apply" |