当前位置: 代码迷 >> WinCE >> SD卡压力测试,快速插拔卡就会出SD卡被格式化了,该怎么解决
  详细解决方案

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

热度:24   发布时间:2016-04-28 13:04:43.0
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
  相关解决方案