首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > WinCE >

SD卡压力测试,快速插拔卡就会出SD卡被格式化了,该怎么解决

2012-05-21 
SD卡压力测试,快速插拔卡就会出SD卡被格式化了SD卡压力测试,快速插拔卡就会出SD卡被格式化了。引起格式化的

SD卡压力测试,快速插拔卡就会出SD卡被格式化了
SD卡压力测试,快速插拔卡就会出SD卡被格式化了。
引起格式化的原因是因为读出卡的分区信息好像不对。然后引起后面invalid BPB, volume deemed invalid,然后就被格式化了。

不知有没有大侠碰到过这种问题。或者有好的建议也可以帮忙提出,谢谢!!qq732393618

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
  "FriendlyName"="FAT FileSystem"
  "Dll"="fatfsd.dll"
  "Flags"=dword:00020014 ;;这个要怎么设才会不让格式化。 "Paging"=dword:1
  "EnableCache"=dword:1
  "CacheSize"=dword:0
  "Util"="fatutil.dll"
  "CacheDll"="diskcache.dll"

DEBUG打印信息如下:


0x837ff8c8: SDHCControllerIst - Card is Inserted!
0x83820bb0: SHCSDSlotOptionHandler - Setting Host Control Register 0 
0x83820bb0: SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 100000 Hz, Actual : 97656 Hz 
0x83820bb0: HandleErrors - ERROR INT STATUS=0x01
0x83820bb0: DumpCurrentRequest: 0x00054394
0x83820bb0: Command: 5
0x83820bb0: Argument: 0x00000000
0x83820bb0: ResponseType: 5
0x83820bb0: NumBlocks: 0
0x83820bb0: BlockSize: 0
0x83820bb0: HCParam: 0
0x83820bb0: HandleErrors - Command line error (0x1). Resetting CMD line.

0x83820bb0: SDSynchronousBusRequest_I: queue request failed(0xc0000014),TransferClass(2), CommandCode(5),CommandArgument(0)

0x83820bb0: HandleErrors - ERROR INT STATUS=0x01
0x83820bb0: DumpCurrentRequest: 0x00054394
0x83820bb0: Command: 1
0x83820bb0: Argument: 0x00300000
0x83820bb0: ResponseType: 4
0x83820bb0: NumBlocks: 0
0x83820bb0: BlockSize: 0
0x83820bb0: HCParam: 0
0x83820bb0: HandleErrors - Command line error (0x1). Resetting CMD line.

0x83820bb0: SDSynchronousBusRequest_I: queue request failed(0xc0000014),TransferClass(2), CommandCode(1),CommandArgument(300000)
SDBusDriver: The SDIO card does not support block mode. Use Soft-Block instead. 
0x83820bb0: SHCSDSlotOptionHandler - Setting Host Control Register 0 
0x83820bb0: HandleAddDevice: LoadDevice type = 2, slot 00x83820bb0: DEVICE!RegReadActivationValues RegQueryValueEx(\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class\High_Capacity\BusPrefix) returned 2

0x83820bb0: SDMemory: +SMC_Init

0x83820bb0: SDGetDeviceHandle: ActivePath: Drivers\Active\55 
0x83820bb0: SDGetClientFunctions: +Init
0x83820bb0: SDGetClientFunctions: -Init
0x83820bb0: SDMemCardConfig: Card is high capacity (2.0+)

0x83820bb0: SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078198272, ReadTotal: 0, Write Factor: 1093567616 WriteTotal: 25000 
0x83820bb0: SDMemory: Initialize: Using block transfer size of 64 blocks

0x83820bb0: SDMemory: Idle Timeout: 2000 Idle Power State: 2

0x83820bb0: SDMemory: Power Management Setup complete 
0x83820bb0: SDMemory: -SMC_Init

0x83fbad34: [NOTIFY] HandleSystemEvent 7 /ADD DSK2:

0x83fe9b90: SDMemory: GetDeviceInfo - Profile = SDMemory, length = 18

0x83fe9b90: SDMemory: GetStorageID Insufficient buffer space

SDMemory: -GetStorageID

0x83fe9b90: Loading partition driver mspart.dll hModule=83FADE88

0x83fe9b90: Driver mspart.dll loaded

0x83fe9b90: Opened the store hSt

0x83fe9b90: NumSec=7577600 BytesPerSec=512 FreeSec=0 BiggestCreatable=0

0x83fe9b90: Partition Part00 NumSectors=7569408

0x83fe9b90: MSPART!PD_OpenPartition: dwStoreId=000DB6B0, PartName=Part00
0x83fe9b90: FSD_MountDisk: mounting volumes for hDsk=000E5170
0x83fe9b90: SDMemory: GetDeviceInfo - Profile = SDMemory, length = 18

0x83fe9b90: FATFS!OpenVolume: access time updates disabled

0x83fe9b90: FATFS!OpenVolume: event logging enabled

0x83fe9b90: FATFS!OpenVolume: automatic scanning disabled



0x83fe9b90: FATFS!OpenVolume: write verify disabled

0x83fe9b90: FATFS!OpenVolume: extra FAT on format enabled

0x83fe9b90: FATFS!OpenVolume: force write through disabled

0x83fe9b90: FATFS!OpenVolume: Codepage = 1

0x83fe9b90: FATFS!OpenVolume: Number of path cache entries = 50

0x83fe9b90: FATFS!InitVolume: sector 0 byte 0 suspicious (0x0)

0x83fe9b90: FATFS!InitVolume: invalid BPB, volume deemed invalid

0x83fe9b90: FATFS!InitVolume: FAT version: 12

0x83fe9b90: FATFS!InitVolume: Cluster Size (Sectors): 0

0x83fe9b90: FATFS!InitVolume: TFAT enabled: FALSE

0x83fe9b90: FormatDisk!FormatVolume: New extended boot sector successfully written


[解决办法]

探讨

引用:
这种问题 一般需要改驱动的代码

FAT File System Registry Settings

Storage Manager Registry Settings

http://www.cnblogs.com/Jade2009/archive/2010/1/22.html


你说的这个配置,我改了,但
FATFS!OpenVolume:……

[解决办法]
我觉得楼主应该是可以跟下去的,看为什么会调用format
[解决办法]
我遇到过这种情况。
那是2009 年11月份这样。
我插入我的手机SD卡 到TQ2440 上,我的妈啊。出来后发现所有相片,数据全不见了。
被迅速格式化了,所以我对TQ2440 从此很恐惧。呵呵,
我有很多重要的相片的,但是被格式化掉了。真是悲催!

[解决办法]
探讨

我这是SD卡,
对SD卡的驱动没有完全吃透。看样子还要慢慢来。
从协议开始。

热点排行