Setting up Arduino with Eclipse IDE » History » Version 1
Joseph Foley, 2012-02-23 18:53
copied from mechatronics 1
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 | ## Type in the project URL in the URL: field. This is https://projects.cs.ru.is/svn/mechatronics1-2011 |
||
46 | ## Under Authentication, fill in the User: and Password: |
||
47 | ## click on Finish |
||
48 | # A yellow cylinder with "https://projects.cs.ru.is/svn/mechatronics1-2011" should appear |
||
49 | # 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 | |||
67 | |||
68 | h2. Installing the ArduinoTemplate |
||
69 | |||
70 | |||
71 | # Use the ArduinoTemplate in Libraries. |
||
72 | # SVN copy the directory to your project and rename it |
||
73 | # Check out the new project |
||
74 | # Rename the project in the project explorer |
||
75 | # Check in the rename |
||
76 | |||
77 | Note, even with this template you will need to setup the AVRDUDE |
||
78 | programmer at least once |
||
79 | |||
80 | # Right click on the project and select "Properties" |
||
81 | # Expand the AVR section on the left |
||
82 | # Click on "Target Hardware" |
||
83 | ## For the Arduino UNO, MCU type is ATmega328P |
||
84 | ## For the Arduino Mega 256, MCU type is ATmega2561 |
||
85 | ## Both: The MCU Clock frequency is 16 000 000 |
||
86 | # Click on "AVRDude" on the left |
||
87 | # Make sure "Programmer" tab is selected |
||
88 | # In the "Programmer configuration" are |
||
89 | # Click on New... |
||
90 | ## Configuration name: "Arduino UNO" |
||
91 | ## Description: "Arduino UNO on port PORT" Put your |
||
92 | portname instead of PORT. This is something like COM3 on |
||
93 | windows and /dev/ttyUSB0 on linux |
||
94 | ## Programmer Hardware (-c): choose Arduino |
||
95 | ## Override default port: choose the port that the Arduino is |
||
96 | attached to |
||
97 | ## Click on "OK" |
||
98 | # You may have to do this for multiple ports if the |
||
99 | Arduino keeps changing which one it uses |
||
100 | # Click on "Apply" |