Transfer Your Project from Arduino Create* to Intel® System Studio 2018

Published:09/15/2017   Last Updated:09/15/2017

Why go from Arduino Create* to Intel®  System Studio?

By changing development environments from the cloud-based Arduino Create IDE to Eclipse-based Intel System Studio, you now have access to:

  • Power and performance optimization capabilities
  • Advanced debug and trace tools
  • Optimized compilers and highly tuned libraries

Methods for importing your project into Intel System Studio

First, export your project using the Export CMake file option in the Arduino Create menu:

Export as CMake in Arduino Create Menu

This will give you a .zip download with the code and libraries.

There are two ways to import your project into Intel System Studio. The automatic method (#1) is recommended.  Once your project is imported you probably want to also read on how to setup debugging.

Note: For libraries that are dynamically linked in Arduino Create (see /content/www/us/en/develop/articles/using-intel-libraries-in-arduino-create.html for more details), these libraries must be installed in the docker container in Intel System Studio for this to work.

1. Automatic import menu option within Intel System Studio

This feature is only available in Intel System Studio 2018 Update 1, so if you have a later version be sure to update first.

Follow the instructions on https://software.intel.com/en-us/developing-projects-with-intel-system-studio-c-importing-arduino-create-projects 

2. Manual Import by Creating a New Project

The manual steps are described below:

Details

  • Tested with l_cembd_p_2018.0.050
  • Linux* host build
  • Requires CMake on the host

Purpose

Build a project from Arduino Create* in Intel® System Studio (with CMake Makefile generation).

  1. Export a project from Arduino Create*
  2. Extract the provided zip file
  3. Generate the Eclipse* Makefile/.cproject/.project files
  4. Import the build directory into Intel® System Studio
  5. Build/debug

Note: For libraries that are dynamically linked in Arduino Create, these libraries must be installed in the docker container in Intel System Studio for this to work.

Exporting a Project from Arduino Create*

The following sample was used: https://github.com/intel-iot-devkit/up-squared-grove-IoTdev-kit-arduino-create/tree/master/examples/Blink using the provided Export flow, save off a CMake-based project archived to a zip file (in this case: arduino_create-cmake.zip).

Generate the Eclipse* CDT Project for Intel® System Studio

  1. First, extract the CMake zip
    unzip arduino_create-cmake.zip -d iss_example_Blink
    
  2. Run CMake to generate the CDT Project
    cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -Biss_example_Blink/build -Hiss_example_Blink/_cmake

Import the project into Intel® System Studio

Build and Debug

  1. Set a breakpoint in the sketch.


  2. Build the project. Make sure to save prior to building! A successful build will place a debug binary in the Project Explorer (below as examples_Blink -[x86_64]).

  3. Debug the project - examples_Blink (1)

  4. Hit Resume (F8) one time to continue from main.cpp to the sketch breakpoint.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804