FIX: A Windows CE 5.0-based device cannot identify an SD card or the TFAT file system on a Windows CE 5.0-based device may be corrupted when the power supply is turned off suddenly

Article translations Article translations
Article ID: 954089 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

In Microsoft Windows Embedded CE 5.0, you may experience one or more the following problems.

Problem 1

When you insert a manufacturer-formatted Secure Digital (SD) card into a Windows CE 5.0-based device, the device cannot identify the SD card. This problem may occur when some storage devices use the FAT32 file system. For example, the storage devices may include the SD card, the multimedia card, or the RAM disk.

Note This problem does not occur on Windows Embedded CE 6.0-based devices.

Problem 2

Consider the following scenario. You use the transaction-safe FAT (TFAT) file system on a Windows CE 5.0 based-device. The device uses NAND flash storage that has a sector size of 2 KB. You run an application that quickly writes in a file in a subfolder of the mounted NAND flash storage volume. The power supply is turned off suddenly. In this scenario, the file system may be corrupted, and the application cannot access the subfolder.

CAUSE

Cause 1

This problem occurs because the FAT32 file system driver checks the File System Information (FSINFO) structure of a storage device when the driver mounts the device. However, the FSINFO structure is optional. Therefore, some devices that do not have the structure cannot be mounted.

Cause 2

This problem occurs because the sector size for a comparison of FAT tables is hard-coded to 512 bytes, regardless of the actual size when the TFAT file system is initialized. Therefore, the file system may be corrupted when the actual sector size is 2K.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 5.0 Platform Builder Monthly Update (July 2008). You can confirm this by scrolling to the "File information" section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:
Product version-yymmdd-kbnnnnnn-processor type
For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:
837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this software update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean, and then click Build Platform
  • On the Build menu, click Rebuild Platform.
You do not have to restart the computer after you apply this software update.

Update replacement information

This software update does not replace a previously released software update.

File information

The English version of this software update package has the file attributes or the later file attributes that are listed in the following table.
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb50-080701-kb954089-armv4i.msi1,140,22401-Jul-200820:50
Wincepb50-080701-kb954089-mipsii.msi1,188,35201-Jul-200820:50
Wincepb50-080701-kb954089-mipsii_fp.msi1,188,35201-Jul-200820:50
Wincepb50-080701-kb954089-mipsiv.msi1,204,73601-Jul-200820:50
Wincepb50-080701-kb954089-mipsiv_fp.msi1,205,24801-Jul-200820:50
Wincepb50-080701-kb954089-sh4.msi1,116,67201-Jul-200820:50
Wincepb50-080701-kb954089-x86.msi1,042,94401-Jul-200820:50
The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Transact.c44,87213-Jun-200821:33Premium\Private\Winceos\Coreos\Fsd\Fatfs\Tfat
Volume.c70,90916-Jun-200816:50Private\Winceos\Coreos\Fsd\Fatfs
Fatfsd.lib600,94616-Jun-200816:35Public\Common\Oak\Lib\Armv4i\Debug
Tfat.lib697,55216-Jun-200816:35Public\Common\Oak\Lib\Armv4i\Debug
Fatfsd.lib320,88016-Jun-200816:34Public\Common\Oak\Lib\Armv4i\Retail
Tfat.lib359,34016-Jun-200816:35Public\Common\Oak\Lib\Armv4i\Retail
Fatfsd.lib604,57616-Jun-200816:35Public\Common\Oak\Lib\Mipsii\Debug
Tfat.lib698,42416-Jun-200816:35Public\Common\Oak\Lib\Mipsii\Debug
Fatfsd.lib325,22216-Jun-200816:35Public\Common\Oak\Lib\Mipsii\Retail
Tfat.lib363,50616-Jun-200816:35Public\Common\Oak\Lib\Mipsii\Retail
Fatfsd.lib604,71216-Jun-200816:36Public\Common\Oak\Lib\Mipsii_fp\Debug
Tfat.lib698,56416-Jun-200816:36Public\Common\Oak\Lib\Mipsii_fp\Debug
Fatfsd.lib325,35016-Jun-200816:35Public\Common\Oak\Lib\Mipsii_fp\Retail
Tfat.lib363,59216-Jun-200816:35Public\Common\Oak\Lib\Mipsii_fp\Retail
Fatfsd.lib614,34816-Jun-200816:36Public\Common\Oak\Lib\Mipsiv\Debug
Tfat.lib710,50016-Jun-200816:36Public\Common\Oak\Lib\Mipsiv\Debug
Fatfsd.lib329,10616-Jun-200816:36Public\Common\Oak\Lib\Mipsiv\Retail
Tfat.lib368,06416-Jun-200816:36Public\Common\Oak\Lib\Mipsiv\Retail
Fatfsd.lib614,48416-Jun-200816:37Public\Common\Oak\Lib\Mipsiv_fp\Debug
Tfat.lib710,64016-Jun-200816:37Public\Common\Oak\Lib\Mipsiv_fp\Debug
Fatfsd.lib329,23016-Jun-200816:36Public\Common\Oak\Lib\Mipsiv_fp\Retail
Tfat.lib368,14616-Jun-200816:36Public\Common\Oak\Lib\Mipsiv_fp\Retail
Fatfsd.lib516,04416-Jun-200816:34Public\Common\Oak\Lib\Sh4\Debug
Tfat.lib596,33216-Jun-200816:34Public\Common\Oak\Lib\Sh4\Debug
Fatfsd.lib297,01816-Jun-200816:33Public\Common\Oak\Lib\Sh4\Retail
Tfat.lib330,76416-Jun-200816:33Public\Common\Oak\Lib\Sh4\Retail
Fatfsd.lib504,15016-Jun-200816:33Public\Common\Oak\Lib\X86\Debug
Tfat.lib582,63616-Jun-200816:33Public\Common\Oak\Lib\X86\Debug
Fatfsd.lib286,72416-Jun-200816:32Public\Common\Oak\Lib\X86\Retail
Tfat.lib319,71816-Jun-200816:32Public\Common\Oak\Lib\X86\Retail

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the TFAT file system, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/aa911939.aspx
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 954089 - Last Review: July 22, 2008 - Revision: 1.0
APPLIES TO
  • Microsoft Windows CE 5.0
Keywords: 
kbfix kbexpertiseadvanced kbqfe KB954089

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com