CoreWind Tiny210 User manual

Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System
System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
V1.0
CoreWind
CoreWind
CoreWind
CoreWind Technology
Technology
Technology
Technology Co.,Limited
Co.,Limited
Co.,Limited
Co.,Limited

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
2
© 2011 CoreWind Technology Co.,Limited
All Rights Reserved. No part of this document may be photocopied, reproduced, stored in a retrieval
system, or transmitted, in any form or by any means whether, electronic, mechanical, or otherwise
without the prior written permission of CoreWind.
No warranty of accuracy is given concerning the contents of the information contained in this
publication.
To
the extent permitted by law no liability (including liability to any person by reason of
negligence) will be accepted by Corewind, its subsidiaries or employees for any direct or indirect loss or
damage caused by omissions from or inaccuracies in this document.
CoreWind reserves the right to change details in this publication without notice.
Product and company names herein may be the trademarks of their respective owners.
CoreWind
CoreWind
CoreWind
CoreWind Technology
Technology
Technology
Technology Co.,Limited
Co.,Limited
Co.,Limited
Co.,Limited
Minzhi, Bao'an District,
Shenzhen City, China.
Tel: +86-755-29638421
Mail: market@armdevs.com
Website: http://www.armdevs.com

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
3
Table
Table
Table
Table of
of
of
of Content
Content
Content
Content
1 INTRODUCTION ................................................................................................................................................... 6
1.1 About This Document ................................................................................................................................ 6
1.2 Related Document ...................................................................................................................................... 6
2 System support ......................................................................................................................................................... 7
3 Android system development ................................................................................................................................... 8
3.1 Build environment ......................................................................................................................................... 8
3.2 Source code Prepared .................................................................................................................................... 8
3.3 Configure and Compile Linux Kernel ........................................................................................................... 9
3.4 Create Android .............................................................................................................................................. 9
3.5 Create or Run File System .......................................................................................................................... 10
4 Android Application Programming Guide ............................................................................................................. 11
4.1 Install the Application Programming environment ..................................................................................... 11
4.1.1 Step 1: download and install JDK(Java SE Development Kit) ........................................................ 11
4.1.2 Step 2: download and install Android SDK ..................................................................................... 12
4.1.3 Step 3: download and install Android2.3 Package ........................................................................... 13
4.1.4 Step 4: install Eclipse development environment ............................................................................ 13
4.1.5 Step 5: install Android Development Tools ...................................................................................... 14
4.1.6 Step 6: Configure the Eclipse ........................................................................................................... 15
4.1.7 Create Android
AVD
........................................................................................................................ 15
4.1.8 Step 8: Develop the first Android application program .................................................................... 16
4.1.9 Creat Hello Tiny210 project .............................................................................................................. 16
4.1.10 Run HelloTiny210 Application Program in
AVD
........................................................................... 18
4.1.11 Step 8: Create the Debugging environment for Tiny210 ................................................................ 18
4.2 Program access to hardware in Andorid ...................................................................................................... 23
4.2.1 How to use the library (libfriendlyarm-hardware.so) ?................................................................... 24
4.2.2 library(libfriendlyarm-hardware.so) API introduce .......................................................................... 25
4.2.3 API Demo introduce ......................................................................................................................... 29
Chapter 5 Linux ........................................................................................................................................................ 31
5.1 Set up Fedora 9.0 Development Environment ............................................................................................ 31
5.1.1 Install Fedora 9.0 .............................................................................................................................. 31
5.1.2 Add User Account ............................................................................................................................ 45
5.1.3Access Windows Files ....................................................................................................................... 48
5.1.4 Configure NFS Service .................................................................................................................... 54
5.1.5 Set Up Cross Compile Environment ................................................................................................ 58
5.2 Uncompress Source Code and Install Application Utilities ........................................................................ 59
5.2.1 Uncompress Source Code ................................................................................................................ 59
5.2.2 Create Target File System ................................................................................................................ 61
5.2.3 Install Target File System ................................................................................................................. 62
5.2.4 Install LogoMaker ............................................................................................................................ 62
5.3 Configure and Compile Kernel ................................................................................................................... 63
5.3.1 Configure and Compile Kernel ........................................................................................................ 63
5.3.2 Location of the Driver ...................................................................................................................... 63

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
4
5.4 Configure and Compile Busybox ................................................................................................................ 65
5.5 Make YAFFS2 Image ............................................................................................................................... 66
5.6 Sample Linux Programs .............................................................................................................................. 66
5.6.1 "Hello, World" .................................................................................................................................. 67
5.6.2 LED Test Program ............................................................................................................................ 70
5.6.3 User Button Test Program ................................................................................................................ 71
5.6.4 PWM Buzzer Program ..................................................................................................................... 72
5.6.5 I2C-EEPROM Program .................................................................................................................... 76
5.6.6 Pipe Programming –Manipulating LED from HTML ................................................................. 78
5.7 Compile Qtopia-2.2.0 .................................................................................................................................. 82
5.7.1 Uncompress and Install Source Code ............................................................................................... 83
5.7.2Compile and Run Qtopia-2.2.0 for x86 ............................................................................................. 83
5.7.3 Compile and Run Qtopia-2.2.0 for ARM ......................................................................................... 84
5.8 Compile QtE-4.7.0 ...................................................................................................................................... 86
5.8.1 Uncompress and Install Source Code ............................................................................................... 86
5.8.2 Compile and Run QtE-4.7.0 for ARM ............................................................................................. 86
5.9 Compile Qtopia4(Qt-Extended-4.4.3) ......................................................................................................... 87
5.9.1 Uncompress and Install Source Code ............................................................................................... 87
5.9.2 Compile and Run Qt-Extened-4.4.3 for x86 .................................................................................... 87
5.9.3 Compile and Run Qt-Extened-4.4.3 for ARM ................................................................................. 88
Chapter 6 WinCE ...................................................................................................................................................... 90
6.1 set up WinCE 6 Development Environment ............................................................................................... 90
6.1.1 Install Visual Studio 2005 and Patches ............................................................................................ 92
6.1.2 Install Windows CE 6.0 and Patches .............................................................................................. 100
6.2 Configure and Compile WinCE 6.0 Kernel and Bootloader ..................................................................... 120
6.2.1 Compile Default Kernel ................................................................................................................. 121
6.2.2 Modify serial port output in BSP ................................................................................................... 127
6.2.3 Create SDK .................................................................................................................................... 128
6.2.4 Install SDK ..................................................................................................................................... 129

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
5
Document
Document
Document
Document version
version
version
version
Table
Table
Table
Table 0-1
0-1
0-1
0-1 Document
Document
Document
Document Revision
Revision
Revision
Revision Notes
Notes
Notes
Notes
Date
Date
Date
Date Description
Description
Description
Description
2012.10 Linux android and Wince development manual
2011.12 Second version
Please check for a newer revision of this manual at CoreWind's web site :
http://armdevs.com/info194.html
Compare the revision notes of the updated manual from the web site to those of the printed or electronic
version you have.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
6
1
1
1
1 INTRODUCTION
INTRODUCTION
INTRODUCTION
INTRODUCTION
1.1
1.1
1.1
1.1 About
About
About
About This
This
This
This Document
Document
Document
Document
This document is part of a set of reference documents providing information necessary to operate and
use CoreWind's Tiny210/Mini210 board.
1.2
1.2
1.2
1.2 Related
Related
Related
Related Document
Document
Document
Document
For additional information not covered in this manual, please refer to the documents listed in Table 1.1.
Table
Table
Table
Table 1-1
1-1
1-1
1-1 Related
Related
Related
Related Document
Document
Document
Document
Document
Document
Document
Document Location
Location
Location
Location
Tiny210 Test Method http://armdevs.com/info194.html

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
7
2
2
2
2 System
System
System
System support
support
support
support
The TIny210/Mini210 support the follow system:
1. Android 4.0
2. Android 2.3
3. Linux
4. WinCE 6.0

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
8
3
3
3
3 Android
Android
Android
Android system
system
system
system development
development
development
development
3.1
3.1
3.1
3.1 Build
Build
Build
Build environment
environment
environment
environment
1. copy the cross tools arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz
arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz
arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz
arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz ,
,
,
, mktools-YYYYMMDD.tar.gz
mktools-YYYYMMDD.tar.gz
mktools-YYYYMMDD.tar.gz
mktools-YYYYMMDD.tar.gz (position:
position:
position:
position:
CD:/
CD:/
CD:/
CD:/ android
android
android
android /
/
/
/) to /tmp folder.
2. uncompress it with the follow command:
# cd /tmp
# sudo tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz –C /
# sudo tar xvzf mktools-YYYYMMDD.tar .gz –C /
Notice, you should use the root user to do it.
3. Add Path in your environment file
Modify your ~/.bashrc file to add a new path with editor (gedit or vi)
PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin
To
apply this change, login again or restart the .bashrc
# source .bashrc
4. Check the tool-chain path to see if it is set up correctly or not, whether it show gcc version
4.5.1
# arm-linux-gcc –v
3.2
3.2
3.2
3.2 Source
Source
Source
Source code
code
code
code Prepared
Prepared
Prepared
Prepared
Let ’s first create a working directory
“
/opt/FriendlyARM/ Tiny210 /android ”
Type the command below in a terminal:
# mkdir
–
p /opt/FriendlyARM/Tiny210/android
# chmod 777 /opt/FriendlyARM/Tiny210/android
The code that will be uncompressed in later steps will all be in this directory.
(1) Get a Copy of Android Souce Code Package
Create a temporary directory “/tmp/android ”in PC.
#mkdir /tmp/android
Copy all the files under “Android ”from the shipped CD to “/tmp/Android ”
( 2 ) Uncompress Android Kernel
Execute the command below in “/opt/FriendlyARM/ Tiny210 /android ”
#cd /opt/FriendlyARM/Tiny210/android
#tar xvzf /tmp/android/linux-2.6.35.7-android-2011-09-30.tgz
This will create a “linux-2.6.3 5 -android ”directory which contains a complete copy of source
code

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
9
Note: 2011 0925 is the date when we released it
( 3 ) Uncompress Android System
Execute the command below in “/opt/FriendlyARM/ Tiny210 /android ”
#cd /opt/FriendlyARM/Tiny210/android
#tar xvzf /tmp/android/android-2.3.1-fs-20110925.tar.gz
This will create a “Android-2.3 .1 ”directory
Note: 2011 092 5 is the date when we released it. This source code contains a copy of
Android-2.3 .1 source code and compiling scripts.
( 4 ) Uncompress Android root filesystem
Execute the command below in “/opt/FriendlyARM/ Tiny210 /android ”
#cd /opt/FriendlyARM/Tiny210/android
#tar xvzf /tmp/android/rootfs_android-20110925.tar .gz
This will create a rootfs_android directory
Note: 2011 0925 is the date when we released it.
3.3
3.3
3.3
3.3 Configure
Configure
Configure
Configure and
and
and
and Compile
Compile
Compile
Compile Linux
Linux
Linux
Linux Kernel
Kernel
Kernel
Kernel
Android's Linux kernel is a little bit different from a standard one but its configuration method is the same. If you
are not familiar with configuring a Linux kernel we suggest you use our default configuration file.
To
compile a kernel, please follow the steps below:
# cd /opt/FriendlyARM/Tiny210/android/ linux-2.6.35.7-android
# cp mini210_android_defconfig .config
# make
This will generate a zImage
zImage
zImage
zImage under "arch/arm/boot".
If you need to use the
AV
Camera in for Tiny210SDK2 board, you should use the command:
# cp mini210-tvp5150_android_defconfig .config
# make
3.4
3.4
3.4
3.4 Create
Create
Create
Create Android
Android
Android
Android
Compiling Android may not be an easy task for beginners. Therefore we have a complete copy of the source code
and two compiling scripts: build-android
build-android
build-android
build-android and genrootfs.sh.
genrootfs.sh.
genrootfs.sh.
genrootfs.sh.
Execute the command below:
# cd /opt/FriendlyARM/Tiny210/android/Android-2.3.1
# ./build-android
This will begin to compile Android-2.3. This process may take a while.
We
recommend users to use a multi-core
CPU and Linux instead of using a simulator.
After it is done, run the following script:
#./genrootfs.sh
This will create a target file system we need and a “rootfs_dir ”directory. It is the same as “rootfs_android ”.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
10
With the mkyaffs2image-128M utility, you can make a yaffs2 image, that can be burn into Tiny210 board.
#cd /opt/FriendlyARM/Tiny210/android/Android-2.3.1
#mkyaffs2image-128M rootfs_dir rootfs_android.img
This will generate a rootfs_android.img file in the current directory.
3.5
3.5
3.5
3.5 Create
Create
Create
Create or
or
or
or Run
Run
Run
Run File
File
File
File System
System
System
System
With the mkyaffs2image-128M utility, you can make a yaffs2 image, that can be burn into Tiny210 board.
#cd /opt/FriendlyARM/Tiny210/android/Android-2.3.1
#mkyaffs2image-128M rootfs_dir rootfs_android.img
This will generate a rootfs_android.img file in the current directory.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
11
4
4
4
4 Android
Android
Android
Android Application
Application
Application
Application Programming
Programming
Programming
Programming Guide
Guide
Guide
Guide
This chapter will introduce how to build Android development environment,including download and install
Android SDK and Eclipse.
4.1
4.1
4.1
4.1 Install
Install
Install
Install the
the
the
the Application
Application
Application
Application Programming
Programming
Programming
Programming environment
environment
environment
environment
This page will introduce how to build the Android application in Windows 7 system.It is for Android 2.3 .I f the
system is not Android 2.3, you can get the code from CD or the follow website:
http://www.minidevs.com/resources/Download.html If you buy Tiny210 , the Android source code and cross
compile tools are supplied in DVD.
The Method is for Fedora14,not for Fedora9. All software package mentioned in this Article can be found in
Android folder of the DVD.
4.1.1
4.1.1
4.1.1
4.1.1 Step
Step
Step
Step 1:
1:
1:
1: download
download
download
download and
and
and
and install
install
install
install JDK(Java
JDK(Java
JDK(Java
JDK(Java SE
SE
SE
SE Development
Development
Development
Development Kit)
Kit)
Kit)
Kit)
Go to the website: http://www.oracle.com/technetwork/java/javase/downloads/index.html , then Download
it as follow picture:
1. Select the "JDK"
2. Select "Accept License Agreement",then select JDK download links according the platform. Download JDK
installation program jdk-6u25-windows-i586.exe for Windows7 32bit Version. After download
completed,double click the installation program, then install it according to the wizard tips.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
12
3. After the installation, follow the steps to add JDK command into Path environment variables :
1) Right click "My Computer"-> Property ,then select "Advanced system settings" option on the left navigation.
2) Click the lower right corner of the "Environment Variables" option.
3) In the "system variables",double click "Path environment variable", add the content:"C:\Program
Files\Java\jdk1.6.0_25\;" in the front of the variable value.Please note there is a semicolon in the content.
4) Click "OK" to complete the environment variable settings
4.1.2
4.1.2
4.1.2
4.1.2 Step
Step
Step
Step 2:
2:
2:
2: download
download
download
download and
and
and
and install
install
install
install Android
Android
Android
Android SDK
SDK
SDK
SDK
File name: installer_r11-windows.exe (position: CD:/Android/)
Go to the website: http://developer.android.com/sdk/ , download it as the below picture:

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
13
Double click the installation program installer_r11-windows.exe, then install it according to the wizard tips.It is
installed in the directory C:\Program Files\Android\android-sdk by default. If meet can not find the JDK
error,please go back once again then click "Next".
Since the SDK is installed in C drive by default, please run SDK Manager as an administrator, otherwise
download and install Packages will fail because it can't write data to the C drive.Start SDK as an administrator
according to the following steps:
1) Right-click the SDK Manager ,click "Properties"
2) Select "Compatibility"tab in the SDK Manager Properties dialog box,select "Run this program as
administrator"
3) When start SDK,it will open the confirmation dialog box,click "Yes" to run the program as an administrator.
4.1.3
4.1.3
4.1.3
4.1.3 Step
Step
Step
Step 3:
3:
3:
3: download
download
download
download and
and
and
and install
install
install
install Android2.3
Android2.3
Android2.3
Android2.3 Package
Package
Package
Package
Run SDK Manager as administrator, select "Available Package" in the Android SDK and
AVD
Manager's dialog,
click ">"in the front of Android Repository to expand the options:
Click "Install Selected " button in the above dialog,then select "Accept All" in the "Choose Package to install',
click "Install" to download and install the Android SDK, wait it finished, then reboot the ADB.
4.1.4
4.1.4
4.1.4
4.1.4 Step
Step
Step
Step 4:
4:
4:
4: install
install
install
install Eclipse
Eclipse
Eclipse
Eclipse development
development
development
development environment
environment
environment
environment
File name: eclipse-java-helios-SR1-win32.zip (Posion: CD:/Android/)
You
can download Eclipse from the website: http://www.eclipse.org/downloads/ , refer to the picture and select the
Windows categori es, then download Eclipse IDE for Java Developers

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
14
Uncompress the eclipse-java-helios-SR1-win32.zip file to the D:/ folder.Then you can run the eclipse.exe in the
folder D:/eclipse/eclipse.exe .
When start Eclipse,please set the workspace path to save all the source code you create. The main menu of Eclipse
is as below:
4.1.5
4.1.5
4.1.5
4.1.5 Step
Step
Step
Step 5:
5:
5:
5: install
install
install
install Android
Android
Android
Android Development
Development
Development
Development Tools
Tools
Tools
Tools
File name: ADT_9.0.0.zip
ADT_9.0.0.zip
ADT_9.0.0.zip
ADT_9.0.0.zip (Posion:
(Posion:
(Posion:
(Posion: CD:/Android/)
CD:/Android/)
CD:/Android/)
CD:/Android/)
You
can download it from the follow ing website: http://developer.android.com/sdk/eclipse-adt.html#installing

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
15
Then uncompress ADT_9.0.0.zip to the eclipse installed folder(d:/eclipse).
4.1.6
4.1.6
4.1.6
4.1.6 Step
Step
Step
Step 6:
6:
6:
6: Configure
Configure
Configure
Configure the
the
the
the Eclipse
Eclipse
Eclipse
Eclipse
Run the eclipse.exe in D:/eclipse, then c lick "Windows->Preferences" in main menu to open the Preferences
dialog, then select "Android" and set the configure file as follow s , set the SDK location and then click Apply
button. The default path is : C:\Program Files\Android\ android-sdk
Click "OK" to finish configuration.
4.1.7
4.1.7
4.1.7
4.1.7 Create
Create
Create
Create Android
Android
Android
Android
AVD
AVD
AVD
AVD
Click SDK Manager, then click "New..." in the "Android SDK and
AVD
Manager", it will open "Create new
Android Virtual Device(AVD)" dialog,input as follows:
Name
Name
Name
Name :Android-AVD
Target
Target
Target
Target ::Android 2.3.1 - API Level 9
SD
SD
SD
SD card
card
card
card size
size
size
size : 512
Click "Create AVD"

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
16
We
will find the device in the dialog.
Then we can run it by clicking the Start button and click launch to open it.
4.1.8
4.1.8
4.1.8
4.1.8 Step
Step
Step
Step 8:
8:
8:
8: Develop
Develop
Develop
Develop the
the
the
the first
first
first
first Android
Android
Android
Android application
application
application
application program
program
program
program
4.1.9
4.1.9
4.1.9
4.1.9 Creat
Creat
Creat
Creat Hello
Hello
Hello
Hello Tiny210
Tiny210
Tiny210
Tiny210 project
project
project
project
In the eclipse menu, click "File->New->Project", then open the "New project dialog".

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
17
Then select :
"Android->Android Project", and click "Next", it will open "New Android Project"
I nput as follows :
1) Project Name: Hello Tiny210
2) Build Target: Android 2.3.1
3) Appication name: Hello Tiny210
4) Package name: com. Tiny210
5) Create Activity: MainActivity
Then click "Finish" button, it will go to the eclipe main interface.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
18
Click "X" button after Welcome to close the welcome interface.
Y
ou will see project interface.Then click "src ->
com. Tiny210 -> MainActivity.java" to get the source code.
4.1.10
4.1.10
4.1.10
4.1.10 Run
Run
Run
Run HelloTiny210
HelloTiny210
HelloTiny210
HelloTiny210 Application
Application
Application
Application Program
Program
Program
Program in
in
in
in
AVD
AVD
AVD
AVD
It need the platform-tools, install it as " 4.1.11.2 Test ADB with Tiny210 "
for the project, click "Run->Run As->Android Application". to run it on the AVD. After the Android system
booted, it will run HelloTiny210 Application Program automatically.
4.1.11
4.1.11
4.1.11
4.1.11 Step
Step
Step
Step 8:
8:
8:
8: Create
Create
Create
Create the
the
the
the Debugging
Debugging
Debugging
Debugging environment
environment
environment
environment for
for
for
for Tiny210
Tiny210
Tiny210
Tiny210
4.1.11.1
4.1.11.1
4.1.11.1
4.1.11.1 Install
Install
Install
Install the
the
the
the USB
USB
USB
USB ADB
ADB
ADB
ADB driver
driver
driver
driver
The USB Driver for Windows is available for download as an optional SDK component.
You
need the driver only
if you are developing on Windows and want to connect an Android-powered device (ADP, Tiny210, Nexus One,
or Nexus S) to your development environment over USB.
To
download the driver, use the Android SDK and
AVD
Manager tool that is included with the Android SDK:
1Launch the SDK and
AVD
Manager by double-clicking SDK
SDK
SDK
SDK Manager.exe
Manager.exe
Manager.exe
Manager.exe , at the root of your SDK
directory.

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
19
2Expand the Third party Add-ons and Google Inc. add-ons.
3Check Google
Google
Google
Google Usb
Usb
Usb
Usb Driver
Driver
Driver
Driver package
package
package
package and click Install selected.
4Proceed to install the package. When done, the driver files are downloaded into the C:\Program
Files\Android\android-sdk\extras\google\usb_drive r directory.
Once you've downloaded your USB driver, follow the instructions below to install or upgrade the driver, based on
your version of Windows and whether you're installing for the first time or upgrading an existing driver.
To
install the Android USB driver on Windows 7 for the first time:
1Connect Tiny210 to your computer's USB port by miniUSB cable.
2Right-click on
Computer
from your desktop or Windows Explorer, and select Manage
Manage
Manage
Manage .
3Select Devices
Devices
Devices
Devices in the left pane.
4Locate and expand
Other device
in the right pane.
5Right-click the device name (such as
S5P OTG-USB
) and select Update
Update
Update
Update Driver
Driver
Driver
Driver Software
Software
Software
Software . This will
launch the Hardware Update Wizard.
6Select Browse
Browse
Browse
Browse my
my
my
my computer
computer
computer
computer for
for
for
for driver
driver
driver
driver software
software
software
software and click Next
Next
Next
Next .
7Click Browse
Browse
Browse
Browse and locate the USB driver folder. (The Google USB Driver is located in " C:\Program
C:\Program
C:\Program
C:\Program
Files\Android\android-sdk\extras\google\usb_driver
Files\Android\android-sdk\extras\google\usb_driver
Files\Android\android-sdk\extras\google\usb_driver
Files\Android\android-sdk\extras\google\usb_driver ")
8Click Next
Next
Next
Next to install the driver.
4.1.11.2
4.1.11.2
4.1.11.2
4.1.11.2 Add
Add
Add
Add adb
adb
adb
adb command
command
command
command into
into
into
into Path
Path
Path
Path environment
environment
environment
environment variables
variables
variables
variables
1) Right-click My Computer->Properties, then select "Advanced system setting" option.
2) Click the "Environment Variables" option on the lower right corner.
3) Double click Path environment variable, add the content in the front of the variable value: " C:\Program
Files\Android\android-sdk-windows\platform-tools"

