arduinoUNO.eclipse.pdf

(1981 KB) Pobierz
USING THE ARDUINO UNO
WITH ECLIPSE
Milwaukee School of Engineering
Created: June 2011
Last Update: 26 September 2012
Author: Cory J. Prust, Ph.D.
ECLIPSE OVERVIEW
Eclipse is an open-source software development
system
Can be used to program the Arduino UNO board
in C or C++
Allows greater access to and control of
microcontroller subsystems
BEFORE CONTINUING…
The Arduino UNO drivers must be installed!
For details, see the Arduino Installation tutorial:
https://faculty-web.msoe.edu/prust/arduino
Determine which COM port is assigned to the Arduino
UNO board:
In Windows, click on the
Start Menu
and open the
Control Panel
Choose
System and Security
and then, under
System,
open the
Device Manager
Under
Ports (COM & LPT)
locate “Arduino UNO”
IMPORTANT:
Note the “COM” port
OVERVIEW
Step 1:
Installing WinAVR
Step 2:
“Installing” Eclipse
Step 3:
Using Eclipse
Step 4:
Building a Project and Testing the UNO
Step 5:
Creating a New Project
Step 6:
Using the MSOE Support Functions
INSTALLING WINAVR
WinAVR contains the AVR toolchain (plus many other useful tools):
avr-gcc: compiles our C programs
avr-dude: programs the Arduino UNO
Eclipse will use WinAVR automatically – we just need to install it!
Download the latest release of WinAVR from
https://faculty-web.msoe.edu/prust/arduino
Run the installation using default settings.
IMPORTANT:
You must use the default installation directory!
C:\WinAVR-20100110
Zgłoś jeśli naruszono regulamin