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 🙂
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.
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.
Then, right-click to your computer icon on your desktop, click Properties and then Advanced system settings
Under the Advanced tab, click Environment Variables.
Under System variables, select Path and click Edit.
Then, click New and paste the path to the make.exe
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.
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.
Now, go to the C/C++ section and click File types. Click New and add *.ino and *.pde files as C++ Source File.
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.
Select the board as Arduino Leonardo and COM port.
Now you are ready to code!