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