Getting Started: Intel® System Studio

Getting Started with Intel® System Studio for Microcontrollers 2015 (Linux*)

This document provides a general overview of Intel® System Studio for Microcontrollers 2015 and information about how to use it for developing and debugging your applications for the Intel® Quark™ microcontroller D1000 on Linux* platforms.  The overview will cover using how to do this from the command line and from Eclipse* IDE and provides a list of compiler options, additional product information, and technical support.

Intel® Quark™ microcontroller D1000 only requires a mini-usb connection for uploading your code to the board (flashing), running a GDB debugging session with a  OpenOCD connection, and performing UART communications.

  

Introducing the Intel® System Studio for Microcontrollers 2015

Intel® System Studio for Microcontrollers 2015 is an integrated tool suite for developing and debugging systems and applications for the Intel® Quark™ microcontroller D1000 target - a configurable and fully synthesizable accelerator and microcontroller core (hereinafter referred to as “MCU”). Further in this document, we may refer to the Intel® System Studio for Microcontrollers 2015 as the “suite”, the “toolchain”, or the “toolset”.


The toolset consists of the following components:

  • C/C++ LLVM-based compiler with MCU support including Linker, assembler, C/C++ Run-time libraries
  • GDB Debugger with MCU support
  • OpenOCD with MCU support

You can use the toolset from the command line and from the Eclipse* Luna or Mars IDE.
The toolset supports the following host operating systems:

  • Linux* (Fedora* 19 and Ubuntu* 12.04 LTS and 14.04 LTS)

 

Installing Intel® System Studio for Microcontrollers 2015

1. Before downloading the toolchain, make sure you have at least 140 MB free space on your host system.

2. Download Intel® System Studio for Microcontrollers from the Intel Registration Center page.  The name of the archive is: l_cembd_iqd_p_1.0.n.xxx.tgz (for Linux*) where “n” is the “update release” number and “xxx” represents the package build number.

3. Install the toolchain by extracting the contents of the archive, corresponding to your operating system, to a directory where you have the write access.  Note that there is no default installation directory for the toolchain.  Make sure the installation directory and path does not contain spaces.

4. Extract the contents of the archive to a directory where you have the write access, for example, your
$HOME directory. Use the following command:

tar –xzf l_cembd_iqd_p_1.0.0.001.tgz –C $HOME

In this example, your installation directory will be $HOME/l_cembd_iqd_p_1.0.n.xxx.

 

Installing a valid version of glibc

Make sure you have a valid version of the GNU C Library (glibc). Visit http://www.gnu.org/software/libc/ for installation.

For Fedora* it is glibc.i686 and you would execute the following command from a terminal as root:
yum install glibc.i686

For Ubuntu* it is ia32-libs and you would execute the following command from a terminal as root:
apt-get install ia32-libs

 

Installing USB Driver

By default, non-root users do not have access to the JTAG pods connected via USB. You must grant write access to the proper /dev/bus/usb entry every time a device is connected to be able to run OpenOCD using a non-root account.

The process can be automated by adding an udev rule:

1. Create a text file in the rules directory:
sudo vim /etc/udev/rules.d/99-openocd.rules

2. Add this line to the file you created:
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010",MODE="0666"

3. Unplug the target and plug it back in again (or reboot the system).  If you miss these steps you may see OpenOCD fail to run with this error:

Error: libusb_open() failed with LIBUSB_ERROR_ACCESS

Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*'
and serial '*'

4. To check if the system can detect the Intel® Quark™ microcontroller D1000 board after successful installation follow these steps:

    a) Unplug the Intel® Quark™ microcontroller D1000 board from the Host system.

    b) Run the command  'sudo dmesg -c'

    c) Plug Intel® Quark™ microcontroller D1000 board into the Host system. 

    d) Run the command 'sudo dmesg -c' again.

    e) See below for pictures of a successful install:

 

Compiling and Debugging

Please refer the attached PDF user guide for a detailed guide on these topics.

 

Firmware Example

Included with the suite is a collection of sample projects, or firmware, to help you get started.  You can modify the firmware that comes with the suite and we encourage you to try it out to learn more about what the toolchain can do.

As an example we have included the below screenshots which show a modified version of PushButton test from the firmware.  It detects a button press and prints out a string in response through the UART.

For more information on this example we have attached a pdf for your review here.

Learn More

ВложениеРазмер
Иконка PDF toolchain_user_guide.pdf1.49 МБ
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.
Возможность комментирования русскоязычного контента была отключена. Узнать подробнее.