资源简介
软件用于U盘出现坏块修复,低格U盘,把U盘分区,重新恢复出厂设置。
代码片段和文件信息
#include
typedef unsigned char UCHAR;
typedef unsigned short WORD;
typedef unsigned long DWORD;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////FTK_flash_setting////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//HW Setting Byte 0x000~0x030
#pragma pack(1)
typedef struct{ //sizeof(FTK_flash_setting_hw_config_struct) == 0x30
UCHAR ucB000_DataBusCurrent; //Byte 0x000
UCHAR ucB001_CtrlBusCurrent;
UCHAR ucB002_CEBusCurrent;
UCHAR ucB003_;
UCHAR ucB004_ReadClock;
UCHAR ucB005_WriteClock;
UCHAR ucB006_ReadDutyCycle;
UCHAR ucB007_WriteDutyCycle;
UCHAR ucB008[0x08];
UCHAR ucB010[0x20];
} FTK_flash_setting_hw_config_struct;
//Prog Mode 0x040~0x050
typedef struct{ //sizeof(FTK_flash_prog_mode_mask_struct) == 0x10
UCHAR bEnFullPage :1; //Bit 0
UCHAR bEnStrongPage :1; //Bit 1
UCHAR bEnWeakPage :1; //Bit 2
UCHAR bEnLastHalfPage :1; //Bit 3
UCHAR bEnProgram3Time :1; //Bit 4
UCHAR bEnFirstHalfPage :1; //Bit 5
UCHAR bEnOBP_TLC :1; //Bit 6
UCHAR bEnOBP_SLC :1; //Bit 7
UCHAR ucRsv[0x0F];
} FTK_flash_prog_mode_mask_struct;
//Sample Block 0x060~0x0E0
typedef struct{
//sizeof(FTK_flash_sample_blk_struct) == 0x100
WORD wSampleBlkCnt;
WORD wSampleBlk[0x7F];
} FTK_flash_sample_blk_struct;
//Test Rule 0x140~0x1C0
typedef struct
{
UCHAR ucProgramPattern; //Byte 0
WORD wRead_Page_Fail_Times_Thresholds; //Byte 12
UCHAR ucMaxRetryTimes; //Byte 3
UCHAR ucECCThresholdRatio;
UCHAR ucRsv0;
UCHAR ucRsv[0x7A];
} FTK_flash_test_rule;
//Test condition 0x1C0~0x200
typedef struct{
DWORD dwMaxTestTime; //second
UCHAR bEnDieSortFastPageReadWrite :1;
UCHAR bRSV :7;
UCHAR bEnInversePatternCheck :1;
UCHAR bRSV2 :7;
UCHAR ucRSV[0x0A];
UCHAR ucRSV1[0x30];
} FTK_test_condition;
//Test Rule 0x200~0x230
typedef struct
{
UCHAR ucBinLevelCnt; //Byte 0x00
UCHAR ucRsv[0x0F]; //Byte 0x01~0x0F
DWORD dwBinLevelList[0x20]; //BYTE 0x10~0x50
} FTK_bin_level;
//Main flash setting struct
typedef struct
{
FTK_flash_setting_hw_config_struct sHwConfig; //HW Setting Byte 0x000~0x030
FTK_flash_prog_mode_mask_struct sProgModeMask; //Prog Mode 0x030~0x040
FTK_flash_sample_blk_struct sSampleBlk; //Sample Block 0x040~0x140 Max:127
FTK_flash_test_rule sTestRule; //Test Rule 0x140~0x1C0
FTK_test_condition sTestCondition; //test condition 0x1C0~0x200
FTK_bin_level sBinLevel; //bin level 0x200~0x250
}ftk_flash_setting_struct;
#pragma pack()
void ReadFlashSetting(ftk_flash_setting_struct *sFlashSe
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 78 2015-12-24 10:13 UFD_3267AC\FTK\Flash_Setting\ReadMe.txt
文件 78 2016-01-13 10:20 UFD_3269AA\FTK\Flash_Setting\ReadMe.txt
文件 400896 2005-11-22 07:51 UFD_MP\FactoryDriver\Documents_for_SMI_Driver.doc
文件 128000 2013-05-28 15:54 Release note\MPTOOL Error Code List_M0528.doc
文件 355328 2013-07-09 14:50 Release note\MPTool New Port Mapping Guide.doc
文件 157184 2015-02-09 09:52 Release note\SM3257ENBA-Release-Note.doc
文件 161792 2017-07-05 19:08 Release note\SM3257ENBB-Release-Note.doc
文件 997376 2006-11-17 14:56 Release note\SM32X_TestProgram_User_Guide_F1117.doc
I.A.... 25042 2018-07-13 09:56 UFD_MP\DBSIZE.INI
文件 12233 2018-08-31 00:18 DEFAULT.INI
文件 229 2010-01-07 02:06 UFD_MP\LocalSetting.INI
文件 303 2007-06-14 12:17 UFD_MP\LogFile.INI
I.A.... 307 2018-01-30 11:35 UFD_MP\SMIGroupInfo.ini
I.A.... 138 2018-01-30 11:35 UFD_MP\SMIPortMapping.ini
I.A.... 3890 2018-08-31 00:17 UFD_MP\SMIPortMappingEx.ini
文件 5180 2015-12-24 10:13 UFD_3267AC\FTK\Flash_Setting\FlashSettingTool.cpp
文件 5180 2016-01-13 10:20 UFD_3269AA\FTK\Flash_Setting\FlashSettingTool.cpp
文件 656 2016-05-05 16:10 UFD_3267AC\FTK\Flash_Setting\454C94937651_Set.bin.bak
文件 656 2015-12-25 12:05 UFD_3267AC\FTK\Flash_Setting\AD3A18A36125_Set.bin.bak
I.A.... 31160 2013-05-17 19:46 UFD_MP\FactoryDriver\WinXP\WinXP\usbstor.bak
文件 2129 2017-12-08 08:03 UFD_MP\FactoryDriver\Win2000\SMI32X2K.INF
文件 4537 2018-01-30 11:35 UFD_MP\FactoryDriver\Win7\SMI32X2K.INF
文件 4537 2018-01-30 11:35 UFD_MP\FactoryDriver\Win8\SMI32X2K.INF
文件 4537 2018-01-30 11:35 UFD_MP\FactoryDriver\WinXP\SMI32X2K.INF
文件 1794 2011-05-31 17:56 UFD_MP\FactoryDriver\Win2000\smi32xPC.INF
文件 1794 2011-05-31 17:56 UFD_MP\FactoryDriver\WinXP\smi32xPC.INF
文件 9080 2011-05-31 17:56 UFD_MP\FactoryDriver\Win2000\Win2000\usbstor.inf
文件 29198 2011-05-31 17:56 UFD_MP\FactoryDriver\WinXP\WinXP\usbstor.inf
文件 81920 2013-02-05 16:15 UFD_MP\FactoryDriver\Win7\x64\devcon64.exe
文件 418816 2008-02-11 11:33 h2testw.exe
............此处省略2075个文件信息
评论
共有 条评论