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