(edit sidebar)
Intro to Physical Computing Syllabus

Research & Learning

Other Class pages

Shop Admin

ITP Help Pages
Tom's pcomp site
DanO's pcomp site


Installing Eclipse

Tutorials.InstallingEclipse History

Hide minor edits - Show changes to output

Added lines 1-2:

Deleted lines 3-6:
%color=blue%
(:if:)

(:if loggedin true:)
Changed line 75 from:
%color=blue%I got an error, "Launch failed no binaries."  Is there an instruction missing?
to:
%color=blue%I got an error, "Launch failed no binaries."  Is there an instruction missing? It worked when I did a build first.
Added line 85:
*%color=blue% Some simple atmega examples
Changed line 47 from:
%color=blue%This is a good place for another screenshot
to:
%color=blue%This is a good place for another screenshot. Eclipse also asks if you want to switch to the C perspective.
Deleted lines 73-75:

Congradulations, you have written your first C program.

Added lines 75-80:
%color=blue%I got an error, "Launch failed no binaries."  Is there an instruction missing?
(:if:)

Congratulations, you have written your first C program.

(:if loggedin true:)
Added line 49:
Changed lines 8-10 from:
%color=blue%* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
%color=blue%* what else?
to:
* %color=blue%using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
* %color=blue%what else?
Changed lines 79-81 from:
%color=blue%* Getting started with AVR-gcc in Eclipse
%color=blue%* blink.c on the Atmega168 or other Atmega
%color=blue%* burning code on a microcontroller
to:
*%color=blue% Getting started with AVR-gcc in Eclipse
*%color=blue% blink.c on the Atmega168 or other Atmega
*%color=blue% burning code on a microcontroller
Changed line 2 from:
to:
%color=blue%
Changed lines 8-10 from:
* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
* what else?
to:
%color=blue%* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
%color=blue%* what else?
Changed line 47 from:
''This is a good place for another screenshot''
to:
%color=blue%This is a good place for another screenshot
Changed lines 77-82 from:
Yay! So what tutorial do I do next?  And how do I get it on to a microcontroller? Links to other tutorials here:


* Getting started with AVR-gcc in Eclipse
* blink.c on the Atmega168 or other Atmega
* burning code on a microcontroller
to:
%color=blue%Yay! So what tutorial do I do next?  And how do I get it on to a microcontroller? Links to other tutorials here:

%color=blue%* Getting started with AVR-gcc in Eclipse
%color=blue%* blink.c on the Atmega168 or other Atmega
%color=blue%* burning code on a microcontroller
Changed lines 6-7 from:
{+Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
to:
%color=blue%Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
Changed line 10 from:
+}
to:
Changed lines 6-7 from:
Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
to:
{+Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
Added line 10:
+}
Changed lines 6-7 from:
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
to:
Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
Changed line 9 from:
* what else?''
to:
* what else?
Changed lines 76-78 from:
''Yay! So what tutorial do I do next?  And how do I get it on to a microcontroller? Links to other tutorials here:''

''
to:
Yay! So what tutorial do I do next?  And how do I get it on to a microcontroller? Links to other tutorials here:

Changed line 81 from:
* burning code on a microcontroller''
to:
* burning code on a microcontroller
Changed lines 6-7 from:
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:''
''
to:
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:
Changed lines 7-8 from:
''* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
to:
''
* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
Changed lines 78-79 from:
''* Getting started with AVR-gcc in Eclipse
to:
''
* Getting started with AVR-gcc in Eclipse
Changed lines 6-8 from:
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on''
to:
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on. For example:''
''* using Atmegas other than the 8 or 168 (e.g. 128, 1281, ATtiny, etc)
* what else?
''
Changed lines 21-22 from:
image of welcome screen
to:
Attach:image of welcome screen
Changed lines 38-39 from:
  
to:
 
Added lines 44-46:
(:if loggedin true:)
''This is a good place for another screenshot''
(:if:)
Changed lines 49-50 from:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a realy good feature, and will come in handy in the future.  Click "finish".
to:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a really good feature, and will come in handy in the future.  Click "finish".
Changed lines 59-60 from:
 printf("HelloWorld");
//we have to return something why not zero
to:
 printf("Hello World");
 //we have to return something. why not zero?
Changed lines 72-80 from:
Congradulations, you have written your first C program.
to:
Congradulations, you have written your first C program.

(:if loggedin true:)
''Yay! So what tutorial do I do next?  And how do I get it on to a microcontroller? Links to other tutorials here:''

