-
Notifications
You must be signed in to change notification settings - Fork 64
ZJS IDE Tutorial
This wiki is intended to supplement the upcoming video tutorial about ZJS and the Web IDE. Here you will find step by step instructions to recreate what you see there, and learn how to get started with ZJS and the IDE.
The ZJS development environment uses your host computer, the Arduino 101 board, and a USB A-B cable for communications. The cable also provides also power to the board so you won’t need a separate power supply until you get into more complicated uses that need more power.
The Arduino 101 board needs to be initially prepared for use with the ZJS environment. The tutorial video uses pre-built binaries built using the v0.3 branch. There are two images needed for separate processors on the board. On your host computer, download the x86 and arc ZJS binaries in the 'Downloads' section on this page:
https://github.com/01org/zephyr.js/releases/tag/v0.3
Once you have the images, plug in your Ardunino 101. Then use the following commands to flash the images to your board. Note: you need to press the 'MASTER RESET' button on the Arduino 101 before calling these commands. You will have a roughly 5 second window where the board will allow you to write to it.
dfu-util -a x86_app -D zjs-0.3-ide-prebuilt-arduino101-x86.bin dfu-util -a sensor_core -D zjs-0.3-ide-prebuilt-arduino101-arc.bin
If you prefer to build your own binaries and try out the latest and greatest, you'll find all the information on how to do that here:
https://github.com/01org/zephyr.js#getting-started
If you are using Linux on your host system, you'll also need to add a rules file to allow you to flash the images to your device. See the Zephyr Project page for information on create_dfu_udev_rule script.
Windows users may need to download additional USB drivers to allow their Arduino 101 connect to the IDE.