Skip to content

bastl-instruments/arduino-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Library Eclipse project for Arduino

1. Installing Eclipse

  • check if you have java installed (and if tis on your PATH if you are using windows). by running java -version

  • download eclipse with C++ deveopment tools from http://www.eclipse.org/cdt/downloads.php and install it

missing: different achitectures, PATH, adding direct link to JVM in eclipse settings

Test: If you can start eclipse you can pass on

2. Installing Eclipse Plugins and Toolchain

  • To install the AVR Eclipse-Plugin, open Eclipse and go to Help > Install News Software There, paste this link http://avr-eclipse.sourceforge.net/updatesite into the first field called Work with

    Click through the install process. If you want to check if the installation was successful, go to Help > About Eclipse Platform > Installation Details and look for the AVR plugin

  • You will need to install the avr-g++ compiler in order to compile your code to a .hex file and send it to the chip over your serial port. This step depends on your platform:

    When the Eclipse plugin can locate those tools you were successful. You can check this in: Preferences > AVR > Paths The 'Atmel Part Description Files' are not needed here.

3. Set up Serial connector

  • Install drivers for the programmer you are using to upload code to the chip. For the sparkfun FTDI, the drivers are included in the arduino IDE. If you have it installed, you are done with this step. In case have a different configuration, search for you FDTI chip on the web.

  • Plug in your programmer and find out the serial port it is using. On mac on linux, this command will help you choose your device: ls /dev | grep tty

  • Create an AVR programmer in Eclipse. Open Preferences > AVR > AVRDuded > Add Choose the following options:

          Programmer Hardware: Arduino
          Default port: --> the path you found out in the last step
          Default Baudrate: 115200
    

4. Create Workspace and Projects

  • Choose a workspace directory. We will refer to it as W_DIR.

  • Download the repositories from bastl-instruments and copy them in the following matter. You will have to create the folder libs-bastl on your own. it goes next to libs and libs-external.

       W_DIR
          |
          arduino_base
          |   |
          |   libs-bastl
          |       |
          |	    bastl
          |       |
          |       ..other library repositories from bastl instruments
          | 
          SEKVOJ
          |
          ..other device specific projects
    
  • Open Eclipse, change the workspace you are using to W_DIR by File > Change Workspace

  • Import arduino-base and the instrument specific projects to eclipse via File > Import > General > Existing project into workspace

  • Add the programmer you created in the previous step to all projects (except for arduino-base because it is a library). Therefore go to: Right click on project name > Properties > AVR > AVR Dude

--> You should now be able to Build all Projects by clicking to the apropriate icon in the top bar. After that you can click on the desired project and upload it to the chip by using the avr icon in the top bar

Links

http://playground.arduino.cc/code/eclipse

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published