Project

General

Profile

Eclipse Arduino » History » Version 3

Joseph Foley, 2012-09-16 00:37
CDT needed

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