Windows CE Development

Download Report

Transcript Windows CE Development

Windows CE Development
He Jianbang
Agenda






Introduction
Features Overview
Development Overview
Tools Demonstration
Roadmap
How To Start Developing!
2
Wide Range Of Devices
Voice-over IP
Devices
Thin Clients
Gateways
Set-Top Boxes
Digital Audio
Receivers and Players
Mobile
Handhelds
Medical Devices
Industrial
Automation
Smart Displays
3
What Is Windows CE .NET?







Microsoft’s latest embedded OS platform
32-bit, real-time, Win32-based API
Easy to use, familiar development tools
Highly componentized, small-footprint
Broad CPU support
Full feature functionality and flexibility
Low cost tools and run-time licensing
4
Windows CE Architecture
Overview of Windows CE Architecture
The Hardware
The OEM Adaptation Layer
The Kernel Module
The File sys Module
The GWES Module
Communication Support
5
Windows CE Architecture
Microsoft
OEM
ISV
Applications
Embedded Shell
Remote
Connectivity
Windows CE Shell Services
WIN32 APIs
COREDLL, WINSOCK, OLE, COMMCTRL, COMMDLG, WININET, TAPI
Kernel
Library
GWES
Device
Manager
File
Manager
OAL
Bootloader
Drivers
Device
drivers
File drivers
OEM Hardware
6
IrDA
TCP/IP
Network
drivers
The OEM Adaptation Layer
Layer
between the kernel and the H/W
Coded
by OEMs to adapt Win CE to their own
platforms
Linked
with processor-independent code provided
by MS to build the kernel
Set
of functions related to system startup, interrupt
handling, power management, profiling, timer, and
clock
7
Shipping BSPs In 4.2
Family
ARM
CPU
SDB Name
BSP
Intel SA1110
Ship CSP for SA11x1
N/A
ARMV4
Samsung S3C2410
ARM920
Samsung SMDK-2410 SDB
ARM Integrator AP Dev Kit
Samsung_2410
ARMIntegrator
ARMV4I
Intel XScale
Intel Lubbock Platform
(DBPXA250)
XSC1BD
ARMV4
ARMV4I
MIPS II flavors
Alchemy DBAu1500 SDB (web
release)
NEC DDB-Vr4122 (Eagle) SDB
DBAu1500
Eagle
MIPSII
MIPS
MIPS IV flavors (NEC
Vr5432)
NEC Solution Gear Series
SG2_VR5500
MIPSII
MIPSII_FP
MIPSIV
MIPSIV_FP
SH4
Hitachi US7750 HARP SDB
(“Aspen”)
Aspen
SH4
SH3
Hitachi US7729 HARP SDB
(“Keywest”)
Keywest
SH3
X86 (Intel, AMD, Via,
SiS…)
Generic CE/PC machine
CEPC
x86
Geode GX1 series
National Pompano Platform
Any Geode based platform
Geode
x86
SHx
x86
Kernel
8
BSP’s



Platform Builder ships with at least one
BSP for each supported processor
Many 3rd party BSP’s
Roll your own…
9
Board Support Packages
The following table shows the elements that are contained in a
board support package (BSP).
Element
Description
Boot loader
During development, downloads the
operating system (OS) images.
OEM adaptation
layer (OAL)
Links to the kernel image and supports
hardware initialization and management.
Device drivers
Support peripherals on-board or are
attached at run time.
Configuration files Once created, a BSP can be reconfigured
through environment variables and .bib
and .reg file modifications.
10
Windows CE Boot Loaders
The boot loader is a utility that is an integral part of the OEM
device development process and, in some cases, the boot loader
is also included in the final OEM product. The general purpose of
the boot loader is to place the OS image into memory and then
jump to the OS startup routine. The boot loader can obtain the OS
image in a number of different ways, including loading it over a
cabled connection, such as Ethernet, universal serial bus (USB),
or serial. The boot loader also loads the OS from a local storage
device, such as Compact Flash, or hard disk. The boot loader may
store the OS image in RAM or in nonvolatile storage, such as
flash memory, electrically erasable programmable read only
memory (EEPROM), or some other storage device for later use.
11
Windows CE Is Different
Hardware
Desktop/Laptop PC
 2 GHz Pentium IV
 256 K  512 K cache
 512 M  1 G DRAM
 100 G hard drive
 1280x1024 display
 2  4 hour battery requirement
 50 Watts
 Keyboard & mouse
 Extensible through

Device
 400 MHz RISC
 4 K  8K cache
 4 M  ~32 M DRAM
 4 M  ~32 M Flash / ROM
 170x170  640x480
 24 hour battery requirement
 <1 to 2 Watts
 Stylus or Thumb
 Not very extensible
PCI, AGC, USB, EISA, 1394,
PC-Card, CF, enet, …

12
PC-Card, SD, CF
Development Cycle
From Platform To Applications
Device
Development
Application
Development
Export SDK with Device Specific
Win32 APIs or use Standard SDK
Platform
Builder
Download Device Specific
Windows CE OS and Applications
Component
Catalog incl.
.NET CF
via KITL
Build Device
Image
eMbedded Visual
C++ 4.0
C/C++ MFC/ATL
via KITL
Device Under
Development
Visual Studio .NET
VB/C#
Device
Emulation
Smart Device
Programmability
Debug
Device
Builds and
Brings Up Device
Builds Rich
Applications
13
Windows CE .NET
Tools

Operating System Development

Platform Builder


Configuration, debugging tool for deploying an OS
Application Development

eMbedded Visual C++ 4.0 SP2



“Native” application development
C, C++, MFC, ATL
Visual Studio.NET 2003



“Managed” application development
Visual Basic .NET, C# .NET
.NET Compact Framework
14
Windows CE .NET Roadmap
2002-2003
2004
“Macallan”
Version 4.2





RG, VoIP optimizations
IE 6, WM9
.NET CF RTM
App compat w/ PPC
New “Core” license





Faster time to market
Adaptive device intelligence
Multimedia capture, encoding
Direct3D Mobile
Enhanced security
VS.NET 2003


2005+
Smart Device
Programmability RTM
.NET Compact Framework
v1.0 RTM
15
“Visual Studio for
Yukon”
“Next
Major OS
Release”
“Visual
Studio for
Longhorn”
Why Windows CE .NET?




Technology portfolio depth
Low total cost of development
Customization and differentiation
Development and marketing support
16
Start Building Devices!


Follow Me Step By Step…
Read the How-Tos and Tutorials


Participate in newsgroups, chats, events


http://www.microsoft.com/windows/embedded/community
Get deep technical information and documentation updates


http://msdn.microsoft.com/embedded/getstart/basics/tutorialsce/default
.aspx
http://msdn.microsoft.com/embedded
Engage with Windows Embedded Partners

http://www.mswep.com
17
Key Words




PlatForm Builder & EVC
BSP & OAL
SDK
Eboot.nb0 &NK.bin
18