Project

General

Profile

Eclipse Arduino » History » Version 1

Joseph Foley, 2012-09-16 00:33
Added the Arduino Eclipse from the old Mechatronics 2011 page

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