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