V1.0
CoreWind Technology Co.,Limited
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210
Tiny210-Mini210 System
System
System
System System
System
System
System Development
Development
Development
Development manual
manual
manual
manual
www.armdevs.com
www.armdevs.com
www.armdevs.com
www.armdevs.com
20
4) Click "OK" to finished.
Test
Test
Test
Test the
the
the
the adc
adc
adc
adc command
command
command
command
Click the Start menu,input "cmd" in the search box,press Enter in the cmd.exe to start DOS window. Input "adb"
then press Enter,it will display the following information if the Environment Variables set ok.
4.1.11.4
4.1.11.4
4.1.11.4
4.1.11.4
Test
Test
Test
Test
ADB
ADB
ADB
ADB function
function
function
function with
with
with
with Tiny210
Tiny210
Tiny210
Tiny210
Check
Check
Check
Check the
the
the
the device
device
device
device connection
connection
connection
connection status
status
status
status
Start Tiny210 to enter the Android system, connect mini USB cable from the board to PC,input the command in
the DOS window to verify the development board is connected:
# adb devices
It will display the following information if the board is connected:
Enter
Enter
Enter
Enter ADB
ADB
ADB
ADB Shell
Shell
Shell
Shell
Input the command to enter the Tiny210 terminal:
# adb shell
Input exit in the Tiny210 terminal to return to DOS p rompt .
Install
Install
Install
Install software
software
software
software with
with
with
with ADB
ADB
ADB
ADB
Install D:\sinaweibo_2.0.4.apk for example, input adb
adb
adb
adb install
install
install
install D:\sinaweibo_
D:\sinaweibo_
D:\sinaweibo_
D:\sinaweibo_ 2.0.4.apk
2.0.4.apk
2.0.4.apk
2.0.4.apk in the DOS
window.
This manual suits for next models
1
Table of contents