First steps with the Blink sketch

So lets go ahead and start with something simple, the Blink example for a Teensy3:

  1. Form the menu select “Arduino” –> “New Sketch”
    Screen Shot 2013-07-03 at 7.39.18 AM
    or click on the New Sketch Button
    Eclipse Arduino Icons
    and give the project a name, perhaps “T3_blink” and click on “Next”
    Screen Shot 2013-07-02 at 9.25.11 PM
  2. Eclipse will then request the Arduino specific information in a new window.
    Screen Shot 2013-07-02 at 9.27.51 PM
  3. Select the appropriate “Boards.txt” file for the Teensy boards
    Screen Shot 2013-07-02 at 9.35.01 PM
    select your board, the correct port, etc. and click on “Finish”.
  4. Now you should see the project in the project explorer.
    Screen Shot 2013-07-02 at 9.39.07 PM
    Open it and open the T3_blink.cpp file with a double-click and it will open up in the center pane for editing.
  5. Insert the blink code as shown below in the suggested places
    Screen Shot 2013-07-03 at 7.49.09 AM
  6. Click on the “Verify” button to compile the program. Make sure you have highlighted the project or a file in the project in the project explorer. Otherwise this button will be greyed out.
    Screen Shot 2013-07-03 at 7.52.15 AM
    Alternatively from the Eclipse menu bar you can also select “Arduino” –>”verify”
  7. In the Console you will be able to see if the compilation was successful
    Screen Shot 2013-07-03 at 7.58.36 AM
  8. If this was successful, now you can upload the compiled hex file to the Teensy
    Screen Shot 2013-07-03 at 8.07.14 AM
