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