How to use Eclipse with tinylab

Kerem İzgölUncategorized0 Comments

Eclipse is an open source IDE that supports many different programming languages – including Arduino. As the tinylab is an Arduino board, we can use it with Eclipse 🙂

Prerequisities

As the Eclipse is a little bit of an advanced IDE, there are some things you must fiddle with before getting the Eclipse running on Windows. These are:

  • Java installed on your system (I recommend 32-bit regardless of your system)
  • GNU make for Windows
  • Arduino IDE 1.6.5 (from

Firstly, go to java.com and download the latest version of Java 32-bit version. The download section will automatically lead you to the 32-bit version, if you don’t choose any other options.

eclipse1

After installing the Java, we need to get GNU make for Windows, install it and add the path to the enviroment variables in our system. Then, we need to add the path of the make.exe to our enviroment variables. Depending on your system, the make.exe could be located under C:\Program Files (x86)\GnuWin32\bin or C:\Program Files\GnuWin32\bin. Find the corrent path and copy it.

eclipse2

Then, right-click to your computer icon on your desktop, click Properties and then Advanced system settings

eclipse3

eclipse4

Under the Advanced tab, click Environment Variables.

eclipse5

Under System variables, select Path and click Edit.

eclipse6

Then, click New and paste the path to the make.exe

eclipse7

Reboot your computer and now we are ready to install Eclipse.

Installing Eclipse Arduino Plugin

Go to eclipse.baeyens.it/stable-win.html and download the 32-bit version. You need to have 7-zip or WinRAR to open and extract the tar file. Then go to arduino.cc and download the Arduino IDE 1.6.5. Later versions may not work correctly. Unzip this one too, and now we are ready to setup Eclipse to work with Arduino.

Start Eclipse. Select a folder for your workspace and select menu Window>Preferences. Click Arduino from the left pane. Select the path of the Arduino IDE by clicking Browse.

eclipse9

After selecting the correct path for the Arduino IDE, make sure you have the ide is supported and make is found on your system text in green. Click Apply.

eclipse10

Now, go to the C/C++ section and click File types. Click New and add *.ino and *.pde files as C++ Source File.

eclipse11

Click OK and close the preferences window. Now we are ready to create a new project. Click the New Sketch button on the toolbar and enter the name of your project.

eclipse12_new

Select the board as Arduino Leonardo and COM port.

eclipse13

Now you are ready to code!

Leave a Reply

Your email address will not be published. Required fields are marked *