I would also recommend for new users to read the info that Jantje has provided on his web site . There is a video demonstrating some of the above and while it is not reflecting the latest version of the plugin it still may provide some helpful hints.
  1. Hi, I tried this and compilation works fine.
    But when I try to upload to my micro I get:
    Launching /Applications/ -C/Applications/ -patmega32u4 -cavr109 -P /dev/tty.usbmodemfd131 -b57600 -D -Uflash:w:/Users/mike/Documents/Programmieren/Eclipse/micro/Release/micro.hex:i

    and thats it. Progress (avrdude) gets stuck and I can wait endlessly.

    Any suggestions?
    Serial Monitor works and gives Numbers like:

    • Hi Mike,

      I have no idea what the problem is with the upload. I would suggest you post this in the Eclipse Arduino Support thread over on the Arduino forum:

      I know that Jantje, the author of the plugin frequents this often.
      I personally don’t use Arduino boards but almost exclusively the Teensy3.x boards from As small like as a micro, but less expensive, and much more powerful. Good luck.

  2. Hi, when I try and compile my sketches I get this in my CDT Build Console.

    22:57:07 **** Incremental Build of configuration Release for project test1 ****
    make all
    make: *** No rule to make target `/Users/justein/Dropbox/Arduino’, needed by `test1.elf’. Stop.

    22:57:07 Build Finished (took 60ms)

  3. Hi, when I try and compile I get this in my CDT Build Console.

    22:57:07 **** Incremental Build of configuration Release for project test1 ****
    make all
    make: *** No rule to make target `/Users/justein/Dropbox/Arduino’, needed by `test1.elf’. Stop.

    22:57:07 Build Finished (took 60ms)

  4. I have the problem that when I create a Project I get a error code and an new project folder without content. Do you have any idea why can that happen?

    Thanks a lot for helping!

  5. Trippy Lighting dude,

    many thanks for creating this up-to-date guide.

    For my install, I am using Windows XP Sp3 + Eclipse Kepler 4.3.2 + JRE 7.0.4 + Arduino IDE 1.5.6 + Arduino Plugin 2.2

    Two issues I found when trying to get the Arduino Eclipse plugin working…

    Ardunio.h would not #include stdlib.h, math.h, avr/pgmspace.h, avr/interrupt.h, etc. Basically everything under “%arduinoRoot%/hardware/tools/avr/avr/include”. I suspect I’d done some rookie mistake with the PATH variable and Eclipse itself got lost. Cheating, I copied the files and directories in “%arduinoRoot%/hardware/tools/avr/avr/include” to “%arduinoRoot%/hardware/arduino/cores/” and all is okay.

    The other gotcha, ‘Make’ does not like S P A C E S in the workspace name??? When the Workbench directory was called “Arduino Test” the compiler stopped dead yeilding that “No rule to make target” message. Altering the workspae directory to “ArduinoTest” built the hex file as expected. How curious? Maybe the command needs quotes round the file name?

    Anyway, thanks and stay trippy.


  6. Doesn’t work for me. I’m NOT using a teensy board. I AM using v2.2 and Arduino 1.5.7

    I tried to build the blink example. First, I had to manually add the include path to the avr includes. That resolved the missing header files. However, building throws an error: “The procedure entry point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll”

    For something that’s supposed to be easy to install, this is NOT easy. Any help would be great. Thanks.

  7. Thank you so much for posting these instructions!

    I followed each step, and how have a working Eclipse Luna CDT with the Ardiuno Eclipse plugin 2.4, able to compile and upload to Teensy 3.1! This is a dream come true 🙂 Now I have the power of Teensie and flexibility of Eclipse.

    Thanks again 🙂

    • Hi Konstantin,

      Glad to hear it is working for you. Thank you very much as well. That sort of feedback is actually very rare!
      I am still on V2.2 of “the product” and have not upgraded it for a while. Are you running this on a Mac or did you follow the Windows instruction ? Also, are there any updates necessary to the instructions or do they work out of the box for V 2.4 ?

  8. I must honestly say that I enjoyed this piece of work.
    It’s the first time I could get something working the 1st time without any hiccups.
    I followed your instruction 100% and got some of my old Nano code working and uploaded to the processor.
    Another world opened up for me. I do not know Eclipse and I did not know of Jantjes.
    You guys did well.
    Thanks so much.

    One question comes to mind (always not so).
    I want to group now function (procedures) together for ease of maintenance.
    I do one do that in Eclipse?

    Warm Regards.

  9. Hi, can you tell me how can I upload my programs to Arduino using USBasp? I can’t see that option in this Arduino Eclipse IDE.

  10. Tried your blink example to get the Eclipse/arduino plugin up and running. I get the below error when I verify the sketch, actually I get 3 of these…

    Invalid arguments ‘
    Candidates are:
    void pinMode(?, ?)

    I also get the error for digitalWrite(?,?)

    I’m currently compiling for an Arduino Uno, however the code is going to be for a due. I’m using Arduino 1.5.8 IDE and the latest plugin code drop as of today for 64bit. Any thoughts as to what I’m missing?

    Thanks much…

    code: ( note I didn’t save it as T3_blink, my project was titled Radio_1 )

    // Do not remove the include below
    #include “Radio_1.h”

    int led = 13;
    //The setup function is called once at startup of the sketch
    void setup()
    // Add your initialization code here
    pinMode(led, OUTPUT);

    // The loop function is called in an endless loop
    void loop()
    //Add your repeated code here

    digitalWrite(led, HIGH);
    digitalWrite(led, LOW);

    • Hi Matt,

      No, unfortunately I have never encounters that form of error message with the simple blink sketch. It is about as basic as it can get and should work. You could ask this question on the Arduino Forum in the thread for this plugin. I created a sub menu item “Other resources” that has a link right to the forum thread so you don’t have to search the Arduino Forum for it.

      You did not mention what OS you have installed this on, but I am going to assume it’s either OS X or Linux as in the Windows platform 1.5.8 ha a bug that the plugin informs you about.
      Also, did you install the plugin, or one of the stable or nightly builds that bundle Eclipse and the plugin ?


    your explain tutorial works very good, at the first time i feel disapointed because i canot upload a program but the trick was firs click on the verify button first before upload the sketch.
    from Mexico.

    • Hi Jesus,

      This is rare feedback. Thank you very much!
      I really appreciate it.


        excuse for my bad English, I feel so happy, because to add AFMotor library to the arduino eclipse project just I was cut and paste the AFmotor.cpp and AFMotor.h into the existing project and i can modify parameter at my convenience in the mentioned files for my custom projects., I am mechanical electrical engineer and this knowledge is very fascinating for me.
        your job is amazing Mr. trippylighting

  12. Hello,

    I installed the toolchain according to Neil Kolbans Manual, which is about the same.

    All I get is:

    17:59:12 **** Incremental Build of configuration Release for project ThermoDev ****
    make all

    17:59:12 Build Finished (took 100ms)

    It does not compile the source, and I have no Idea why. Any suggestions, do I have to add the Source somehow?

    Thank you very much, best Regards,


    • Hi Sebastian,

      If you are out already pretty familiar with working in the Eclipse IDE my suggestion would be not to follow Neil’s instructions but to load down the latest nightly build of the Arduino Eclipse IDE ( version 2.4). Unless you have a VERY compelling reason to use Eclipse Mars standalone and the install the Plugin separately.

      Do not use Arduino 1.6.6 yet as the Arduino Eclipse IDE does not work with it yet.

      Then try if you can compile source. If that works, perhaps you can check out what the differences are between the installations.

  13. kishorerajendran

    Will it work in arduino-uno ?

      • I am new to Arduino. I have a task to pass some data from a webpage to Arduino based code. I need to fetch the data from user from a web page and pass the input to the arduino program via java code.
        what i want to know is:

        1. Do we have any other way to integrate the web page with the arduino code directly without a middleware?
        2. If not,how should I integrate the webpage,middleware(java) and the arduino program.

        Thanks in advance.

      • This blog refers to the Arduino Eclipse Plugin/IDE only. The Arduino Eclipse IDE is not a tool for beginners and you should not be using it until you have more experience with Arduino and programing in general.
        There is an Arduino Forum at, which you should be asking these questions in.

        You are mixing up two concepts in your questions
        1. Do you want to serve web pages from your Arduino or
        2. do you want to access web pages from your Arduino.

        Your question clearly indicates that you want to access web pages from your Arduino. There is a host of information available to do either and I believe some Web examples come with the installation of the Arduino IDE. But, again, the Arduino Forum is a better place to find that information.

  14. Kenneth Lindsay

    Unable to connect serial port: No Serial Ports are shown (list box grayed out) in New Arduino Target Dialog.
    Using eclipse Neon.1.a Release (4.6.1) Ubuntu 16.04.

    Got plugin from this site:
    Eclipse C/C++ IDE for Arduino Neon –

Leave a Reply to Rafał Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: