Professional Documents
Culture Documents
Step-by-step guide to build create Windows Embedded CE 6.0 OS Design, build CE 6.0 OS image for t e e!o"-#$00 using %latform-!uilder and t e &CO%'(orte")6'60! !S%.
Introduction
*earning by e"ample is an effecti+e met od to learn and become familiar wit new tec nologies. , is -umpstart guide, using ands-on-lab approac wit step-by-step instruction, is created to s ow t e process of creating, customi.ing, building and downloading a Windows Embedded CE 6.0 image on to e!o"-#$00 using t e &CO%'(orte")6'60! !oard-Support-%ac/age. , is guide also s ows ow to create a 0ello-world (isual Studio #001 C2 managed code application, establis a connection between e!o"-#$00 and (isual Studio #001 wor/station using Corecon and download t e application to e!o"-#$00. , is -umpstart guide elps de+eloper new to Windows CE to become familiar wit Windows CE3s tools and de+elopment en+ironment 4uic/ly. , e de+elopment wor/station is a Windows 5% %rofessional mac ine wit all of t e latest update and ser+ice pac/s. (isual Studio #001, Windows Embedded CE 6.0 %latform !uilder and t e &CO%'(orte")6'60! !oard-Support-%ac/age are installed on to t e de+elopment wor/station. 6n e!o"-#$00 is used as t e Windows CE target de+ice. Detailed information about e!o"-#$00 is a+ailable in appendi" D. !ot t e de+elopment station and e!o"-#$00 are connected to t e same local *67 segment wit D0C% ser+ice. , is guide pro+ides a 4uic/ and easy o+er+iew of ow to create, configure and build Windows Embedded CE 6.0 OS image for e!o"-#$00. 6dditional sub-ects rele+ant to (orte")6 ardware and application de+elopment using (isual Studio #001 are also co+ered. 8eferences and ot er tec nical information for Windows CE are listed in 6ppendi" C. Note9 To go through all of the exercises in this guide, you need to have Visual Studio 2005, Visual Studio 2005 SP1, Windows E !edded "E #$0 Platfor %uilder and &"'P(Vortex)#(#0% %oard*Su++ort*Pac,age installed on your develo+ ent station$ -efer to a++endix . / % for device +re+aration and setu+ infor ation$
Table of Contents
&ntroduction......................................................................................................................................# e!o"-#$00 ?umpStart @it............................................................................................................$ e!o"-#$00 ?umpStart /it includes t e following....................................................................$ %art : C W at3s 7ew....................................................................................................................6 Windows Embedded CE 6.0....................................................................................................6 Windows Embedded CE 6.0 De+elopment ,ools...................................................................6 %art # C Windows Embedded CE 6.0 &nstallation........................................................................) %latform !uilder &nstallation...................................................................................................) !oard-Support-%ac/age &nstallation........................................................................................B (S#001 CoreCon Component &nstallation..............................................................................B %art $ C Configure an OS Design...............................................................................................:0 (isual Studio #001 &DE.........................................................................................................:0 Windows Embedded CE 6.0 OS Design Wi.ard...................................................................:: OS Design Wi.ard C !oard Support %ac/ages <!S%s=..........................................................:# OS Design Wi.ard C Design ,emplates................................................................................:# OS Design Wi.ard C 6pplications > ;edia.........................................................................:$ OS Design Wi.ard C 7etwor/ing > Communications..........................................................:A OS Design Wi.ard C Complete..............................................................................................:1 Catalog &tem 7otification......................................................................................................:1 %art A C Customi.e and build t e OS Design............................................................................:D En ancing t e OS Design C 6dd Eunctions > Eeatures........................................................:) Ot er Windows Embedded CE 6.0 Components...................................................................#0 Configuration ;anager C Debug > 8elease !uild................................................................## Configure OS Design %ro-ect %roperties C !uild Options.....................................................#$ Configure OS Design %ro-ect %roperty C En+ironment (ariables........................................#A Eurt er Customi.e t e OS Design C ;odifyF6dd 8egistry Entry.........................................#A !uilding Windows Embedded CE 6.0 OS &mage..................................................................#6 !uild Complete - Windows Embedded CE 6.0 OS &mage Generated...................................#D %art 1 C Download OS &mage to e!o"-#$00............................................................................#) Configure ,arget De+ice Connecti+ity Options....................................................................#)
6dd 7ew ,arget De+ice .......................................................................................................#B Establis Connection wit e!o"-#$00 .................................................................................#B Downloading &mage to e!o"-#$00........................................................................................$: Deploy t e CE 6.0 OS &mage to t e e!o"-#$00....................................................................$$ %art 6 C Windows Embedded CE 6.0 SD@................................................................................$A Create and Configure Windows Embedded CE 6.0 SD@.....................................................$A !uild Windows Embedded CE 6.0 SD@...............................................................................$D %art D C C2 6pplication wit (isual Studio #001......................................................................$) Step :9 Create a 7ew (isual Studio #001 C2 %ro-ect...........................................................$) Step #9 %reparing e!o"-#$00 to Connect to (S#001 ..........................................................$B Step $9 Connecting e!o"-#$00 to (S#001 Station using Corecon .....................................AA Step A9 Download C2 6pplication to e!o"-#$00.................................................................A1 Debug &nformation.....................................................................................................................A6 Summary....................................................................................................................................AB CongratulationsH - Iou3+e completed all t e steps....................................................................10 6ppendi" 6 C De+elopment En+ironment Setup - wit D0C% ser+ice....................................1: 6ppendi" ! C De+elopment En+ironment Setup C Wit out D0C%..........................................1# 6ppendi" C C Windows CE ,ec nical &nformation 8eference.................................................1$ 6ppendi" D C e!o"-#$00 ,ec nical &nformation.....................................................................1A ?$9 JS! <B0o=C A-pin JS! ,ype : Connector <(ertical ,ype=.............................1D ;emory ;apping..................................................................................................................1B 6ddress......................................................................................1B &FO ;apping...........................................................................................................................1B &FO 6ddress................................................................................1B &8K ;apping.........................................................................................................................60 6ppendi" E C e!o"-#$00 !oot Options....................................................................................6:
Part 1
!hat"s #ew
Windows Embedded CE 6.0 deli+ers reliable, secure performance in a small footprint along wit t e latest multimedia, networ/ing and communications tec nologies. Windows Embedded CE 6.0 pro+ides de+elopers wit broad de+ice support and en anced features and tec nologies, including +oice o+er &% <(o&%= p one and gateway configurations, platform de+elopment tool en ancements, greater application compatibility wit ot er Windows CE-based de+ices, &nternet E"plorer 6.0, Windows ;edia Codecs, ;icrosoft .7E, Compact Eramewor/, and a number of ot er newly supported protocols and ser+ices. (isit ttp9FFmsdn.microsoft.comFembeddedFwindowsceFdefault.asp" for more information about Windows Embedded CE 6.0.
Part 2
, is latest +ersion Windows Embedded CE 6.0 <MCE 6.0N= %latform !uilder <M%!N= is a plug-in for (isual Studio #001 <M(S#001N= and able to ta/e ad+antage of (S#0013s feature ric &ntegrated-De+elopment-En+ironment <M&DEN= > tools. !oard-Support-%ac/age <M!S%N= consists of all necessary CE 6.0 de+ice dri+ers and ardware abstraction library for t e ardware is needed by %! to create OS Design and build CE 6.0 image for t e ardware. ICOP_Vortex86_60B !S% is pro+ided as part of t is -umpstart /it to create OS Design and build CE 6.0 image for e!o"-#$00. Corecon is t e component needed to establis lin/ between e!o"-#$00 and (S#001 de+elopment station for t e purpose of de+eloping CE 6.0 application and download t e application onto e!o"-#$00 for testing and debug. (S#001, CE 6.0 and !S% must be installed in t e following se4uences. :. (isual Studio #001 wit S%: #. Windows Embedded CE 6.0 %latform !uilder $. !S%s
Eig. :
Board-Support-Package ,nstallation
e!o"-#$00 !S% for CE 6.0 is pro+ided wit t is -umpstart /it in t e form of ;S& installation file. ,o install t is !S%, simply double clic/ on t e ICOP_Vortex86_60B_BSP.MSI file located in t e O!S% directory on t e -umpstart CD pro+ided wit t is /it. , e !S% installation will create folder, sub-folders and copy files to t e MC9OW&7CE600O%latformON directory, w ere MC9OW&7CE600O%latformN is t e installation directory for all !S%. 7ote9 ")6 C%J support for CE 6.0 %! is needed in order to use &CO%'(orte")6'60! !S% to create OS Design and build CE 6.0 image for e!o"-#$00.
Part 3
&onfigure an /S )esign
, is section will guide you t ru t e process of creating and configuring an OS design using t e 7ew %latform Wi.ard wit in %latform !uilder, to create an initial OS design wor/space w ic you will t en modify by adding Windows CE components, applications and ma/ing c anges to t e registry.
Eig. #
(isual Studio #001 pro+ides a common &ntegrated De+elopment En+ironment <M&DEN= for (isual !asic, (isual CLL, (isual C2, (isual ?2 and %latform !uilder. Depending on t e de+elopment preference selected during t e installation of (S#001, your (S#001 screen may loo/ different from t e abo+e. (S#001 &DE pro+ides support to create different type of pro-ects, suc as Windows 6pplication, Console 6pplication, Class *ibrary, smart de+ice application, Windows Ser+ices, Web Control, etcP W en starting a new pro-ect wit (S#001, t ere are options for different type of pro-ects. %! for CE 6.0 is one of t e a+ailable pro-ect types. Erom (S#001 &DE, select MFile | Ne | Pro!e"t #N t e following pro-ect screen will appear.
Eig. $
On t e left side of t e 7ew %ro-ect screen, clic/ to ig -lig t Pl$t%or& B'il(er %or C) 6.0. On t e rig t side of t e 7ew %ro-ect screen, clic/ to ig -lig t OS *e+i,n. Enter eBox2-00 as t e name of t e pro-ect. ;a/e sure t e Cre$te (ire"tor. %or +ol'tion c ec/ bo" is c ec/ed. Clic/ on t e O/ button to continue.
Eig. A
/S )esign !i0ard
&n t e !S% selection step, t e OS Design Wi.ard pro+ides t e option to select one or more !S% for t e new pro-ect, from a list of a+ailable !S%. 6ll of t e installed !S%s, including !S%s from t ird party companies are listed.
Eig. 1
/S )esign !i0ard
)esign +emplates
&n t e design templates selection step, t e OS Design Wi.ard pro+ides t e options to select an OS Design ,emplate.
Eig. 6
Clic/ to ig -lig t and select In('+tri$l *e4i"e Clic/ on t e Next button to continue
Eig. D
Clic/ to ig -lig t and select Internet A55li$n"e Clic/ on t e Next button to continue
/S )esign !i0ard
3pplications 4 5edia
&n t e applications > media selection step, t e OS Design Wi.ard pro+ides t e options to select .7E, Compact Eramewor/ to support managed code applications, &nternet E"plorer, Windows ;edia components, etc...
Eig. )
, e following components are selected for t is e"ercise. .7E, Compact Eramewor/ #.0 &nternet E"plorer 6.0 Windows ;edia 6udioF;%$ Windows ;edia %layer 6pplication Windows ;edia %layer OC5 Windows ;edia (ideoF;%EG-A (ideo Clic/ on t e Next button to continue
/S )esign !i0ard
#etworking 4 &ommunications
&n t e networ/ing > communications step, t e OS Design Wi.ard pro+ides t e options to select communication, networ/ing and security components.
Eig. B
We will use t e default settings for networ/ing and communications. Clic/ on t e Next button to continue.
/S )esign !i0ard
&omplete
6t t is point, t e OS Design Wi.ard completed its tas/ and collected t e necessary OS Design parameters to configure an OS Design based on t e selected template and support components.
Eig. :0 -
Eig. :: -
Clic/ on t e A"7no le(,e button to complete t e OS Design Wi.ard steps. %latform !uilder will generate t e necessary OS Design pro-ect folders and pull in all t e components re4uired by t e &nternet 6ppliance OS Design template along wit t e components selected during t e OS Design Wi.ard steps.
Part 6
6t t is point, wit t e elp of t e OS Design Wi.ard, t e eBox2-00 pro-ect is created using t e Internet A55li$n"e design template along wit ICOP_Vortex86_60B !S%. , e following pro-ect folders a+e been created for t e eBox2-00 pro-ect, under t e main CE 6.0 %latform !uilder3s OS Designs directory <..80INC)6008OS*e+i,n+8=. 6ll OS Design pro-ects are created under t is directory by default. C9OW&7CE600OOSDesignsOe!o"#$00O Eolder for t e e!o"#$00 Solution (S#001 supports different pro-ect types. 6 solution pro+ides a centrali.ed wor/ en+ironment to /eep different pro-ect types supporting t e same solution in one location. Eor e"ample, t e e!o"#$00 solution may include an Me!o"#$00 OS Design pro-ectN, M(isual !asic managed code application pro-ectN, M(isual C2 managed code application pro-ectN and M(isual CLL nati+e code application pro-ectN. C9OW&7CE600OOSDesignsOe!o"#$00Oe!o"#$00O , is is t e folder for t e e!o"#$00 CE 6.0 %latform !uilder pro-ect, an OS Design.
Eig. :# -
, e Catalog &tem (iew window lists all of t e a+ailable Windows CE components, including applications, library, dri+ers, utilities > $rd party components t at can be added to t e OS Design. 6n e"isting set of components are pulled into t e e!o"#$00 OS Design by t e Wi.ard based on t e !S% and design template selected during t e OS Design Wi.ard p ase. ,o en ance t e functions and features of t e OS image, additional components <dri+ers, utilities, applications, etc.= selected from t e component catalog can be added to t e OS Design. Catalog-&tems-(iew window is w ere CE 6.0 components can be added or remo+ed from t e OS Design. &f t e Catalog-&tems-(iew window is not +isible on your (S#001 &DE, from (S#001 menu, select Vie | Ot6er 0in(o + | C$t$lo, Ite&+ (iew to bring it up. On t e Catalog-&tems-(iew window, e"pand t e 96ir( P$rt., BSP and ICOP_Vortex86_60B3 x86 folders and t e A'(io and *i+5l$. sub-folders under *e4i"e *ri4er+, c ec/ to confirm t e following dri+ers are selected as part of t e OS Design. *e4i"e *ri4er+ | Vortex86_A'(io *e4i"e *ri4er+ | Vortex86_*i+5l$.
Eig. :$ -
Component Catalog
E"pand Core OS | C)BAS) folder, find and include t e following components to t e OS Design. A55li"$tion+:)n( ;+er | CAB File In+t$ller<;nin+t$ller , is component pro+ides application installation > remo+al. &t3s needed for application de+elopment using (isual Studio .7E, #00$ and (isual Studio #001. Core OS Ser4i"e+ | ;SB =o+t S'55ort | ;SB Stor$,e Cl$++ *ri4er
, is component pro+ides support for ot pluggable JS! storage de+ice supporting most JS! flas dri+e and e"ternal JS! mass storage de+ice.
.7E, Compact Eramewor/ #.0 components are needed to support managed code application. During t e OS Design wi.ard steps, .7E, Compact Eramewor/ #.0 components were selected to include in t e OS Design. &f not selected during t e OS Design wi.ard p ase, ma/e sure t e following two components are selected, under t e Core OS | C)BAS) | A55li"$tion+ $n( Ser4i"e+ *e4elo5&ent folder. .N)9 Co&5$"t Fr$&e or7 2.0 OS *e5en(en"ie+ %or .N)9 Co&5$"t Fr$&e or7 2.0
E"pand 96ir( P$rt. catalog folder and select t e following component. ConM$n_x86 File+ Co&5onent , is component adds CoreCon files to t e final image, needed to establis connection between CE 6.0 de+ice and (S#001 de+elopment station.
Eig. :A -
Component Catalog
E"pand Core OS | C)BAS) | File S.+te&+ $n( *$t$ Store folder, select and include t e following components to t e OS Design. File S.+te& > Intern$l | ROM:onl. File S.+te& Re,i+tr. Stor$,e | =i4e:1$+e( Re,i+tr. !ot of t e abo+e two components are needed to support 0i+e-based registry implementation. 0i+e-based registry is used to store and sa+e registry entries c anged between power reset.
Eollowing is a list of e!o"-#$00 &FO perip erals and t e associated CE 6.0 de+ice dri+ers and support components.
eBeBox-2300 Peripherals Video (SiS-550) !udio (SiS-"0#$) %thernet (&eal'e(-8#00) Serial orts Serial orts 1SB orts (1SB #2# 3ost) 0o-pact6lash78 5D% 9ini 05 (internal slot) 78 Windows Embedded CE 6.0 ri!ers " #upport Components
Vortex86_Display (Driver included with BS ) Vortex86_!udio (Driver included with BS ) &')8#*$ (Driver availa+le ,ro- B.s co-ponent catalo/) 0o-#6550 (Driver availa+le ,ro- B.s co-ponent catalo/) Serial ort Support (Support co-ponents ,ro- B.s co-ponent catalo/) 4305 (Driver availa+le ,ro- B.s co-ponent catalo/) !'! 5 (Driver availa+le ,ro- B.s co-ponent catalo/) !'! 5 (Driver availa+le ,ro- B.s co-ponent catalo/) 05 Bus
'he 0o-pact6lash (:06;) slot on eBox-<*00 is lin( to the 5D% inter,ace= and does >4' support hotswap2 ?hen a 06 card is plu//ed into the slot prior to power on= the syste- will detect and reco/ni@e the 06 card as slave 5D% stora/e2 ?hen +ootin/ to 0% 620= the 06 card will shows up as :3ard Dis( <;
&onfiguration 5anager
Jsing t e configuration manager, t e OS Design can be configured to generate a debug or release image. 6 debug image will pro+ide additional debug messages w en t e compiled OS image loads and e"ecutes applications and modules. , e si.e of t e debug image is generally about 10Q larger in si.e comparing to t e release image built from t e same OS design. Eor t e purpose of t is guide, let3s select t e release build.
Eig. :1 -
Configuration ;anager
Erom (S#001 &DE, select B'il( | Con%i,'r$tion M$n$,er# to bring up t e Con%i,'r$tion M$n$,er screen. Erom t e 6cti+e solution configuration selection options, select ICOP_Vortex86_60B x86 Rele$+e and clic/ t e Close button to set t e OS Design to generate a 8elease image. 7ote9 6 Debug image pro+ides more detailed system status and acti+ities information during startup of t e OS and w en application modules are e"ecuting. ,o generate a debug image, repeat t is step and select ICOP_Vortex86_60B x86 *e1', option instead, and continue to finis building a debug image.
Build /ptions
Wit different !uild Options, t e OS Design can be furt er customi.ed to include additional functions to t e final image, pro+ide additional debug resources, etcP Erom (S#001 &DE, select Pro!e"t | eBox2-00 Pro5ertie+# to bring up t e OS Design %roperty screen.
Eig. :A -
Clic/ to e"pand Con%i,'r$tion Pro5ertie+ tree on t e left side of t e screen. Clic/ to ig -lig t B'il( O5tion+, a list of !uild Options wit c ec/ bo"es will be s own on t e rig t side of t e screen. Select Enable eboot space in memory <&;GE!OO,R:= , is option adds support for Et ernet debugging by bundling t e Et ernet boot loader in t e image. Select Enable s ip build <W&7CES0&%R:= , is option will enable a retail build and suppress debug messages. Disable @&,* C ;a/e sure t e Enable @&,* <no &;G7O@&,*R:= c ec/ bo" is NO9 selected. 7ote9 W en deploying a release image onto e!o"-#$003s local storage wit @&,* enabled, t e system may not boot or ta/es a long time to complete t e boot process. , is is caused by t e system loo/ing for an una+ailable @&,* connection.
$n*ironment -aria%les
En+ironment +ariables are used to furt er customi.e t e OS Design by includeFe"clude certain components from t e image, set de+ice memory range > etcP. Continuing wit t e OS Design %roperty screen from t e pre+ious stepP
Eig. :1 -
Clic/ to ig -lig t )n4iron&ent on t e left side of screen. Clic/ on t e Ne # button, enter IMARAMB28 for (ariable name, and enter B for (ariable +alue and clic/ on t e O7 button. !y setting t e &;G86;:#) +ariable, t e resulting image is generated for a system wit :#);! 86;. 7ote9 , e &;G86;:#) <or &;G86;"""= +ariable is ardware specific and is different between different ardware +endors <0ardware may be built wit different memory capacity.=. 7ot all !S% implement t e &;G""" +ariable.
7ote9 , e abo+e en+ironment +ariable settings are not common to all ardware. W ile t ere are common en+ironment +ariables applicable to all ardware, customi.ed en+ironment +ariables can be created to set ardware memory boundaries, includeFe"clude files wit t e final image > etcP
, e OS Design and be a+ior for t e final OS image can be furt er customi.ed by ma/e c anges to t e registry. ,o de+elop and test CE 6.0 application using (S#001, CoreCon is used to establis connection between CE 6.0 de+ice and (S#001 de+elopment station. 0owe+er, &%address is one of t e /ey dependencies to establis t e connection. W en using dynamic &%6ddress, t e system may not start wit t e same &%-address e+ery time. 6s t e result, de+eloper
as to configure &%-address for t e CoreCon connection fre4uently. 6 static &%-address for t e CE 6.0 de+ice can elp minimi.e t is problem. ,o assign and build an OS image wit a static &%-address, we can add t e following registry entries to t e OS Design.
[HKEY_LOCAL_MACHINE\Comm\PCI\RTL81391\Parms\TcpIp] "E a!"#$HCP"%&'or&() "$#*a+",-a,#'a."%m+",/_s0("19121382121" "4s#5#ro6roa&cas,"%&'or&() "IpA&&r#ss"%m+",/_s0("1912138212131" "7+! #,mas8"%m+",/_s0("199219921992)"
7ote9 , is is -ust an e"ample of assigning and builds CE OS wit static &%-address. &mproper &%-address can cause conflict to t e networ/ t e de+ice is connecting to. , e abo+e entries s ould be added to t e OS Design3s %8O?EC,.8EG registry file. ,o enter t e abo+e entries to %8O?EC,.8EG, from (S#006 &DE, clic/ on t e MSolution E"plorerN tab, e"pand t e M%arameter EilesN folder and select Mpro-ect.regN. Iou can use t e pro+ided registry editor to add and ma/e c anges to t e registry, or select t e source mode to modify registry entries in ,e"t mode using an 6SC&& te"t editor.
Eig. :6 -
Eig. :6 -
Depending on t e speed of t e de+elopment system, t e build process may ta/e appro"imately :1S#0 minutes. During t e build process, t e output tab on (S#001 &DE displays compilation acti+ities.
Eig. :D -
W en t e build process is completed, t e resulting files are generated in t e following build release directories. Eor t e Debug image9 C9OW&7CE600OOSDesignsOe!o"#$00Oe!o"#$00O8elDirO&CO%'(orte")6'60!'")6'Debug Eor t e 8elease image9 C9OW&7CE600OOSDesignsOe!o"#$00Oe!o"#$00O8elDirO&CO%'(orte")6'60!'")6'8elease Searc ing t e abo+e directories, wit a successful build, t ere s ould be a N/.BIN file. , is is t e Windows Embedded CE 6.0 OS image. , e ne"t section will co+er connecting t e e!o"-#$00 to t e de+elopment station to download and e"ecute t e n/.bin image built in t is section for t e e!o"-#$00.
Part .
6 connection can be establis by modifying t e default C) *e4i"e settings. ,o pro+ide more information about t e connecti+ity option, let3s create a de+ice connecti+ity profile for t is pro-ect. 7ote9 ;ultiple de+ice connecti+ity profiles can be created to elp de+eloper wor/ing on multiple pro-ects, or pro-ect in+ol+ing multiple target ardware to be more efficient.
Eig. :B -
Eig. #0 -
,urn on power and boot up e!o"-#$00 wit t e pro+ided Windows CE SD@ boot image. &t will boot to DOS and pro+ide t e following menu selections. :. #. $. A. 1. 6. D. ). B. Option :9 Option # S 19 !oot CEF%C <local n/.bin wit F*9:0#A"D6)"$#= !oot CEF%C <et er +ia eboot.bin wit F*9:0#A"D6)"$#= !oot CEF%C <et er +ia eboot.bin wit F*9)00"600"$#= !oot CEF%C <et er +ia eboot.bin wit F*96A0"A)0"$#= !oot CEF%C <et er +ia eboot.bin wit out display settings= !oot CEF%C <Static &%9 :B#.:6).#.#$#, wit F*9:0#A"D6)"$#= !oot CEF%C <Static &%9 :B#.:6).#.#$#, wit F*96A0"A)0"$#= !oot CEF%C <Static &%9 :B#.:6).#.#$#, wit out display settings= Clean !oot <no commands= , e e!o"-#$00 will load 7@.bin <Windows CE image= from local storage wit :0#A"D6) display resolution. , e e!o"-#$00 will load eboot.bin w ic in turn will send re4uest to an a+ailable D0C% ser+er to assign an &% address. , en, it sends bootme re4uest to t e %latform-!uilder de+elopment station. , e e!o"-#$00 will load eboot.bin wit a static &% address <:B#.:6).#.#$#=, and sends a bootme re4uest to t e %latform-!uilder de+elopment station. !oots up to a clean DOS en+ironment.
Option 6 S )9
Option B9
&f t e de+elopment station and e!o"-#$00 are connected to a *67 wit D0C% ser+ice, select option #, $, A or 1. &f e!o"-#$00 is connected directly to t e de+elopment station using a crosso+er Et ernet cable, select option 6, D or ). 6fter e!o"-#$00 boots-up and sends a boot-me re4uest, t e )t6ernet *o nlo$( Settin,+ dialog screen s ould loo/ similar to t e following, wit a de+ice &D listed in t e A"ti4e t$r,et (e4i"e+ list bo".
Eig. #: -
Clic/ and ig lig t t e de+ice &D listed in t e A"ti4e *e4i"e+ window Clic/ O7 to continue 7ote9 &n t e en+ironment w ere t ere are multiple e!o"-#$00s connected to t e same networ/ segment, wit multiple e!o"-#$00 sending bootme re4uest, t ere may be multiple (e4i"e I*+ listed in t e A"ti4e *e4i"e+ windows. ,o identify t e e!o"#$00 you are wor/ing wit , ma/e sure it3s t e only one booting and sending a bootme re4uest. On t e ,arget De+ice Connecti+ity Options screen, clic/ on A55l. and t en Clo+e.
Eig. ## -
,urn on power and boot up eBox:2-00 Select an option from t e menu according to your setup and display preference
6fter e!o"-#$00 completes t e boot-up process and send boot-me re4uest, you will see acti+ities on t e *o nlo$( R'nti&e I&$,e screen s owing t e image being download to t e de+ice.
Eig. #$ -
6fter t e image download process is completed, e!o"-#$00 will load t e Windows CE image it -ust recei+ed. 6gain, be patientP &t may ta/e a few moments for t e image to come up. W en t e Windows CE screen is displayed on e!o"-#$00, it3s an indication t e booting process is completed.
Eig. #A -
Part '
6not er one of CE 6.03s ad+antages is t e ease of application de+elopment using (isual Studio #001. &n order to create CE 6.0 applications using (isual Studio #001 and establis a connection to download applications to t e e!o"-#$00 for testing and debug, (S#001 needs a SD@ for e!o"-#$00. &n t e pre+ious steps, we created and configured an OS Design to build a CE 6.0 OS image for e!o"-#$00. a SD@ can be generated from t e same pro-ect.. &n t is section, we will go t ru t e step of creating, configuring and building a SD@ from t e OS Design.
Eig. #1 -
Enter e!o"#$00'WinCE600'SD@ as t e name for t e SD@ Eill in t e company name and company website information On t e left side of S*/ Pro5ert. P$,e, clic/ on In+t$ll and enter MSI %ol(er 5$t6 and MSI %ile n$&e on t e rig t side. Jse t e default pat , and enter eBox2-00_0inC)600_S*/.&+i as t e file name.
Eig. #6 -
On t e left side of S*/ Pro5ert. P$,e, clic/ on De+elopment *anguages and select bot N$ti4e $n( M$n$,e( (e4elo5&ent +'55ort.
Eig. #D -
7ote9 ,o ma/e c anges to t e SD@ before building, from (S#001 &DE, select t e Sol'tion tab, e"pand t e S*/+ folder, rig t clic/ on eBox2-00_0inC)600_S*/ and select Pro5ertie+ to bring up t e S*/ Pro5ert. P$,e+.
Eig. #) -
Part =
(isual Studio #001 can be used to de+elop nati+e and managed code applications for CE 6.0. , is section will go t ru t e process to s ow ow to connect t e e!o"-#$00 to a de+elopment station wit (isual Studio #001 w ile de+eloping a managed code application using (isual !asic or (isual C2. Eor t e e"ercise in t is section, we will use (isual C2. , e steps s ould be similar for de+eloping wit (isual !asic wit in (isual Studio #001. 7ote9 %ro-ect files for t is e"ercise are pro+ided in t e ..O(C2'Sample directory on t e CD.
Eig. #B -
On t e left and side, e"pand M(isual C2N and MSmart De+iceN folders to select MWindows CE 1.0. On t e rig t side of t e screen, select MDe+ice 6pplicationN, enter Me!o"#$00'DemoN as t e pro-ect name and clic/ MO/N. 6fter t e pro-ect is created, let3s add some simple code to t e application. 8esi.e t e Eorm to a smaller si.e <$#0"#A0= to ma/e it easy to see t e application w en it runs on CE 6.0. C ange t e Eorm caption to Me!o"#$00 (isual C2 DemoN 6dd a te"t-bo" to t e form, c ange t e name to te"t0elloWorld, and clear t e content in t e te"t-bo" 6dd a button to t e form, c ange t e name to button0elloWorld, and c ange t e te"t on t e button3s caption to M0ello WorldN
6dd t e following code to t e Mbutton0elloWorld'Clic/N e+ent. te"t0elloWorld.,e"t R U0ello World.UV (isual Studio #001 &DE screen may loo/ li/e t e following screen s ot.
Eig. $0 -
, ese files are stored at t e following directory on t e (isual Studio #001 de+elopment wor/station.
M..O%rogram EilesOCommon EilesO;icrosoft S aredOCoreConO:.0O,argetOwceA00O..N Corecon components supporting different C%J arc itectures are pro+ided. , ere are folders, wit names corresponding to t e C%J, containing Corecon components for eac C%J family. e!o"-#$00 is designed using an ")6 C%J arc itecture. CoreCon components in t e M..O")6N sub folder are used. &n t e earlier part of t is guide, Con;an'")6 Eiles Component was added to t e OS Design. , e resulting CE 6.0 image built from t e OS Design already as t e CoreCon files. ,o establis a connection between t e e!o"-#$00 and t e (isual Studio #001 de+elopment station, carry out t e following steps. , e e!o"-#$00 &% 6ddress is needed w en setting up t e de+ice properties wit in (S#001 to establis connection between e!o"-#$00 and (S#001 de+elopment station. Erom e!o"-#$00 des/top, wit CE 6.0 running, clic/ on St$rt | R'n from CE 6.0 des/top wit t e "&( command to open a console command window.
Eig. $: -
Erom wit in t e console command window, type + I5Con%i, to +iew t e e!o"3s assigned &%-address.
Eig. $# -
7ow t at we a+e e!o"-#$003s &% address, let3s mo+e to (S#001 &DE to configure de+ice settings. &n order for t is to wor/, bot t e (S#001 de+elopment station and e!o"-#$00 must be connected to t e same *67 segment and ac4uire t eir &% address from t e same D0C% ser+er. Erom (S#001 &DE, set t e target de+ice to MeBox2-00_0inC)600_S*/ x86 *e4i"eN
Eig. $$ -
Eig. $A -
On t e left, clic/ to e"pand t e M*e4i"e 9ool+N folder and select t e M*e4i"e+N subfolder. On t e rig t, select eBox2-00_0inC)600_S*/ from t e list of a+ailable platform in t e S6o (e4i"e+ %or 5l$t%or& combo te"t bo".
Clic/ on t e Pro5ertie+ button to bring up eBox2-00_0inC)600 x86 *e4i"e Pro5ertie+ setting screen
Eig. $1
Clic/ on t e Con%i,'re button to bring up Con%i,'re 9CP<IP 9r$n+5ort Select ;+e +5e"i%i" IP $((re++ and enter e!o"-#$003s &% address
Eig. $6
Eig. $D -
W en connection is successful, t e Connecting dialog bo" will display Connection succeeded to indicate a successful connection.
Eig. $) -
e!o"-#$00 connected
Eig. $B -
Deploy e!o"#$00'Demo
Select eBox2-00_0inC)600_S*/ and clic/ *e5lo. , e C2 managed code application will download and e"ecute on e!o"-#$00 as s own in t e following screen s ot.
Eig. A0 -
)e%ug ,nformation
W ile it3s not wit in t e scope of t is guide to co+er in dept de+elopment and debug issues, we feel it3s informati+e to point out some of t e built-in debug resources %latform !uilder pro+ides. Jsing t e same %latform !uilder pro-ect, Me!o"#$00N, created in t e earlier part of t is guide. Switc to MDebugN build mode to build a MDebug &mageN wit t e following M!uild OptionsN. Erom (S#001 &DE, select B'il( | Con%i,'r$tion M$n$,er# to bring up t e Con%i,'r$tion M$n$,er screen. Erom t e 6cti+e solution configuration selection options, select ICOP_Vortex86_60B x86 *e1', and clic/ t e Close button to set t e OS Design to generate a debug image.
Eig. A: -
Configuration ;anager
Erom (S#001 &DE, select Pro!e"t | eBox2-00 Pro5ertie+# to bring up t e OS Design %roperty screen. Clic/ to e"pand t e Con%i,'r$tion Pro5ertie+ folder and select B'il( O5tion+.
Eig. A# -
Configuration ;anager
Enable t e associated c ec/ bo" to select t e following build options. )n$1le e1oot +5$"e in &e&or. <&;GE!OO,R:= )n$1le e4ent tr$"7in, ('rin, 1oot <&;GCE*OGE76!*ER:= )n$1le 7ernel (e1',,er <no &;G7ODE!JGGE8R:= )n$1le /I9D <no &;G7O@&,*R:= Fl'+6 tr$"7e( e4ent+ to rele$+e (ire"tor. <&;G6J,OE*JS0R:=
Jn-c ec/ MR'n:ti&e I&$,e C$n 1e D$r,er t6$n -2MBN to disable t is build option. , is build option sets t e &;G86;6A en+ironment +ariable w ic in turn sets t e system memory to 6A;!. , e e!o"-#$00 as :#);! system memory. , e !S% is configured to utili.e :#);! system memory by default. Clic/ MO@N to close Pl$t%or& Settin,+ screen. Erom t e (S#001 &DE, select B'il( | B'il( Sol'tion to build t e debug image from t e OS Design pro-ect. 6fter t e debug image build process is completed, follow t e procedure in MDownload &mage to e!o"-#$00N <page #A= to download t e debug image to e!o"-#$00. 6fter t e debug image is downloaded to e!o"-#$00, t e %latform !uilder &DE s ould loo/ similar to t e following screen.
Eig. A$ -
(S#001 &DE
Wit in %latform !uilder3s *e1', O't5't window, t e display s ows muc more detailed information about t e image3s boot up and de+ice dri+er loading process. , e additional information is useful, and may be critical, to elp debug and sol+e problems and pre+ent potential problems. Debug output messages can be copied to a te"t file to be analy.e in detail. 8efer to %latform !uilder online document for more information about +arious debug and trouble s ooting resources a+ailable. NO9)3 , e debug image ta/es more time to complete t e boot process. !e patient and let t e image complete t e boot process.
Summar:
Iou a+e now completed t e steps in t is guide. 0ere3s w at we a+e co+ered9 Created an OS Design pro-ect Customi.ed t e OS Design by adding additional components !uilt a Windows CE image from t e OS Design Downloaded a Windows CE image to e!o"-#$00 Create a C2 managed code application using (isual Studio #001 Establis connection between e!o"-#$00 running CE 6.0 and (S#001 de+elopment station using Corecon Deploy C2 managed code application from (S#001 and launc on e!o"-#$00 running CE 6.0 Configure t e OS Design to build a debug image.
3ppendix 3
&t3s recommended t at you use Windows 5% %rofessional wit your de+elopment station. !ot t e de+elopment station and e!o"-#$00 s ould be connected to t e same *ocal-6rea-7etwor/ wit D0C% ser+ice. 6 7J** modem serial cable lin/ing one of t e de+elopment station3s CO; ports wit t e e!o"-#$003s CO;: port pro+ides additional debug information.
$his is a t%pical setup. !ot t e de+elopment station and e!o"-#$00 are connected to a *ocal *67 wit D0C% ser+ice. , e null serial debug cable is connected between de+elopment station3s CO;: and e!o"-#$003s CO;:. &f t e e!o" does not boot wit t is configuration, you may need to enable D0C% ser+ice for eac new de+ice on your networ/. Some secure networ/s re4uire t at t e ;6C address be added to t e list of de+ices aut ori.ed for D0C% in t e D0C% ser+er. 7ote9 &f you are not able to download CE 6.0 image to e!o"-#$00, try disabling firewall on t e de+elopment station to see if a connection is establis ed.
3ppendix B
!ithout )B&P
&t3s recommended t at you use Windows 5% %rofessional wit your de+elopment station. &n t is setup, e!o"-#$00 is connected directly to t e de+elopment station3s Et ernet port using a Crosso+er 8?A1 Et ernet cable. 6 7J** serial cable lin/ing between one of t e de+elopment station3s CO; port wit e!o"#$003s CO;: pro+ides additional debug information.
W en e!o"-#$00 is connected directly to t e de+elopment station as abo+e, t e &% address for t e de+elopment station must be configured correctly for it to wor/. W en wor/ing wit t is setup met od, :B#.:6).#.#$# is t e preset static &% address for e!o"#$00. , e de+elopment wor/station3s &% address needs to be set correctly for t is to wor/. Eollowing is t e &% address setting guideline for t e de+elopment station. &% address9 Subnet mas/9 :B# . :6) . # . """ <must be different from e!o"-#$003s &% address= #11 . #11 . #11 . 0
&f t e &% address is not setup correctly, e!o"-#$00 will not able to communicate wit t e de+elopment station. 7ote9 &f you are not able to download CE 6.0 image to e!o"-#$00, try disabling firewall on t e de+elopment station to see if a connection is establis ed
3ppendix &
Windows CE &e'erence
9i(e 3allAs Blo/ httpBCC+lo/s2-sdn2co-C-i(ehall !nythin/ has to do with ?indows %-+edded technolo/ies= 9i(e 3all pro+a+ly (nows a+out it2 'here are tons o, use,ul in,or-ation related to ?indows 0% on 9i(e.s +lo/2 ?indows %-+edded 'utorials httpBCC-sdn2-icroso,t2co-Ce-+eddedC/etstartC+asicsCde,ault2aspx 'his site provides how-to tutorials on +asic and advanced topics a+out usin/ ?indows 0% in develop-ent o, e-+edded devices2 ?indows %-+edded >ews Droup httpBCC-sdn2-icroso,t2co-Ce-+eddedCco--unityCco--unityCnews/rpCde,ault2aspx ?indows %-+edded ?orldwide - 0hina httpBCCwww2-icroso,t2co-CchinaCwindowsCe-+eddedCde,ault2-spx ?indows %-+edded ?orldwide - Eapan httpBCCwww2-icroso,t2co-CFapanCwindowsCe-+eddedCde,ault2-spx
eBox-<*00 is desi/ned and +uilt usin/ Vortex86(SiS-55x) Syste--4n-0hip2 Datasheet and technical in,or-ation ,or Vortex86 Syste--4n-0hip is availa+le on this we+ site2
3ppendix )
eBox-<*00 is desi/n and +uilt usin/ Vortex86 Syste--on-0hip2 5t has si-ilar architecture as typical x86 0 1 +ased 0% 02 eBox-<*00 has an 5D% inter,ace internally to support %-+edDis( or any 5D% +oota+le ,lash stora/e usin/ the standard II- in 5D% inter,ace (the sa-e inter,ace used on the co--on <25; 5D% note+oo( hard drive)2 eBox-<*00 uses !95 B54S and can +oot ,ro- D4S= ?indows $8= ?indows M = ?indows M %-+edded and ?indows 0% usin/ +oot loader2 eBox-<*00 is desi/ned and -anu,actured +y 504 'echnolo/y 5nc2= a Dold )evel artner in 9icroso,t.s ?indows %-+edded partner pro/ra-= and reco/ni@ed +y 9icroso,t as <005 artner-o,-'he-Near in the 5ndependent 3ardware Vendor (53V) cate/ory2 1&)B httpBCCwww2icoptech2co%-ailB wepOicoptech2coeBox-<*00 has all the typical 5C4 peripherals as the des(top 02 VD! SC< Pey+oard and 9ouse %thernet Serial 1SB !udio output 9icrophone input 0o-pact6lash
CP*
Vortex86 So0 (Syste- on 0hip)
.ain .emor%
#<89B SD&!9
Peripheral
#2 1SB V#2# ports x * <2 Serial port x<('his ,unction only availa+le ,or eBox-<*00-ESP) *2 !udio(9ic-in= )ine-in) I2 'ype 5C55 06 Slot (Support 9icro Driver)
BI)#
!95 B54S
/01
!D &ev2<20 0o-pliant &esolution up to #=<80x#=0<I 3i/h 0olors
1udio
!0$" 04D%0= 6ully 0o-pliant with !0$"v<2#
)# #upport
D4S ?indows 0%2>%' I2< ?indows 0% 520 ?indows %-+edded 0% 620 ?indows M %-+edded
+12
&ealte( 8#00B= #0C#009+ps %thernet
)n-Board I E
%nhanced 5D% inter,ace= II-pin +ox header x #
Power &e5uirement
Q5VD0
06 Slot
1SB
9ic-in
)ine-out
ower B'>
ower Switch
E#8B
9ini 05
9ini 05 soc(et
#<I-pin
#%stem BI)#
&econ'i4urin4 eBox-2300
#2 'a(e note that !95 B54S is used in the eBox-<*00 V%S! 02 'o recon,i/ure the V%S! 0= depress or hit the SDelT (ey to enter your B54S setup -ain -enu2 <2 Select ,ro- the -enu= the desired setup ,or chan/e2 *2 ress S%scT to /o +ac( to -ain -enu2 I2 9ove your cursor to :Save Settin/s and %xit;= press :N; to save the chan/es that you Fust -ade2 eBox-<*00 will restart accordin/ly to your new setup2
*68h - *66h Serial ort # 77 eBox-<*00 does not expose these devices
I&9 .appin4
I&97 5&J0 5&J# 5&J< 5&J* 5&JI 5&J5 5&J6 5&J" 5&J8 5&J$ 5&J#0 5&J## 5&J#< 5&J#* 5&J#I 5&J#5 e!ice Syste- 'i-er Pey+oard 0ontroller 0ascade ,or 5&J8 - #5 Serial ort < Serial ort # 1nassi/ned 1nassi/ned 1nassi/ned &eal 'i-e 0loc( 1nassi/ned 1SB %thernet #0C#009 )!> 9ouse 9ath 0oprocessor 3ard Dis( 0ontroller 1nassi/ned
3ppendix $
By chan/in/ the B54S settin/s= eBox-<*00 can +e set to +oot ,ro- the ,ollowin/ resources2 5nternal 5D% stora/e 0o-pact6lash 1SB 6loppy 1SB stora/e 1SB 0DCDVD-&49 drive &e-ote >etwor( Boot usin/ M%
By de,ault= eBox-<*00 is set to +oot ,ro- the internal 5D% stora/e2 'o chan/e the +oot device= enter syste- B54S settin/ -ode to chan/e +oot settin/s2 'o enter systeB54S settin/ -ode= press the E+ (ey -ultiple ti-es i--ediate a,ter turnin/ on the power on2
Select !dvanced 094S Setup to +rin/ up B54S settin/s ,or Boot Device options2 1SB stora/e and 06 card -ust +e plu//ed into eBox-<*00 prior to turnin/ on the power in order ,or the B54S to detect the devices. present2 4therwise= 1SB stora/e and 06 card will not +e availa+le as one o, the +oot device options2 >oteB 'he *#B &. -6 +oot option support 1SB +oota+le ,lash stora/e2 9ost 1SB ,lash stora/e can +e pro/ra- to +eco-e +oota+le to D4S (re,er to the 1SB ,lash stora/e vendor support site ,or in,or-ation)2 1SB stora/e is one o, the -ost convenience -ethods to trans,er ,iles ,ro- develop-ent station to eBox<*00.s internal 5D% ,lash stora/e2 By settin/ the :st Boot e!ice to *#B &. -6 and 2nd Boot e!ice to I E-0= eBox-<*00 will atte-pt to +oot ,ro- 1SB stora/e when it.s plu//ed into the syste-2 4therwise= it will +oot ,ro- the internal 5D% ,lash stora/e2