How to Develop a Flash Media Driver (Windows Embedded CE 6.0)
1/6/2010
You can develop a flash media driver (FMD) to perform the input and output of data to a flash memory device. To do this, you must add support for the FMD functions to your driver. Once you have added support for the FMD functions, you can then debug your flash media driver to verify that it is functioning properly.
Hardware and Software Assumptions
- You have created, built, and downloaded a run-time image to your target device.
For more information, see How to Use the IDE to Create, Customize, and Build a Run-Time Image. - You have created a device driver. For more information, see How to Create a Device Driver.
Steps
Step | Topic |
---|---|
1. Add support for the required FMD functions to your driver. The following list shows the required FMD functions: |
Not applicable |
2. Build your driver. When building your driver, verify that your driver links to the Fal.lib link library. |
|
3. Create a basic sample application that implements the FMD functions. This sample application will be used to debug your FMD. |
Not applicable |
4. Debug your driver in Platform Builder by setting a breakpoint in the entry point for each of the FMD functions for your driver.
Note:
You will need to reboot your target device and reload your driver to confirm that the driver executes to the breakpoint.
|
|
5. Download your run-time image to your target device. |
|
6. If you want to verify that your driver loads and functions correctly, run your sample application until you reach the breakpoints you previously set.For more information on troubleshooting debugging a driver, see Troubleshooting: Debugging a Driver. |
See Also
Concepts
Block Driver Architecture
How to Configure a Run-Time Image to Support a Flash Media Device