Partager via


BSP Creation: Simplest Case

The easiest way for you to create a new BSP is to clone an existing BSP that is designed for similar hardware. Platform Builder includes a BSP for each supported CPU and for many of the associated core logic or chipsets. You can use the BSP Wizard in the Platform Builder IDE to clone a BSP. For more information about the BSP Wizard, see BSP Wizard Overview. For more information about cloning a BSP, see Cloning an Existing BSP.

Note   Multiple BSPs of the same name cannot be added to a platform. You can import two or more BSPs of the same name into the IDE Catalog but the IDE does not support adding two or more BSPs of the same name to a sample platform. For example, if you create a BSP called MyBSP that supports x86, and then you later create another BSP called MyBSP that supports SH3, you cannot have both of these BSPs in a platform at the same time.

For information about how to bring up a device by cloning a BSP, see How to Bring Up a Device by Cloning a BSP.

The BSP consists of two distinct parts: the OEM adaptation layer (OAL) and its associated support files, and device drivers. The OAL is both CPU and board specific and resides in the platform directory %_WINCEROOT%\Platform\%_TGTPLAT%\Kernel\HAL. The OAL and the boot loader typically share much of the same startup code and are generally the first BSP components to be developed. The simplest way for you to get started developing the boot loader and OAL is to copy an existing platform to your platform directory and modify the code to suit your SDB.

Device drivers make up the other half of the BSP. You can reuse device drivers included in Platform Builder to save considerable development time. Depending on the nature of your SDB design, Platform Builder includes one of three classes of device drivers: CSP, BSP, or common drivers. Each class of drivers is included in the platform in a slightly different way. For more information about each class of drivers and how each is included in the platform, see Device Driver Libraries.

See Also

Board Support Package Tools | Board Support Packages

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.