Building a Project

From the ISSM_ROOT location, set up your environment with issm_env.sh and locate the Zephyr* Project examples inside the "firmware" folder:

:: navigate to your ISSM ROOT location (this depends on your installation path) 
cd C:\IntelSWTools\ISSM_2016.1.067
:: load the issm environment
issm_env.bat
:: launch/ switch to MinGW bash
call %MINGW_DIR%/bin/bash.exe --login
# navigate to the hello world example
cd $ZEPHYR_BASE/samples/hello_world/microkernel

Note

We use for both kernel types the micro kernel example in this documentation. You can use the nano kernel example but for the ease of following the commands in this documentation, only the microkernel directory is used. The target kernel type can be switched by the KERNEL_TYPE argument.

Nano Kernel build for the Intel® Quark™ D2000 Developer Board :

make BOARD=quark_d2000_crb KERNEL_TYPE=nano

Note

For the Intel® Quark™ microcontroller D2000, only Nano Kernel projects are supported.

Configure debugging of multicore microcontrollers

To correctly initialize the multiple cores for debugging, additional steps are required. See Advanced Debugging and Deployment section/ Debugging Zephyr* Applications for the ARC* Core for further information.

Nano Kernel build for the Intel® Quark™ SE C1000 Developer Board (Intel® Quark™ core):

make BOARD=quark_se_devboard KERNEL_TYPE=nano

Micro Kernel build for the Intel® Quark™ SE C1000 Developer Board (Intel® Quark™ core):

make BOARD=quark_se_devboard KERNEL_TYPE=micro

Nano Kernel build for the Intel® Quark™ SE C1000 Developer Board (Sensor Subsystem core):

make BOARD=quark_se_sss_devboard KERNEL_TYPE=nano

Note

For the Intel® Quark™ SE microcontroller Sensor Subsystem core, only Nano Kernel projects are supported.

Nano Kernel build for the Arduino 101 / Genuino 101 Board (Intel® Quark™ core):

make BOARD=arduino_101_factory KERNEL_TYPE=nano

Micro Kernel build for the Arduino 101 / Genuino 101 Board (Intel® Quark™ core):

make BOARD=arduino_101_factory KERNEL_TYPE=micro

Nano Kernel build for the Arduino 101 / Genuino 101 Board (Sensor Subsystem core):

make BOARD=arduino_101_sss_factory KERNEL_TYPE=nano

Note

For the Intel® Curie™ microcontroller Sensor Subsystem core, only Nano Kernel projects are supported.

All builds are stored in the same location:

$ZEPHYR_BASE/samples/hello_world/microkernel/outdir/zephyr.elf

To make your own project, use one of the provided examples and update values of the Makefile and app.mk.

For more complete information about compiler optimizations, see our Optimization Notice.