DYNA-SM32X
USB2.0 flash media controller
USB TEST PROGRAM
Version3.0
SM32X
Introduce:
The program is for SMI SM32Xs 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
Environment Setup:
Setting Function:(see the Fig. 1)
Version : 4.2
Confidential
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 SettingFunction.
The system default password is320. The wrong password led user to edit
theBegin SerialandEnd Serialfields only.
Version : 4.2
Loading the INI File:(see the Fig. 3)
Confidential
SM32X
Fig. 3 Loading the INI file forSetting 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 thedefault.inifile.
Version : 4.2
Confidential
SM32X
Configuration:(see the Fig. 4)
Fig. 4 The main frame forSetting Function
There are several parts in the setting main frame, all field descriptions are
presented in the Table 1.
Table 1 The field descriptions forSetting Function.
Main
Item
Version : 4.2
Field
Description
Disk Label
For WinXP display on file explorer string (If null
then its OS default string)
Disk Size
Checking after flash pretest disk capacity from
16M 4G
Disk Type
Setting the USB Disk type to USB-ZIP or USBConfidential
SM32X
HDD , (USB-ZIP is removable disk ,USB-HDD is fix
disk )
USB
Version : 4.2
Enable ISP
Select
Selecting the downloaded ISP file name manually
(default auto selecting).
Led Ready
80: plug-in led on
82: plug-in led off
Led Busy
Led frequency 0: quick
48 : 1 second
Mode
ChooseMemory Barfor SM32x series.
Serial Number
Selectno serial number
N bytesorNo Update
Serialof 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
The maximum length of serial number.
Test Result LED
flash
LED flash after production success.
Time Out
It will exit after timeout value if the production
looping.
Auto Date Mask
It will make theBegin Serialincluding the date
if Serial Maskexisted the YYYY
MMandDDbetweenMask Start PosandMask
End Pos. The number ofY
M
Dindicated
the display the number of characters. For
example: 2006/1/12YYYY means 2006and
YYY means006. MM means01and MMM means
001. DD means12and D means2.
If the Date value in theBegin Serialis different to
the current date of production, the all#positions
will be reset ifAuto Date Maskis checked.
Confidential
SM32X
Inquiry
Specific
Applicati
on
Support
Version : 4.2
bcdDevice
Set the users USB Device ID version (customer
can setting the version for different modal )
Begin serial
Set the First serial number according toSerial
Mask.
Mask End Pos
The Date character(Y:Year , M:Month , D:Day)
finished in which one. IfAuto Date Maskis
disable, theMask End Poswill be disable too. The
pos value start from 1 and end ofSerial Number
Len.
Mask Start Pos
The Date character(Y:Year , M:Month , D:Day) start
in which one. IfAuto Date Maskis disable,
the Mask Start Poswill be disable too. The pos
value start from 1 and end ofSerial Number Len.
PID
Set the USB Product ID
Product Str
Set the Product Information 20 bytes
Serial Mask
It will make theBegin Serialdisplay according to
the mask. The specific character of#will be the
increasing serial number set. For example, if the
mask showed as DD###, then theBegin
Serial will be betweenDD000andDD999.
If Mask Start Posis 1 and Mask End Posis 2
and Auto Date Mask is check, todays Day
is 12 ,then theBegin Serialwell be
between 12000and12999.
Vendor Str
Set the Vendor Information 20 bytes
VID
Set the USB Vendor ID
Product
Inquiry Product String 16 bytes
USB Power
Setting the USB maximum power.(From 100mA to
500mA step by 100mA)
Vendor
Inquiry Vendor String 8 bytes
Auto capacity
When the option enabled, it will fit to the
maximum capacity of UFD withoutBad block over
setting
SM321AC
AGAND : Support AGAND downgrade
production.
Confidential
SM32X
SM321BB
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.
340
Test Item
SM324BB
Half Size: Downgrade to capacity to half.
-R
: Support AGAND R downgrade
production.
CID ISP Folder
It just for SM340 production. The ISP folder
position.
ROM File
It just for SM340 production. The ROM file that will
be downloaded.
Copy Test
Doing simple read write test with percentage and
patterns
Setting the pattern and looping within
setbutton.
Version : 4.2
Download ISP
Downloading ISP file to Flashs into reserved
memory. TheSelect ISPoption will download the
ISP with selection.
Enable Turn-Off
MU
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.
Format
High level FAT16/FAT32 format.
To FAT32: format the UFD to FAT32 only.
Make Auto Run
Writing a CD-ROM image into disk
Mixing File
Support
The mixing file combined with DBF , Pretest file
and ISP file. User can use the specific CMB file to
Confidential
SM32X
production.
Preload
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 USBInquiryetc Configure
Information into CID Block.
Config HUB Function:(see the Fig. 5)
Version : 4.2
Confidential
SM32X
Fig. 5 The Config HUBfunction 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 1In 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 2Plugging 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
10
SM32X
Fig. 6 The process of the first time to configuration in this condition.
Step 3According to your OS version, ran the specific USB storage device
driver existed in the
or
winXP Win2000
win98_factory_driver directory, and press the SMI Factory
Driverbutton 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
11
SM32X
Step 4Pressing 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.
Fig. 8 USB Port mapping to test program success
Fig. 9 Error Message forNot Find any device on HUB
Version : 4.2
Confidential
12
SM32X
Test Steps:
Step 1 Plugging the prepared testing devices into the USB hub ports that
configured according toConfig HUBfunction.
Step 2 Because test program using the specific driver, so that the Factory
Drivermust be selected, and press theScan USBfor device detect, the
button will show the green icon if plugged USB device and configured
withConfig HUBfunction. Otherwise are not changed, the Fig. 10 presents
the sub-steps for upper process and result.
Fig. 10 The result ofScan USBusingFactory 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 RedXandPretest Failin theStatusfield besides Port-1. It
presents theFAILmessage in the right-top position because the Port-2 to
Port-5is failed. If all ports pass the production, the right-top will present theOKmessage.
Version : 4.2
Confidential
13
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 DBFISP and pretest file into CMB file.
Decode CMB File
Decoding theCMBfile into specific DBFISP 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
14
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 forFonts SizeButton HideNum of Buttonand 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.
Version : 4.2
Progress:
Confidential
15
SM32X
Enable theProgressfield in the list box or not.
Status:
Enable theStatusfield in the list box or not.
Capacity:
Enable theCapacityfield in the list box or not .
Serial Number:
Enable theSerial Numberfield in the list box or not.
VID/PID:
Enable theVID/PIDfield in the list box or not.
Flash ID:
Enable theFlash IDfield in the list box or not.
Bad Block:
Enable theBad Blockfield in the list box or not.
Inquiry:
Enable theInquiryfield in the list box or not.
Write Protect:
Enable theWrite Protectfield in the list box or not.
Version : 4.2
Confidential
16
SM32X
Fig. 13 Dialog Option Function.
Others Setting
Extra Setting(Fig. 14)
Its used to specific application. These applications are:
uDisk Partitions:
The Software USB serial number:
Used to identify the internal product. Its not identical to USB serial
number.
Preload file into Binary Area:
Version : 4.2
Setting the size of Reserve ZoneHidden Area and CDROM.
There is a simple file system in the ReserveZone, it can support file
preload into the reserve zone.
Confidential
17
SM32X
Security Disk 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.
Setting the one disk become floppy, it also support floppy format to
FAT12 and preload functions.
Setting the COM port number which connected to Auto
Handler and Enable/Disable the COM port function.
Setup the format of log file and customize information.
Enable Unique Serial Number:
Version : 4.2
Mode-C: The Public+Public/Security mode, there are two disks
display in the same time. The second disk is identical to modeA.
Log file settings:
COM Communication Settings
Mode-A: The Public/Security mode, just one disk display in the
same time.
Enable Floppy Support
Server Generating SN support
There are two modes:
If enable this function, MPTool will retrieve the serial number from
this ini file only, although used the different INI files.
Confidential
18
SM32X
Fig. 14 The Extra Setting Dialog
Debug Button:
Its for internal debugging using.
Read CID:
Press theButtonor row itemof 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
19
SM32X
Fig. 15 The related information of CID.
Table 2 The field Descriptions of CID .
Field
Description
VID
Now the device USB vid string
PID
Now the device USB pid string
Serial
Now the device USB serial number
Vendor Str
Now the device USB vendor string
Product Str
Now the device USB product string
Inquiry
Now the device SCSI inquiry string
Version : 4.2
Confidential
20
SM32X
ISP version
Now the device ISP version
System CLK
Now the controller clock setting ,only for 320 controller clock setting.
IC ver
Now the device controller hardware version
Bad Block
Show after pretest , bad block information
ISP Check sum
Read back download isp check sum
FLASH
Show flash maker code device codethe 3rd and 4th Byte information.
DSP Version
The SM340 related information.
Save Badblock
It will scan the fully disk to save the all badblock.
Save Info
Save the FlashIDCIDWPROPARCardModeInforBlock(s) and ISP
information into file for RD debugging.
Card Mode
It will display the all card mode of current plugged UFD.
Erase CID, ISP
Erasing the current UFDs CID and ISP.
INI Setting
Below item not show on setting UI , must modifyinifile :
(1) CUSTOMER
(2) READCLK
(3) WRITECLK
(4) RESERVEZONE
The all field ininifile description in Table 3.
Table 3 The all field descriptions in theINIfile.
Name
Bytes
Default
Value
SERIALMETHOD
0: USB serial number is increase
1: USB seial number is 0
2: USB serial number no update
USBMAXPOWER
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
Version : 4.2
Confidential
Descript
21
SM32X
DISKTYPE
0: USB-HDD 1: USB-ZIP
DISKSIZE
0: No Check DiskCapacity
1: 16M ,
2: 32M ,
3: 64M ,
4: 128M
5: 256M ,
6: 512M ,
7: 1G ,
8: 2G
9: 4G
APPLICATION
0: Card Reader
1: Flash Disk
2: CardReader+FlashDisk
VID
090C
USB Vendor ID
PID
1000
USB Product ID
VENDORSTR
20
USB Vendor String
PRODUCTSTRING
20
USB Product String
SERIALBEGIN
20
USB Serial number begin
SERIALEND
20
USB Serial number end , when serial number
count to the number , program will stop
INQUIRYSTRING
16
SCSI Inquiry Product String
INQUIRYVENDOR
SCSI Inquiry Vendor String
DISKLABEL
32
Disk Volume Label
DID
1000
DEFAULTISP
ISPFILE
256
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
BADBLOCK
20
Setting Pretest bad block range SLC must
more than 20 , MLC must more than 44
CUSTOMER
For different customer Application used.
AUTORUNFILE
256
RESERVEZONE
Reserve data zone , size= n*1024 sector
BOOTTYPE
0: when format MBR offset 0x1BE=0
Version : 4.2
Autorun Image file name.
Confidential
22
SM32X
1: when format MBR offset 0x1BE=0x80
PRETESTTIME
0: NO R/W
1: R/W 55
2: R/W 55 AA
3: No Erase
EnableFactoryDriver
0:Select Default driver
1:Select Factory Driver for test
LEDREADY
80
80: Plug in Led ON
82:Plug in Led OFF
LEDBUSY
48
Led frequency
PRETEST
0:disable pretest
1:enable pretest
WRITECID
0:disable write CID
1:enable write CID
FORMAT
0:disable format
1:enable format
COPYCOMPARE
0:disable copy compare
1:enable copy compare
DOWNLOADISP
0:disable download ISP
1:enable download ISP
MAKEAUTORUN
0:disable AUTORUN
1:enable AUTORUN
PRELOAD
CCSCHEDULE
256
CCFAILCOUNT
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
0:Sequence write and sequence read
1:Random write and random read.
CopyCmpPattern
0:pattern with 0~255
1:pattern with 0
2: pattern with FF
3: pattern with 55
Version : 4.2
Confidential
23
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
24
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
ITEMCOUNT
APP3IN1=0
The number of end info in the list
0
Support
Autorun+Public+Security
production
CIDPATH
256
For SM340 CID existed folder
ROMPATH
256
For Sm340 Rom file existed path
PRELOADPATH
256
Preload file path
PARTIALSIZE
For partial flash setting.
ENABLEPARTIAL
Enable the partial flash support or not.
ISNR
For NR flash
Version : 4.2
Confidential
25
UFD
SM32X
ISMICRON
For Micron flash
ISAGAND
For AGAND flash
FONTSIZE
The Font size value
NUMOFBUTTON
The number of button for display
PROGWIDTH
The width of Progress field
STATUSWIDTH
The width of Status field
CAPWIDTH
The width of Capacity field
SNWIDTH
The width of Serial Number field
VIDPIDWIDTH
The width of VID/PID field
FLASHIDWIDTH
The width of Flash ID field
BADBLOCKWIDTH
The width of Bad Block field
WPWIDTH
The width of Write Protect field
INQWIDTH
The width of Inquiry field
ENPROG
0: Hide the Progress Field
1:Show the Progress Field
ENSTATUS
0: Hide the Status Field
1:Show the Status Field
ENCAP
0: Hide the Capacity Field
1:Show the Capacity Field
ENSN
0: Hide the Serial Number Field
1:Show the Serial Number Field
ENVIDPID
0: Hide the VID/PID Field
1:Show the VID/PID Field
ENFLASH
0: Hide the FlashID Field
1:Show the FlashID Field
ENBADBLK
0: Hide the Bad Block Field
1:Show the Bad Block Field
ENINQ
0: Hide the Inquiry Field
1:Show the Inquiry Field
ENWP
0: Hide the Write Protect Field
1:Show the Write Protect Field
BUTTONHIDE
0: Show the Button
1: Hide the Button
AUTOCAPACITY
0: Disable auto capacity function.
Version : 4.2
Confidential
26
SM32X
1: Disable auto capacity function
SNLEN
Serial Number Length
SERIALMASK
20
The Mask of Serial number
AUTODATE
0: Disable the auto date in the mask
1: Enable the auto date in the mask
AUTODATESTART
The start position of Date in serial mask
AUTODATEEND
The end position of date in serial mask.
CLUSTERTYPE
If the value is 1 for normal Cluster size, if set
to 0, SONY FAT32 over 4GB will fit to 32KB
cluster size.
DISABLEK9F2GFORCEID
0:Enable the K9F2G A-Dye 2Plane mode.
1:Disable the K9F2G A-Dye 2Plane mode.
MSC
0: Disable SM321BB support Case 13 but
enable the AutoRun function.
1: Enable SM321BB support Case 13 but
disable the autorun function.
ENABLEFINGERPRINTCHECK
0: Disable automatic install/Uninstall factory
driver
1: Enable automatic install/Uninstall factory
driver.
Version : 4.2
Confidential
27