''* Getting started with AVR-gcc in Eclipse
* blink.c on the Atmega168 or other Atmega
* burning code on a microcontroller''
(:if:)
Added lines 1-8:
(:if loggedin true:)

(:if:)

(:if loggedin true:)
''Brief intro here, why C is useful for microcontroller programming.  Cite a couple of examples that you can't do with Arduino, to be shown later on''
(:if:)

Changed lines 5-6 from:
The most recent build of Eclipse available here
to:
The most recent build of Eclipse ([[http://www.eclipse.org/downloads/| available here]])
Changed lines 7-9 from:
Decompress the file and there is your Eclipse.  It will exist just about anywhere you put it. 
Fire it up and watch the fireworks.
to:
Decompress the file and there is your Eclipse.  It will exist just about anywhere you put it.  Fire it up and watch the fireworks.
Changed lines 13-15 from:
Select "workbench", the next thing you see is the environment.  Before you start rockin the
code, let's do a software update so that we can write in C.
to:
Select "workbench", the next thing you see is the environment.  Before you start rockin the code, let's do a software update so that we can write in C.
Changed lines 17-30 from:
You will be prompted with a dialog box with two options about the updates you want.  You
want to "Search for new Features to Install".

Click "next".  Again, you are prompted with a dialog box bearing two options about where
the updates you want can be found.  The updates you are looking for are in the
"Callisto Discovery Site".  Check the box next to "Callisto Discovery Site".

Click "finish".  Eclipse will call the internet looking for the updates.  You will be prompted to
choose a mirror site for your download.  Choose whichever you prefer.  Eclipse returns to
the internet. and brings back the Callisto directory.  If it is not already open, do so by clicking
the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the
C/C++ package and click "next".  If you accept the user agreement, Eclipse will download and
install the package.
to:
You will be prompted with a dialog box with two options about the updates you want.  You want to "Search for new Features to Install".

Click "next".  Again, you are prompted with a dialog box bearing two options about where the updates you want can be found.  The updates you are looking for are in the "Callisto Discovery Site".  Check the box next to "Callisto Discovery Site".

Click "finish".  Eclipse will call the internet looking for the updates.  You will be prompted to choose a mirror site for your download.  Choose whichever you prefer.  Eclipse returns to the internet. and brings back the Callisto directory.  If it is not already open, do so by clicking the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the C/C++ package and click "next".  If you accept the user agreement, Eclipse will download and install the package.
Changed lines 29-33 from:
A dialog box with the types of projects that are available.  Open the folder labled "C". 
Inside are two options.  Choose the "Managed Make C Project", and click "next". 
Name the project and click "next".  Here you will choose the type.  Choose "Executable",
and click "finished".
to:
A dialog box with the types of projects that are available.  Open the folder labled "C".  Inside are two options.  Choose the "Managed Make C Project", and click "next".  Name the project and click "next".  Here you will choose the type.  Choose "Executable", and click "finished".
Changed lines 35-39 from:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above
is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and
watch the warning box change.  This is a realy good feature, and will come in handy in the future. 
Click "finish".
to:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a realy good feature, and will come in handy in the future.  Click "finish".
Added line 51:
Changed line 29 from:
 the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the
to:
the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the
Changed lines 7-8 from:
Decompress the file and there is your Eclipse.  It will exist just about anywhere you put it.  Fire it up and watch the fireworks.
to:
Decompress the file and there is your Eclipse.  It will exist just about anywhere you put it. 
Fire it up and watch the fireworks.
Changed lines 14-15 from:
Select "workbench", the next thing you see is the environment.  Before you start rockin the code, let's do a software update so that we can write in C.
to:
Select "workbench", the next thing you see is the environment.  Before you start rockin the
code, let's do a software update so that we can write in C.
Changed lines 19-24 from:
You will be prompted with a dialog box with two options about the updates you want.  You want to "Search for new Features to Install".

Click "next".  Again, you are prompted with a dialog box bearing two options about where the updates you want can be found.  The updates you are looking for are in the "Callisto Discovery Site".  Check the box next to "Callisto Discovery Site".

Click "finish".  Eclipse will call the internet looking for the updates.  You will be prompted to choose a mirror site for your download.  Choose whichever you prefer.  Eclipse returns to the internet. and brings back the Callisto directory.  If it is not already open, do so by clicking the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the C/C++ package and click "next".  If you accept the user agreement, Eclipse will download and install the package.
to:
You will be prompted with a dialog box with two options about the updates you want.  You
want to "Search for new Features to Install".

Click "next".  Again, you are prompted with a dialog box bearing two options about where
the updates you want can be found.  The updates you are looking for are in the
"Callisto Discovery Site".  Check the box next to "Callisto Discovery Site".

Click "finish".  Eclipse will call the internet looking for the updates.  You will be prompted to
choose a mirror site for your download.  Choose whichever you prefer.  Eclipse returns to
the internet. and brings back the Callisto directory.  If it is not already open, do so by clicking
the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the
C/C++ package and click "next".  If you accept the user agreement, Eclipse will download and
install the package.
Changed lines 41-42 from:
Name the project and click "next".  Here you will choose the type.  Choose "Executable", and click "finished".
to:
Name the project and click "next".  Here you will choose the type.  Choose "Executable",
and click "finished".
Changed lines 48-49 from:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a realy good feature, and will come in handy in the future.  Click "finish".
to:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above
is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and
watch the warning box change.  This is a realy good feature, and will come in handy in the future. 
Click "finish".
Changed lines 55-65 from:
//this is an include.  get used to these, they add functionality to your program
#include <stdio.h>

//this is your main loop
int main(){
//this is the printline statement
printf("HelloWorld");
//we have to return something why not zero
return 0;
}
to:
 //this is an include.  get used to these, they add functionality to your program
 #include <stdio.h>

 //this is your main loop
 int main(){
 //this is the printline statement
 printf("HelloWorld");
 //we have to return something why not zero
 return 0;
 }
Changed lines 37-38 from:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a relly good feature, and will come in handy in the future.  Click "finish".
to:
Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a realy good feature, and will come in handy in the future.  Click "finish".
Changed line 27 from:
This opens a project Wizard where you will make several choices about
to:
This opens a project Wizard where you will make several choices about the project.
Changed lines 31-59 from:
Name the project and click "next".  Here you will choose the type.  Choose "Executable", and click "finished".
to:
Name the project and click "next".  Here you will choose the type.  Choose "Executable", and click "finished".

Your project opens before you.

A folder will appear to the left, this is the project folder.  Everyhing is documented here.

Go New>Source File.  A dialog will appear, prompting you to give the file a name.  Directly above is a warning dialog telling you what's immediately wrong with the name.  Type in  helloworld.c  and watch the warning box change.  This is a relly good feature, and will come in handy in the future.  Click "finish".

The source file opens in the middle window.  Type this code in:

//this is an include.  get used to these, they add functionality to your program
#include <stdio.h>

//this is your main loop
int main(){
//this is the printline statement
printf("HelloWorld");
//we have to return something why not zero
return 0;
}

Before we run the code, look below the code window.  There are three tabs, select the one labled "Console"
Select the project folder to the left.

Go Run>RunAs>Run Local C/C++ Application

In the Console the text HelloWorld will appear.

Congradulations, you have written your first C program.
Added lines 1-31:
This is where we begin with writing C.  First we are going to set up our environment.

You are going to need a few things:

The most recent build of Eclipse available here

Decompress the file and there is your Eclipse.  It will exist just about anywhere you put it.  Fire it up and watch the fireworks.

This will be the first thing you see.

image of welcome screen

Select "workbench", the next thing you see is the environment.  Before you start rockin the code, let's do a software update so that we can write in C.

Go to Help >Software Updates>Find and Install

You will be prompted with a dialog box with two options about the updates you want.  You want to "Search for new Features to Install".

Click "next".  Again, you are prompted with a dialog box bearing two options about where the updates you want can be found.  The updates you are looking for are in the "Callisto Discovery Site".  Check the box next to "Callisto Discovery Site".

Click "finish".  Eclipse will call the internet looking for the updates.  You will be prompted to choose a mirror site for your download.  Choose whichever you prefer.  Eclipse returns to the internet. and brings back the Callisto directory.  If it is not already open, do so by clicking the triangle next to the name.  The C/C++ package is at the top.  Check the box next to the C/C++ package and click "next".  If you accept the user agreement, Eclipse will download and install the package.

Restart Eclipse and go to the "workbench".

Go to File>New>New Project.

This opens a project Wizard where you will make several choices about
 
A dialog box with the types of projects that are available.  Open the folder labled "C". 
Inside are two options.  Choose the "Managed Make C Project", and click "next". 
Name the project and click "next".  Here you will choose the type.  Choose "Executable", and click "finished".
  Edit | View | History | Print | Recent Changes | Search Page last modified on May 24, 2007, at 09:26 AM