2023年6月26日发(作者:)
DYNA-SM32X
USB2.0 flash media controller
USB TEST PROGRAM
Version:3.0
SM32X
Introduce:
The program is for SMI SM32X’s Mass Production. This tool can test up to 16 devices at once.
Platform:
There are two drivers for different platform:
win98_factory_driver:
Windows98
winXP_factory_driver:
Windows 2000
Windows XP
环境设置:
设置功能::(see the Fig.
1)
Version : 4.2 Confidential
- 2 - SM32X
Fig. 1 Setting Function of SM32X Production Tool
It will allow the user to change CID information.
Password Entering:(see the Fig. 2)
Fig. 2 Password entering for 「Setting」Function.
The system default password is「320」. The wrong password led user to edit the「Begin
Serial」and「End Serial」fields only.
Loading the INI File:(see the Fig. 3)
12
Fig. 3 Loading the INI file for「Setting Function」.
Loading an 「ini」 file which saved in the past or the system default .The system default
ini file is located in the same directory with application executable file. If no setting executed,
the setting will be according to the「」file.
Version : 4.2 Confidential
- 3 - SM32X
Configuration:(see the Fig. 4)
Fig. 4 The main frame for「Setting Function」
There are several parts in the setting main frame, all field descriptions are presented in
the Table 1.
Table 1 The field descriptions for「Setting Function」.
Main Item
Field
Disk Label
Disk Size
Disk Type
Description
For WinXP display on file explorer string (If null then its
OS default string)
Checking after flash pretest disk capacity from 16M – 4G
Setting the USB Disk type to USB-ZIP or USB-HDD ,
(USB-ZIP is removable disk ,USB-HDD is fix disk )
Enable ISP Select Selecting the downloaded ISP file name manually
Version : 4.2 Confidential
- 4 - SM32X
(default auto selecting).
Led Ready
Led Busy
Mode
Serial Number
80: plug-in led on
82: plug-in led off
Led frequency 0: quick
48 : 1 second
Choose「Memory Bar」for SM32x series.
Select「no serial number」「N bytes」or「No Update Serial」of serial numbers.
No serial number: It will not enable USB serial
number.
N bytes: It will write the serial number into UFD and
enable it.
No Update Serial: It will write the identical serial
number to UFD and enable the
USB serial number.
Serial Number
Len
Test Result LED
flash
Time Out
USB
Auto Date Mask
It will exit after timeout value if the production looping.
It will make the「Begin Serial」including the date if「Serial
Mask」existed the 『YYYY』、『MM』and『DD』between「Mask Start Pos」and「Mask End Pos」. The number of
『Y』、『M』、『D』indicated the display the number of
characters. For example: 「2006/1/12」YYYY means
『2006』and YYY means 『006』. MM means『01』and
MMM means 『001』. DD means『12』and D means『2』.
If the Date value in the「Begin Serial」is different to the
current date of production, the all『#』positions will be
reset if『Auto Date Mask』is checked.
bcdDevice
Begin serial
Mask End Pos
Set the user’s USB Device ID version (customer can
setting the version for different modal )
Set the First serial number according to「Serial Mask」.
The Date character(Y:Year , M:Month , D:Day) finished in
which one. If「Auto Date Mask」is disable, the「Mask End
The maximum length of serial number.
LED flash after production success.
Version : 4.2 Confidential
- 5 - SM32X
Pos」will be disable too. The pos value start from 1 and
end of「Serial Number Len」.
Mask Start Pos The Date character(Y:Year , M:Month , D:Day) start in
which one. If「Auto Date Mask」is disable, the「Mask Start
Pos」will be disable too. The pos value start from 1 and
end of「Serial Number Len」.
Set the USB Product ID
Set the Product Information 20 bytes
It will make the「Begin Serial」display according to the
mask. The specific character of『#』will be the increasing
serial number set. For example, if the mask showed as
『DD###』, then the「Begin Serial」will be between『DD000』and『DD999』. If「Mask Start Pos」is 1 and
「Mask End Pos」is 2 and「Auto Date Mask」 is check,
today’s Day is『12』,then the「Begin Serial」well be
between『12000』and『12999』.
Vendor Str
VID
Inquiry
Product
USB Power
Vendor
Auto capacity
Specific
Application
Support
SM321AC
Set the Vendor Information 20 bytes
Set the USB Vendor ID
Inquiry Product String 16 bytes
Setting the USB maximum power.(From 100mA to
500mA step by 100mA)
Inquiry Vendor String 8 bytes
When the option enabled, it will fit to the maximum
capacity of UFD without「Bad block over setting」
AGAND : Support AGAND downgrade production.
NR :Ignore the Fail when production.
Micron :Support Micron downgrade production.
NR :Ignore the Fail when production.
Spectek :Support Spectek downgrade production.
Half Size: Downgrade the capacity to half.
SM324BB
Half Size: Downgrade to capacity to half.
-R : Support AGAND –R downgrade
production.
It just for SM340 production. The ISP folder position.
PID
Product Str
Serial Mask
SM321BB
340
CID ISP Folder
Version : 4.2 Confidential
- 6 - SM32X
ROM File
Test Item
Copy Test
Download ISP
It just for SM340 production. The ROM file that will be
downloaded.
Doing simple read write test with percentage and patterns
Setting the pattern and looping within 「set」button.
Downloading ISP file to Flash’s into reserved memory.
The「Select ISP」option will download the ISP with
selection.
It can support turn-off MU(s) functions with:
Turn-Off Upper MU: turn off the upper half mu(s).
Turn-Off Bottom MU:turn off the bottom half mu(s).
Turn-Off Specific MU: turn off the user setting
specific mu(s).
Automatic Turn-Off MU: turn off the maximum
badblock MU.
Enable Turn-Off
MU
Format
Make Auto Run
Mixing File
Support
Preload
High level FAT16/FAT32 format.
To FAT32: format the UFD to FAT32 only.
Writing a CD-ROM image into disk
The mixing file combined with DBF , Pretest file and ISP
file. User can use the specific CMB file to production.
Downloading the files into UFD with selected folder.
FAT format: preload according to the MBR , PBR
FAT and Root directory.
Non FAT Format: preload according to the selected
image file byte by byte.
Pretest Initialize the controller and Flash with five modes:
Erase Bad Block
Erase Bad Block with 0x55.
Erase Bad Block with 0x55 and 0xAA.
Erase Good Block.
Erase Good Block with 0x55 and 0xAA.
The Bad block option used for reserved spare block to
replace when bad block marked.
Write CID
Writing the above USB、Inquiry…etc Configure
Information into CID Block.
Config HUB Function:(see the Fig. 5)
Version : 4.2 Confidential
- 7 - SM32X
Fig. 5 The 「Config HUB」function of SM32X Production Tool.
The function supports the sequence configuration for specific USB hub port. The user
can detect the error USB storage device is failed in which port.
Configuration Step:
Step 1、 In the Fig. 6, if the configuration is the first time and the device port labels existed「O」 or you want to reset the port mapping, press the『Scan USB』button without
plugging any UFD to reset the configuration.
Step 2、 Plugging the prepared USB storage device into USB hub port, the OS will install
the default device driver for this USB storage device.
Version : 4.2 Confidential
- 8 - SM32X
Fig. 6 The process of the first time to configuration in this condition.
Step 3、 According to your OS version, ran the specific USB storage device driver existed
in the 「winXP」、「Win2000」 or 「win98_factory_driver」directory, and press
the 「SMI Factory Driver」button for driver installation as Fig. 7. If you want to
remove the specific USB storage device driver, press the 「Mass Storage Driver」button in the Fig. 7. The driver will become the system default and this application
program will not support exactly.
Fig. 7 The installation for Specific USB storage device driver.
Version : 4.2 Confidential
- 9 - SM32X
Step 4、 Pressing the「Scan USB」button to setup, then the USB hub port will mapping to
each button when the label become「O」in the Fig. 8. Otherwise it will pop-up an
error message in Fig. 9.
Setup Success on Port-1 to Port-5
Fig. 8 USB Port mapping to test program success
Fig. 9 Error Message for「Not Find any device on HUB」
Version : 4.2 Confidential
- 10 - SM32X
Test Steps:
Step 1、 Plugging the prepared testing devices into the USB hub ports that configured
according to「Config HUB」function.
Step 2、 Because test program using the specific driver, so that the「Factory Driver」must be
selected, and press the「Scan USB」for device detect, the button will show the green
icon if plugged USB device and configured with「Config HUB」function. Otherwise are
not changed, the Fig. 10 presents the sub-steps for upper process and result.
3231
Fig. 10 The result of「Scan USB」using「Factory Driver」
Step 3、 After pressing the「Start」button, the program would start testing according to the test
items selected in Fig. 4. In Fig. 11, the each port presents the Red「X」and 「Pretest
Fail」in the『Status』field besides Port-1. It presents the『FAIL』message in the right-top
position because the『Port-2 to Port-5』is failed. If all ports pass the production, the right-top will
present the『OK』message.
Version : 4.2 Confidential
- 11 - SM32X
Fig. 11 the result of testing
Other Buttons and Key points:
Tools
The specific tool for mass production.(Fig. 12)
Mixing Files
Combining the selected DBF、ISP and pretest file into 「CMB」 file.
Decode CMB File
Decoding the「CMB」file into specific DBF、ISP and pretest files.
Create UDisk Image
Creating the Non-FAT format preload image.
COM Port Connect
Connecting to COM port for production controlling with 「Auto Handler」.
Version : 4.2 Confidential
- 12 - SM32X
Multiple Erase All
For multiple erase all bad block for restoring bad block.
Fig. 12 The tools function and dialog presented.
Dialog Option:
Setting the UI for『Fonts Size』、『Button Hide』、『Num of Button』and field show or hide
control for the list.(See Fig. 13 ).
Font:
Setting the font size from 12 to 28.
Button Hide:
Hiding the buttons and resizing list box into frame size.
Num of Buttons:
Setting the number of button to display.
Progress:
Version : 4.2 Confidential
- 13 - SM32X
Enable the「Progress」field in the list box or not.
Status:
Enable the「Status」field in the list box or not.
Capacity:
Enable the「Capacity」field in the list box or not .
Serial Number:
Enable the「Serial Number」field in the list box or not.
VID/PID:
Enable the「VID/PID」field in the list box or not.
Flash ID:
Enable the「Flash ID」field in the list box or not.
Bad Block:
Enable the「Bad Block」field in the list box or not.
Inquiry:
Enable the「Inquiry」field in the list box or not.
Write Protect:
Enable the「Write Protect」field in the list box or not.
Version : 4.2 Confidential
- 14 - SM32X
Fig. 13 Dialog Option Function.
Others Setting
Extra Setting(Fig. 14)
It’s used to specific application. These applications are:
uDisk Partitions:
Setting the size of Reserve Zone、Hidden Area and CDROM.
The Software USB serial number:
Used to identify the internal product. It’s not identical to USB serial number.
Preload file into Binary Area:
There is a simple file system in the ReserveZone, it can support file preload
into the reserve zone.
Security Disk Support
Version : 4.2 Confidential
- 15 - SM32X
There are two modes:
Mode-A: The Public/Security mode, just one disk display in the same
time.
Mode-C: The Public+Public/Security mode, there are two disks display in
the same time. The second disk is identical to mode-A.
Server Generating SN support
It needs the socket server to communicate with our MPTool. Just setting the
IP address and Port number, out MPTool will negotiate with the server during
production.
Enable Floppy Support
Setting the one disk become floppy, it also support floppy format to FAT12
and preload functions.
COM Communication Settings
Setting the COM port number which connected to「Auto Handler」and
Enable/Disable the COM port function.
Log file settings:
Setup the format of log file and customize information.
Enable Unique Serial Number:
If enable this function, MPTool will retrieve the serial number from this ini file
only, although used the different INI files.
Version : 4.2 Confidential
- 16 - SM32X
Fig. 14 The Extra Setting Dialog
Debug Button:
It’s for internal debugging using.
Read CID:
Press the「Button」or 「row item」of mapped USB hub port, the information for device
plugged in this port will be presented in Fig. 15. All fields are defined in Table 2.
Version : 4.2 Confidential
- 17 - SM32X
Fig. 15 The related information of CID.
Table 2 The field Descriptions of CID .
Field
VID
PID
Serial
Vendor Str
Product Str
Inquiry
Now the device USB vid string
Now the device USB pid string
Description
Now the device USB serial number
Now the device USB vendor string
Now the device USB product string
Now the device SCSI inquiry string
Version : 4.2 Confidential
- 18 - SM32X
ISP version
System CLK
IC ver
Bad Block
FLASH
DSP Version
Save Info
Card Mode
Erase CID, ISP
INI Setting
Now the device ISP version
Now the controller clock setting ,only for 320 controller clock setting.
Now the device controller hardware version
Show after pretest , bad block information
Show flash maker code 、device code、the 3rd and 4th Byte information.
The SM340 related information.
Save the FlashID、CID、WPRO、PAR、CardMode、InforBlock(s) and ISP
information into file for RD debugging.
It will display the all card mode of current plugged UFD.
Erasing the current UFD’s CID and ISP.
ISP Check sum
Read back download isp check sum
Save Badblock
It will scan the fully disk to save the all badblock.
Below item not show on setting UI , must modify「ini」file :
(1) CUSTOMER
(2) READCLK
(3) WRITECLK
(4) RESERVEZONE
The all field in「ini」file description in Table 3.
Table 3 The all field descriptions in the「INI」file.
Name
SERIALMETHOD
Bytes
1
Default
Value
0
Descript
0: USB serial number is increase
1: USB seial number is 0
2: USB serial number no update
USBMAXPOWER
1 0 0: USB Power define 100mA
1: USB Power define 200mA
2: USB Power define 300mA
3: USB Power define 400mA
4: USB Power define 500mA
- 19 - Version : 4.2 Confidential
SM32X
DISKTYPE
DISKSIZE
1
1
1
0
0: USB-HDD 1: USB-ZIP
0: No Check DiskCapacity
1: 16M ,
2: 32M ,
3: 64M ,
4: 128M
5: 256M ,
6: 512M ,
7: 1G ,
8: 2G
9: 4G
APPLICATION
1 1 0: Card Reader
1: Flash Disk
2: CardReader+FlashDisk
USB Vendor ID
USB Product ID
USB Vendor String
USB Product String
USB Serial number begin
USB Serial number end , when serial number
count to the number , program will stop
SCSI Inquiry Product String
SCSI Inquiry Vendor String
Disk Volume Label
USB bcdDevice version number
0: Auto Select ISP file download
1: Force select a ISP file download
IF DEFAULTISP equal 1 then download the
ISP File
Setting Pretest bad block range SLC must
more than 20 , MLC must more than 44
For different customer Application used.
Autorun Image file name.
Reserve data zone , size= n*1024 sector
0: when format MBR offset 0x1BE=0
VID
PID
VENDORSTR
PRODUCTSTRING
SERIALBEGIN
SERIALEND
INQUIRYSTRING
INQUIRYVENDOR
DISKLABEL
DID
DEFAULTISP
ISPFILE
BADBLOCK
CUSTOMER
AUTORUNFILE
RESERVEZONE
BOOTTYPE
Version : 4.2
4
4
20
20
20
20
16
8
32
4
1
256
1
1
256
1
1
090C
1000
1000
0
20
1
0
0
Confidential
- 20 - SM32X
1: when format MBR offset 0x1BE=0x80
PRETESTTIME
1 3 0: NO R/W
1: R/W 55
2: R/W 55 AA
3: No Erase
0:Select Default driver
1:Select Factory Driver for test
80: Plug in Led ON
82:Plug in Led OFF
Led frequency
0:disable pretest
1:enable pretest
0:disable write CID
1:enable write CID
0:disable format
1:enable format
0:disable copy compare
1:enable copy compare
0:disable download ISP
1:enable download ISP
0:disable AUTORUN
1:enable AUTORUN
0:Disable Preload
1:Enable the Preload function
Copy Compare schedule list
0:Failed if one byte different and return false
directly.
1: Failed if one byte different but compare
until finished.
CCRANDOM
CopyCmpPattern
0:Sequence write and sequence read
1:Random write and random read.
0:pattern with 0~255
1:pattern with 0
2: pattern with FF
3: pattern with 55
Version : 4.2 Confidential
EnableFactoryDriver
LEDREADY
LEDBUSY
PRETEST
WRITECID
FORMAT
COPYCOMPARE
DOWNLOADISP
MAKEAUTORUN
PRELOAD
CCSCHEDULE
CCFAILCOUNT
1
1
1
1
1
1
1
1
1
1
256
4
1
80
48
1
1
1
1
1
0
- 21 - SM32X
4: pattern with AA
5: pattern with 33
6: pattern with CC
7: pattern with 66
8: pattern with 99
9: pattern with Customize1
10: pattern with Customize2
11: pattern with Customize3
12: pattern with EF
Customize1:the customize file path
Customize2: the customize file path
Customize3: the customize file path
EndInfo
ENDHEAD32:The ENDHEAD value for
32MB flash
ENDSECTOR32:The ENDSECTOR value for
32MB flash
ENDCYLINDER32:The ENDCYLINDER
value for 32MB flash
ENDHEAD64:The ENDHEAD value for
64MB flash
ENDSECTOR64: The ENDSECTOR value
for 64MB flash
ENDCYLINDER64: The ENDCYLINDER
value for 64MB flash
ENDHEAD128:The ENDHEAD value for
128MB flash
ENDSECTOR128: The ENDSECTOR value
for 128MB flash
ENDCYLINDER128: The ENDCYLINDER
value for 128MB flash
ENDHEAD256:The ENDHEAD value for
256MB flash
ENDSECTOR256: The ENDSECTOR value
for 256MB flash
ENDCYLINDER256: The ENDCYLINDER
value for 256MB flash
Version : 4.2 Confidential
- 22 - SM32X
ENDHEAD512:The ENDHEAD value for
512MB flash
ENDSECTOR512: The ENDSECTOR value
for 512MB flash
ENDCYLINDER512: The ENDCYLINDER
value for 512MB flash
ENDHEAD1024:The ENDHEAD value for
1024MB flash
ENDSECTOR1024: The ENDSECTOR value
for 1024MB flash
ENDCYLINDER1024: The ENDCYLINDER
value for 1024MB flash
ENDHEAD2048:The ENDHEAD value for
2048MB flash
ENDSECTOR2048: The ENDSECTOR value
for 2048MB flash
ENDCYLINDER2048: The ENDCYLINDER
value for 2048MB flash
ENDHEAD4096:The ENDHEAD value for
4096MB flash
ENDSECTOR4096: The ENDSECTOR value
for 4096MB flash
ENDCYLINDER4096: The ENDCYLINDER
value for 4096MB flash
ENABLEENDCHS
0:Using the system default EndCylinder,
EndHead and EndSector
1:Using the manual setting in 「EndInfo」
The number of end info in the list
Support
production
CIDPATH
ROMPATH
PRELOADPATH
PARTIALSIZE
ENABLEPARTIAL
ISNR
Version : 4.2
256
256
256
4
1
1
For SM340 CID existed folder
For Sm340 Rom file existed path
Preload file path
For partial flash setting.
Enable the partial flash support or not.
For NR flash
ITEMCOUNT
APP3IN1=0
4
1
0 Autorun+Public+Security UFD
Confidential
- 23 - SM32X
ISMICRON
ISAGAND
FONTSIZE
NUMOFBUTTON
PROGWIDTH
STATUSWIDTH
CAPWIDTH
SNWIDTH
VIDPIDWIDTH
FLASHIDWIDTH
1
1
2
2
4
2
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
For Micron flash
For AGAND flash
The Font size value
The number of button for display
The width of Progress field
The width of Status field
The width of Capacity field
The width of Serial Number field
The width of VID/PID field
The width of Flash ID field
The width of Bad Block field
The width of Write Protect field
The width of Inquiry field
0: Hide the Progress Field
1:Show the Progress Field
0: Hide the Status Field
1:Show the Status Field
0: Hide the Capacity Field
1:Show the Capacity Field
0: Hide the Serial Number Field
1:Show the Serial Number Field
0: Hide the VID/PID Field
1:Show the VID/PID Field
0: Hide the FlashID Field
1:Show the FlashID Field
0: Hide the Bad Block Field
1:Show the Bad Block Field
0: Hide the Inquiry Field
1:Show the Inquiry Field
0: Hide the Write Protect Field
1:Show the Write Protect Field
0: Show the Button
1: Hide the Button
0: Disable auto capacity function.
BADBLOCKWIDTH
WPWIDTH
INQWIDTH
ENPROG
ENSTATUS
ENCAP
ENSN
ENVIDPID
ENFLASH
ENBADBLK
ENINQ
ENWP
BUTTONHIDE
AUTOCAPACITY
Version : 4.2 Confidential
- 24 - SM32X
1: Disable auto capacity function
SNLEN
SERIALMASK
AUTODATE
AUTODATESTART
AUTODATEEND
CLUSTERTYPE
4
20
1
2
2
1
1
Serial Number Length
The Mask of Serial number
0: Disable the auto date in the mask
1: Enable the auto date in the mask
The start position of Date in serial mask
The end position of date in serial mask.
If the value is 1 for normal Cluster size, if set
to 0, SONY FAT32 over 4GB will fit to 32KB
cluster size.
DISABLEK9F2GFORCEID
MSC
1
1
0
1
0:Enable the K9F2G A-Dye 2Plane mode.
1:Disable the K9F2G A-Dye 2Plane mode.
0: Disable SM321BB support Case 13 but
enable the AutoRun function.
1: Enable SM321BB support Case 13 but
disable the autorun function.
0: Disable automatic install/Uninstall factory
driver
1: Enable automatic install/Uninstall factory
driver.
ENABLEFINGERPRINTCHECK
1 0
Version : 4.2 Confidential
- 25 -
发布者:admin,转转请注明出处:http://www.yc00.com/xiaochengxu/1687752388a39372.html
评论列表(0条)