Filter results by

Eclipse Desktop IDE for Windows

This article helps you set up an Eclipse development and cross-compilation environment on a Windows® PC. The procedure has been tested on Windows 7 and Windows 10.

The procedures described here are mostly performed on your development PC, in order to create a binary file that you can copy to and run on your target ARTIK board.

A conflict has been observed when trying to use this procedure alongside an Oracle VM + Docker installation. No workaround is known at this time.


The following steps need to be performed on the development machine to install the required dependencies.

Install msys2 bash

The msys bash window is the best way to install and run the tools we'll need.

Install the msys2 (Minimal System) 64-bit tools suite from It will install by default under C:\msys64. Be sure to follow the directions and run the update multiple times, closing the msys bash window (not typing "exit") each time, until no more updates are found.

Install basic tools

You'll be installing various basic tools on your development machine – along with the MinGW (Minimalist GNU for Windows) compiler.

With msys installed, open a bash window and type the following command.

pacman -S make tar rsync openssh git mingw-w64-x86_64-make

Confirm to proceed to the installation of the packages.

Install GCC cross-compile toolchain

You'll need a pre-built and tested cross-compile toolchain. Download the toolchain from this link:

Open the installer and follow the installation steps. On the last screen, make sure you check Add path to environment variable.

The toolchain should be installed under
C:\Program Files (x86)\Linaro\gcc-linaro-arm-linux-gnueabihf-4.8-2013.10.

Eclipse Installation

Download the latest eclipse version from the Eclipse download site; the installer should be named eclipse-inst-win64.exe.

  1. Launch the installer and select the installation of Eclipse IDE for C/C++ Developers.

    You will be prompted to install Java if it is not already installed.

  2. Follow the installation steps until it is complete, then launch Eclipse. Select the directory of the workspace that will contain your projects, and write down this path for later.

  3. Click Help then Install New Software.

  4. Select CDT - in the dropdown list, then select the following for installation.

    • Under CDT Main Features

      – C/C++ Development Tools

    • Under CDT Optional or Uncategorized Features

      – C/C++ GCC Cross Compiler Support

      – C/C++ Remote Launch

      – CDT Standalone Debugger support

  5. Click Next several times and accept the license agreement to start installing the packages.

Eclipse may ask to restart after installing the packages.

You are now ready to create a project under Windows for ARTIK modules.

Create "Hello World" Project

With everything installed, you can now create a new Eclipse project.

  1. With Eclipse open, create your project.

      File >> New >> C Project
    • Type in a project name. Here we use HelloARTIE
    • Select executable target type. Here we will choose the Hello World project.
    • Click Next to continue.

  2. Enter the basic properties of your project as appropriate and click Next. These entries will auto-populate on future projects.

  3. On the Select Configurations screen, click Advanced Settings to set up the build process to use MinGW instead of Make.

    • Under the C/C++ Build tab, check Generate Makefiles automatically, then un-check Use default build command and change the Build command from "make" to mingw32-make.exe

    • Under C/C++ Build => Environment, edit the PATH to prepend C:\msys64\mingw64\bin; C:\Program Files (x86)\Linaro\gcc-linaro-arm-linux-gnueabihf-4.8-2013.10\bin;
      to the existing path.

  4. Click OK to save the properties changes, and continue by clicking Next.

  5. On the final screen, provide the Toolchain prefix as arm-linux-gnueabihf-

  6. Click Finish. The previously selected "hello world" C code template is displayed.

Building and Deploying

Now that your system and project are fully configured, it's time to code and go!

Build the Project

When your code is ready to try building, simply right-click on the project to get the contextual menu, then click Build Project.

The resulting binary file can be found in the Debug directory of the project workspace – for example:


Deploy to Target ARTIK Device

Connect your ARTIK board as usual through a terminal emulator as described here. You will need to be Wi-Fi®-connected as described in the Configuring Wi-Fi article. Your development PC and ARTIK board will need to be connected to the same network in order to copy over and run your programs using scp (secure copy) as noted here.

To prepare for copying, open a bash window and change directories to the binary file location noted above (remember that the slashes change direction).

Now enter the scp command line. For example:

$ scp HelloARTIE root@

The next article offers a more convenient method for moving the files to the ARTIK board.

Run the Program

In your terminal emulator window, run ls -l to make sure the file is where you expect it to be. Then change the file permissions to make it executable:

# chmod 755 HelloARTIE

Now you can finally run it! The terminal output should look like this.

[root@localhost ~]# ./HelloARTIE
!!!Hello ARM World!!!
[root@localhost ~]#

Spend some time adding and changing code to get familiar with the IDE operation.

Bringing in Libraries

Having given the IDE a test run, let's look into building applications using the ARTIK SDK and other open-source libraries available on ARTIK modules. Proceed now to the Eclipse and ARTIK SDK article, which will guide you through this process using ARTIK SDK example projects as a reference.

Last updated on: