Intel DeveKit Tutorial Guide
Intel DeveKit Tutorial Guide
Tutorial Guide
Table of Contents
Table of Contents .............................................................................................................................. 2
Document / Revision History ........................................................................................................... 3
Reference Documents ...................................................................................................................... 3
Terminology / Definitions ................................................................................................................. 3
1
Introduction ............................................................................................................................ 4
1.1
1.2
2.1
Connections: ....................................................................................................................... 7
2.2
2.3
2.4
3.1
3.2
4
4.1
4.2
4.3
Debug project.................................................................................................................... 23
4.4
5.1
5.2
LED Blink............................................................................................................................................... 30
LCD Display .......................................................................................................................................... 30
Naui Not A User Interface .................................................................................................................. 30
Troubleshooting ................................................................................................................... 31
Change Description
First release at MWC
Version
1.0
Reference Documents
Document Name
Description
Terminology / Definitions
Term
Change Description
DevKit
ICC
Host
Target
1 Introduction
The DevKit is an out-of-the box evaluation and development platform based on the Intel Galileo
board. This manual describes the technical details and the process of booting the DevKit Live
image and the guide for application developers.
1.1
Component list
Disclaimer: Please note that pictures here are just for reference, the content and parts may vary.
No.
1.
Item
Quick Start Guide
2.
Description
Qty
Intel Galileo Development board. 400MHz 32bit Intel Pentium instruction set architecture
(ISA)-compatible processor
4.
Antennas
10
11
12
1.2
root
Password:
root
Ordinary user:
Username:
user
Password:
devkit
root
Password:
There is no password
2 DevKit Setup
Establish the target and host connections as shown it the figure below:
Power
Users
Router
DevKit Live
USB Image
2.1
Connections:
1.
Insert the micro SD card supplied with the DevKit in the SD Card slot of Galileo.
2.
Connect Ethernet cable between Galileo board and your internet router.
3.
Plug-in serial cable between your Host PC (USB end) and 3.5mm stereo jack male pin in to
Galileo board audio type serial connector close to Ethernet port.
4.
2.2
NOTE: The BIOS configuration are all PC specific, please refer to your PC manufacturer
guide for details on specific BIOS settings.
1. Insert the provided DevKit Live USB key into the USB port of the Host PC.
2. Power on the computer and enter into BIOS menu.
3. Ensure that the legacy BIOS is enabled.
4. Select USB key as the first boot device in the boot order.
5. Save your settings and exit the BIOS menu, reboot the Host PC.
6. Your Host PC will boot from the USB key and you will be presented with the following menu.
For most modern computers the first (default) option should be sufficient (kernel 3.10). If you
have older hardware or experience boot failures, please boot the 3.2 kernel (486 or 686-pae
depending on your hardware).
7. Select the option corresponding to your CPU architecture and Press Enter.
2.3
NOTE: Because Mac UEFI firmware does not implement the Legacy BIOS extension. The
DevKit live image needs to be run in a virtualized environment.
1. Install VirtualBox and Oracle VM VirtualBox Extension Pack on your Mac OS X machine by
following the instructions on the Virtual Box website:
https://www.virtualbox.org/wiki/Downloads
2. Insert the USB key into a USB slot on your Mac
3. Open the Terminal application and switch to the root user using the su command and enter
the root password.
5. Use the diskutil unmountdisk command along with the device node captured in the
previous step to unmount all partitions found on the USB key e.g.
8. You are now ready to create your virtual machine. Use the diskutil unmountdisk command to
unmount the USB key again (please see step 5 above).
9. Open VirtualBox -> Select New -> Type Linux -> Version Debian -> Enter a name for
your virtual machine -> Click Continue
11. Select Use an existing virtual hard drive file checkbox and assign the virtual machine disk
file created in step 7 above to your virtual machine. -> Click Create
13. Double click your USB adapter and clear all fields except the Vendor ID and Product ID -> Set
Remote to Any -> Click OK to close the USB menu -> Click OK to close the setting menu.
15. Your machine will boot from the USB key and you will be presented with the following menu.
For most modern computers the first (default) option should be sufficient (kernel 3.10). If you
have older hardware or experience boot failures, please boot the 3.2 kernel (486 or 686-pae
depending on your hardware).
2.4
1. Connect Galileo target and your Host PC to the same network to verify that you have network
connectivity between these two.
2. Use a terminal emulator (e.g. minicom / teraterm / putty) & connect to the Galileo target console
with configuration 115200 Bit/s, 8 Bit, 1 Stop and No parity. (Please refer to the Galileo release
documentation for details on how to access the Galileo serial console).
3. Login as root user (root user dont have password) and find target IP address using command
ifconfig as below. Note down the IP address at this stage.
1. After successful boot-up from Live USB, the development system will show the desktop.
2. Launch the DevKit IDE by double clicking the desktop Eclipse DevKit IDE icon on the host PC.
d)
3.2
Toolchain Selection
The DevKit Development provides GNU and Intel C/C++ Compiler (ICC) Toolchain. NOTE: The build
environment cannot be dynamically changed.
NOTE: Please note that the build environment cannot be dynamically changed i.e. if you project
was created to use the GNU compiler, you will NOT be able to dynamically convert it to build with
the ICC.
1.
To select required Toolchain for our project, click the Window tab-> Preferences-> Yocto Project
ADT->Select GNU or ICC in the Cross development profiles drop down menu.
2.
4.1
3. From menu, select File New C Project Yocto Project ADT Autotools Project
Hello World ANSI C Autotools Project
4. Enter a project name (e.g: myGNUproject1) Next Complete the required fields (Author,
License etc.) Click Finish
NOTE: Please use only alphanumeric characters in the project name field and no spaces
5. To build this created project for the first time right click on project name and select and click
the option Build Project.
4.2
From menu, select File New C Project Yocto Project ADT Autotools Project
Hello World ANSI C Autotools Project
4. Enter a project name (e.g: myICCproject1) Next Complete the required fields (Author,
License etc.) Click Finish
NOTE: Please use only alphanumeric characters in the project name field and no spaces
3.
5.
To build this created project for the first time right click on project name and select and
click the option Build Project
On successful compilation and build it will generate a binary file suitable to debug / run on
Galileo target board.
4.3
Debug project
1. To transfer, run and debug your application remotely on your Galileo target, right-click your
project folder Debug As Debug Configurations.
5. Expand the 'Root' tree and select where on the target you wish your executable to be saved
(e.g. /tmp/myICCproject) Click the OK button
8. Click Apply to apply the settings -> Click the 'Debug' button to transfer the application to the
target, launch it and start the debugger. This will open the DevKit IDE debug perspective and
insert a breakpoint at the main function. Use the control buttons on the toolbar to control the
program execution (step into, step over etc.)
4.4
After your application is finalized you can transfer it to your Galileo target using the DevKit IDE.
1. Open the Remote System Explored perspective Window -> Open Perspective - > Remote
System Explorer
2. Locate the application binary in the Remote System Explorer tab and copy it e.g. Expand the
Local tab in the Remote System Explored window -> My Home -> workspace ->
myICCproject -> src -> right click myICCproject -> Click Copy
3. Transfer the binary to its desired location on the Galileo target e.g. Expand the galileo tab in
the Remote System Explored window -> Sftp Files -> Root -> /-> right click tmp ->
Click Paste
5 Sample Applications
5.1
This application below shows an example of how you can utilize the DevKit development
environment and the web server running on the Galileo target.
5.2
Please refer to the provided source code of sample applications the SD card.
LED Blink
LCD Display
Naui Not A User Interface
6 Troubleshooting
You cannot create/start your Mac virtual machine and receive permission error messages.
Solution: Please change the ownership of the USB device node e.g.
chown username
/dev/disk4
You receive and invalid session error message when trying to start the VirtualBox virtual
machine
Solution 1: Please use the diskutil list command to verify that the device node of your USB
key matched the device node in the virtual machine disk file:
Solution 2: Please use the diskutil unmountdisk command to unmount the USB key before
starting the virtual machine