Project

General

Profile

Eclipse Arduino » History » Version 6

Joseph Foley, 2012-11-16 11:05
javaw issue mentioned

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