Freigeben über


Build and Test Your Device Driver (Compact 2013)

3/26/2014

In this section, you learn how to copy, build, and test a simple device driver. Windows Embedded Compact 2013 includes a sample monolithic stream driver to use as a starting point. You add the sample driver to your board support package (BSP) and then modify your BSP configuration files to include the driver as part of your run-time image. During this process, you learn how to dynamically load and test your driver by using a console application and the Windows Embedded Compact Test Kit (CTK).

Prerequisites

Before you build and test your device driver, you must complete the following tasks:

  1. Obtain a physical device or set up a virtual device. If you do not have a physical device, or if you want to get started with Windows Embedded Compact 2013 before you obtain your hardware, you can use a virtual device virtual devicethat simulates an x86 architecture, see Set Up a Virtual Test Device.

    Note

    The steps in this section were verified by using a virtual device.

  2. Plan your device driver. Understand your options in terms of device driver characteristics, driver loading strategy, and access method. For more information, see Plan Your Device Driver, which walks you through the planning phase of your device driver project as it explains the most important functionality of the Windows Embedded Compact 2013 device driver architecture.

  3. Implement your device driver. The easiest way to begin your implementation is to start with an existing sample device driver, modify it to fit your design, and add functionality to support your hardware. For more information, see Implement Your Device Driver.

  4. Create an OS design. Use Platform Builder to design an OS that includes only the features and functionality that you need. To get started, see Create Your First OS or Design an OS.

  5. Learn how to download the OS to the device. You will need to download the OS to your device before you can start testing your device driver. For information about how to download an OS to a virtual device, see Download the OS to the Device.

In This Section

  • Add and Build a Device Driver
    Describes how to add a sample stream driver to your BSP, how to modify configuration files to include the driver in the run-time image, and how to build the driver.

See Also

Concepts

Device Driver Developer Guide