Holtek e-WriterPro Users Guide (1252)
Holtek e-WriterPro Users Guide (1252)
Table of Contents
Chapter 1 Introduction to the Writer and Installation........................................ 5
Installation.....................................................................................................................................5
Hardware Configuration................................................................................................................9
Installation
System Requirement
To use the writer the following device and system are required:
• Power: the external power in Off-Line Mode is depicted as table 1-1
Writer
e-WriterPro Remark
Connector
Using a power adapter with 5V output voltage and at least
USB Connector Supported 500mA output current. It is suggested to use the power adapter
supplied by Holtek.
Table 1-1
Package Contents
Fig. 1-1
Hardware Installation
Connect the e-WriterPro to the PC USB port using the USB cable, as shown in Fig. 1-2.
USB Cable
Fig. 1-2
Software Installation
• Step 1
Execute the HOPE3000 installing program “HOPE3000V3.27.5Build20190624Install”. As
the version and release date of the supplied software may be different from this, use the latest
version.
• Step 2
Installation Welcome Window (Fig. 1-3), click the Next button.
Fig. 1-3
• Step 3
Specify the HOPE3000 path (Fig. 1-4). It is suggested to use the default path, then click the Next
button.
Fig. 1-4
• Step 4
Specify the path of the program’s shortcuts (Fig. 1-5). It is suggested to use the default path, then
click the Next button.
Fig. 1-5
• Step 5
Select the option to generate a desktop shorcut (Fig. 1-6). Then click the Next button.
Fig. 1-6
• Step 6
Check the installation details and then click the Install button to start the installation (Fig. 1-7).
Fig. 1-7
• Step 7
Finish installation. Click the Finish button to exit installation process (Fig. 1-8).
Fig. 1-8
Hardware Configuration
The name of each writer hardware section is shown in Fig. 1-9 (e-WriterPro). Table 1-3 explains
each item in this figure.
Programing
Adapter Connector
LCD
Status
LED
Function Key
Programming Key
e-WriterPro Front
Fig. 1-9
Item Explanation
Programming Adapter Connector Programming Pins
OK Normal Status LED
Ready/Busy Ready or Busy Status
Fail Fail Status LED
Programming Key Off-Line Mode Programming Key
Connect to PC via USB cable (On-Line mode) or
USB Connector
Connect to 5V power adapter (Off-Line mode)
LCD Displays information and to set the writer functions
Function Key Switch LED pages and to set the writer functions
CN3 Connector External control signal interface, refer to Appendix D
Ground Connector Connector for ground wire
Table 1-3
Fig. 2-1
• Step 2
As shown in Fig. 2-2, select the file type (OTP, MTP or PND) firstly (Action 1), then select the
file to open (Action 2). Finally click the button of Action 3.
Fig. 2-2
• Step 3
Then download the opened file to the writer (Menu\File\Download) as shown in Fig. 2-3.
Fig. 2-3
Fig. 2-4
• Step 4
After downloading, if successful, the lower message box will display “Complete and OK” (Fig.
2-5). Then programing can be executed by clicking the buttons “Blank Check”, “Program”,
“Verify”, “Lock” (if locking IC is required) as shown in Fig. 2-5. In addition, the data in the
Flash Memory can be cleared by clicking the button “Erase” if a Flash MCU is used.
For any problems, refer to Chapter 3 “Introduction to the HOPE3000 Main Functions”. For errors
that have occurred during programming, refer to Appendix A “System and Writer Error Messages”
for further information.
Fig. 2-5
Fig. 2-6
Fig. 2-7
• Step 6
If the download operation has been successful the button “Auto” on the lower right corner of Fig.
2-7 will be shown. By clicking on this button all the selected programming operations will be
executed.
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions” or Chapter 4
“Introduction to HOPE3000 Smart Programming Function”. For errors that have occurred during
programming, refer to Appendix A “System and Writer Error Messages” for further information.
Fig. 2-8
• Step 6
Select the “Map” mode as shown in Fig. 2-9 (Action 1) then the ROM range selection section
will appear on the left side of the window. Then click the button “Add Select” (Action 2) and
specify the programming section (Action 3). Finally click the button “OK” (Action 4) to store
these settings and quit this window.
Fig. 2-9
• Step 7
Repeat Step 5~6 to add the programming operations “Erase”, “Blank Check”, “Verify” or
“Lock” as shown in Fig. 2-10. Download these settings to the writer (Action 1), if the download
operation has been successful, the button “Auto” will be shown. Then click this button (Action 2)
to execute the specified operations. Thereafter, each programming operation is implemented by a
single click on the button “Auto”.
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions” or Chapter 4
“Introduction to HOPE3000 Smart Programming Function”. For errors that have occurred during
programming, refer to Appendix A “System and Writer Error Messages” for further information.
Fig. 2-10
Fig. 2-11
Fig. 2-12
• Step 7
Download these settings to the writer as shown in Action 1 in Fig. 2-13. The first data record
to program is shown in Rectangle 3. Then click the button “Auto” (Action 2) to program. Each
programming operation is implemented by a single click. After each programming operation, the
record of the next data to program will be shown in Rectangle 3.
Fig. 2-13
In addition, users can also set the user specified data when setting the partial programming
operation in Case. 3.
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions” or Chapter 4
“Introduction to HOPE3000 Smart Programming Function”. For errors that have occurred during
programming, refer to Appendix A “System and Writer Error Messages” for further information.
• Step 1
Execute the command “Menu/File/Select IC and Process” as shown in Fig. 2-14.
Fig. 2-14
• Step 2
The dialog “IC Select” will then pop up. Select the required IC type from the “From All IC”
section as shown in Fig. 2-15 and click the button “OK” to quit this window.
Fig. 2-15
Fig. 2-16
• Step 3
Then the HOPE3000 will download the driver for that IC type to the writer. If successful, then
parts of the buttons in the “Process” section will be enabled as shown in Fig. 2-17. Now the “Read”
button can be clicked to read data from the IC directly. Then execute the command “Menu/File/
Upload” to upload and show the data on the HOPE3000.
Fig. 2-17
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions”. If any errors
have occurred during programming, refer to Appendix A “System and Writer Error Messages” for
further information.
Fig. 2-18
• Step 3
Enter the command: \>wcmd/? and press the Enter key to open a simple instruction as shown in
the red rectangle in Fig. 2-19. Then enter the command following the instruction.
Fig. 2-19
For any problems regarding the DOS Command Mode, refer to Chapter 5 “Introduction to
HOPE3000 – DOS Command Mode”. For errors that have occurred during programming, refer to
Appendix A “System and Writer Error Messages” for further information.
Fig. 2-20
• Step 2
Fig. 2-21 is the F/W update window. Click the “Start” button to start the F/W update.
Fig. 2-21
• Step 3
If the writer is connected, then the F/W update process starts.
Fig. 2-22
※ If the window, as shown in Fig. 2-23, appears after clicking “Start”, it means that the F/W
version is the same as or newer than the one in the HOPE3000. It is therefore suggested not to
update as it might update to an older F/W version.
Fig. 2-23
• Step 4
If the update has been successful, the F/W update window will show “Update Firmware OK” (Fig.
2-24). Then the HOPE3000 will power on the writer automatically and after it is connected, the
updated F/W version will be shown on the right lower corner as shown in Fig. 2-24.
Fig. 2-24
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions”. For errors
that have occurred during programming refer to Appendix A “System and Writer Error Messages”
for further information.
Fig. 2-25
• Step 2
Fig. 2-26 shows the “Writer Activation” window. The red rectangle shows the detected Writer ID.
Click the button “Get Register Code” to register this writer. If the registration code has already
been obtained, then jump to Step 6 to activate the writer.
Fig. 2-26
• Step 3
Fig. 2-27 is the registration sheet, where the * sign shows the necessary field. In the E-mail field,
fill in a valid e-mil address to obtain a mail containing the registration code. Do not enter other
person’s mail address to prevent misuse of the registration code. The other fields should also
be properly filled in for our after-sales service. Users’ information will be protected by Holtek.
When it is finished, click the button “Submit”.
Fig. 2-27
• Step 4
If the registration is successful, the dialog as shown in Fig. 2-28 will appear after which a
registration mail will be sent to the provided mail address. If the registration fails, try Step 3
again. If it still can not be registered successfully, contact Holtek to resolve the problem.
Fig. 2-28
• Step 5
If the specified email address is correct, then an email will be received from Holtek with the title
“Holtek Tools Registery Key”.
Fig. 2-29
After opening the mail the registration code will be seen as shown in the red rectangle in Fig. 2-30
(the figure only shows part of the full registration mail).
Fig. 2-30
• Step 6
Fill in the registration code in the “Writer Activation” window of the HOPE3000 (red rectangle 1
in Fig. 2-31) and click the button “Register” to activate the writer.
Fig. 2-31
• Step 7
If the activation is successful, then a success message will appear as shown in Fig. 2-32. After
this, the writer is now ready for programming. If the activation fails, check that the registration
code has been entered correctly in Step 6 or try again from Step 1. If the problem can not be
resolved then contact Holtek to resolve the problem.
Fig. 2-32
For any problems refer to Chapter 3 “Introduction to the HOPE3000 Main Functions”. For any
errors have occurred during the registration or activation, refer to Appendix A “System and Writer
Error Messages” for further information.
Fig. 2-33
Picture:
Fig. 2-34
Fig. 2-35
※ If the programming result is required, refer to Appendix D “e-WriterPro CN3 Pin Definitions” to
connect to the corresponding BIN1~BIN7 pins. Then follow Step 3 of the following “Usage &
Control Signal Timing” section to obtain the programming result.
Fig. 2-36
T1: e-WriterPro “External Trigger” low pulse, 10ms < T1 < 500ms
T2: e-WriterPro “End Of Program” low pulse, 12ms < T2 < 100ms
The usage is as follows:
1) Input a low pulse on the EXTG pin to start programming as shown by T1 in Fig. 2-36. This
operation is the same as pushing the red programming key on the e-WriterPro.
2) Then the EOP pin can be polled continuously. If a low pulse is detected, as shown by T2 in Fig.
2-36, this means that the programming is finished.
3) During the EOP low pulse as shown by T2 in Fig. 2-36, check the status of BIN1~BIN7 to
obtain the programming result. For example, if BIN1 is low during T2, this means Program OK.
However if BIN4 is low during T2, this means Program Fail because the device is not blank.
Fig. 2-37
• Step 4
After the download has finished, the Erase, Program and Varify operations, etc., can be executed.
If there is any problem, refer to Chapter 3 “Introduction to the HOPE3000 Main Functions” and
Appendix C “e-WriterPro ICP Pin Definitions and ICP Considerations” for more information.
Fig. 2-38
• Step 2
After the Step 1 is executed, a window as shown in Fig. 2-39 will pop up. Click “Start” to update
F/W.
Fig. 2-39
• Step 3
Execute “Menu/File/Open or Open and Download” as shown in Fig. 2-40.
Fig. 2-40
• Step 4
After the Step 3 is executed, a window as shown in Fig. 2-41 will pop up.
A: Programming Setting. It includes “Custom MCU Name”, “Restrict burn times” (max. 130000)
and the available programming operations.
B: Set Password. The password should contain six discrete digits.
C: Click “Set Writer” then the setting is now finished.
Note: After setting the writer an information record docoment – “InformationForSN.dat” will be
generated, which is used together with a specific software to generate a programming times
recharge document. This specific software is provided independently, contract Holtek for
the software if required.
Fig. 2-41
Menu Section
File Menu
Fig. 3-2 shows the File Menu commands.
Fig. 3-2
• Open
Open the programming file. After executing this command, the program switches its UI to the
proper file type. It supports the following file types:
OTP – OTP MCU
MTP – Flash MCU
PND – MCU with SPI Flash
APF – Advanced Programming File, reserved for future programming functions
R36 – Programming file for the HT81R36
• Open and Download
Open the programming file and download it to writer.
• Select IC and Process
Using this command allows programming operations by only selecting the required IC type
without first opening any programming file.
• Download
Download the opened programming file to the writer.
• Upload
Upload the data in the writer, which includes the programming file, to the HOPE3000 and save it.
• Save
Save the data in the HOPE3000 UI as a file which will replace the original file.
• Save As
Save the data in the HOPE3000 UI as a file with a different name.
• Export to HEX File
Save the data in the HOPE3000 as an Intel standard HEX file.
• Exit
Exit the HOPE3000 program.
Language Menu
It is used to change the UI language. Supported languages include Traditional Chinese/Simplified
Chinese/English as shown in Fig. 3-3. After selecting, the UI language is changed immediately.
Fig. 3-3
Setting Menu
There are several setting items available as shown in Fig. 3-4.
Fig. 3-4
Tool Menu
Fig. 3-5 shows the Tool Menu commands.
Fig. 3-5
• F/W Update
Update the firmware of the writer.
• Activate Writer
Register the newly pachased writer. The writer can not be used until is is activated.
• Code Edit
Modify the programming file original data. When using this function, users do not need to return
to the HOPE3000 to compile again to modify parts of data. The data can be modified in this
window and then click “OK”.
※ After modification, it is necessary to execute “Menu/File/Download” to download the
modified data to the writer.
• Read locked IC’s checksum
Obtain the locked IC’s checksum and varify code when the IC is locked.
• Option Viewer
Preview the MCU configuration options, etc. The premise is that the HT-IDE3000 has been
installed.
Help Menu
Fig. 3-6 shows the Help Menu commands.
Fig. 3-6
Fig. 3-7
Fig. 3-8
Fig. 3-9
IC Information Section
As can see in Fig. 3-10, there are two parts: Driver and Checksum.
• Driver
Show the driver type and version. The driver type is the IC type in the opened file or selected in
the command “Menu/File/Select IC and Process”. For example, in Fig. 3-10, the driver type is
HT66F50 and the driver version is 1.0. In addition, before downloading the programming file to
the writer, check whether the driver type is the same as the IC to be programmed.
※ The IC driver information is recorded and each IC type has its own driver. When downloading,
the driver and the programming file are downloaded at the same time.
• Checksum
The checksum of the ROM section data. There three ways to calculate the checksum of the ROM
section Data:
“Program” calculates the checksum of the Program section.
“Program + Option” calculates the checksum of the Program and Option sections.
“Program + Option + Data” calculates the checksum of the Program, Option and Data sections.
※ This checksum is not the OTP/MTP/PND file checksum.
The BootLoader option is used to select whether the checksum calculation includes the
BootLoader code. This option is only available if the IC contains this function and its
programming file includes the BootLoader code.
The “PreV1.04 Algorithm (No suggest)” option should remain unselected in order to maintain
the latest checksum algorithm.
※ The algorithm before V1.04 calculates all the data in the specified ROM area. However, for
the algorithm of V1.04 or later, i.e., the latest algorithm, the TRIM area, where the HIRC/LVR
calibration and other values are stored, is not included in the checksum calculation. As the values
in the TRIM area of each IC may be different, after reading the IC information the checksum
displayed on the HOPE3000 may also be different. In order to facilitate users to check whether
the IC data has been programmed correctly, the TRIM area is excluded in the calculation.
Fig. 3-10
Fig. 3-11
• BlankCheck
Check if the IC in the writer has been programmed which is to check if the IC is empty. The
result is displayed in the Message Box.
• Program
Program the data in the writer to the IC. This operation contains “Verify” function when it is
executed. A “Verify” operation can also be executed later as a double check.
• Verify
Check if the data in the IC is the same as that in the writer. The result is displayed in the Message
Box.
• Lock
Lock IC to prevent the data in the IC from being read out. This function is used to protect the
IC data. Usually after executing the “Program” operation, the “Lock” function would be used to
protect the IC data.
• Erase
Erase the data in the IC to make a blank IC. Currently only Flash type MCUs support this
operation.
• Read
Read the data in the IC to the writer. After this operation, the command “Menu/File/Upload” can
be executed to upload the data to the HOPE3000 for observation.
※ After the “Read” operation has been executed successfully, the data in the writer is different
from that in the HOPE3000. In this condition, any programming operations are not allowed
which means the buttons in the “Process” area are all disabled until the command “Menu/File/
Download” is executed.
• Smart Programming
Start the “Smart Programming” UI. For details refer to Chapter 4 “Introduction to HOPE3000 –
Smart Programming Function”.
• Auto Upload After Read
If this option is selected, an “Upload” operation is executed automatically after executing the
“Read” operation.
• Auto Erase Before Program
Select this to “Erase” before “Program”. Currently only Flash type MCUs supports this option.
• Check ID
Select this to check if the IC type in the writer is the same as that in the opened programming file.
It facilitates users to check if the IC on the adapter or the opened file is correct. Only OTP type
MCUs support this option.
Other Functions
• From All IC
Select from all the supported IC types.
Fig. 3-12
Fig. 4-1
IC Information Section
The IC Information section, as shown by the rectangle in Fig. 4-2, is divided into the following three
items:
• Driver
This is the same as the field “Driver” on the HOPE3000 Main UI. It is the IC type in the opened
programming file or selected using the command “Menu\File\Select IC and Process”.
• Next User Specified Data
This area shows the value of the user specified data to program. It can show three groups at the
most using the “User Specified Data” dialog.
• Counter
This is the same as the field “Counter” on the HOPE3000 Main UI. It shows the successful, failed
and total counts. Clicking the button “Reset” will clear these three values to zero.
Fig. 4-2
Fig. 4-3
• Reset All
Restore all the settings on the Smart Programming UI to the default settings.
• Load Config
Load the Smart Programming Configuration file (.SPC).
• Save Config
Save all the settings on the Smart Programming UI in the programming file (.SPC).
• Set Writer
Download the settings on the Smart Programming UI to the writer.
• Auto
Execute the programming operations set on the Smart Programming UI.
• Quit
Quit the Smart Programming UI and return to the HOPE3000 Main UI.
Fig. 4-4
On the left side, the “Available Programming Operations” list lists all the supported operations.
On the right side, the “Required Programming Operations” list lists all the selected operations.
Clicking the button “----->” will add the the required operation from the left list to the right list
and clicking the button “<------” will remove the selected operation from the right list.
• Programming Operation Detail Setting
This part is used to set the detailed setting for each programming operation. After selecting
any operation from the “Required Programming Operation” list in Fig. 4-4, the corresponding
detailed settings will appear in the “Operation Setting” area on the lower side. The following
explains each setting:
♦♦ “Program”, “Option”, “Data” and “Voice”
These setting items appear when selecting the “Erase”, “Blank Check”, “Program”, “Verify”
and “Lock” operations. Select the programming range of the Program, Option, Data and Voice
areas. Only the Program and Voice options support partial range selection. After clicking the
button “Select…”, the programming range setting window will pop up (Fig. 4-6) If any ROM
setting on the UI is disabled, such as Voice as shown in Fig.4-4, it means that the IC has no
ROM area for this item.
For more details refer to the “Programming Range Select Window” setion in this chapter.
♦♦ “User Specified Data”
This setting item appears when the “User Specified Data” operation is selected. After clicking
the button “Setting”, the “User Specified Data Setting Window” will pop up, as shown in Fig. 4-9.
For more details refer to the “User Specified Data Setting Window” section in this chapter.
Fig. 4-5
Mode Select
Range Unit
Commands
Range Setting
OK/Cancel the
Setting
Fig. 4-6
• Range Unit
Select the unit of the address in the “Range Setting”. According to the characteristic of the ROM
section, there are two kinds of unit: Word (Program ROM) or Byte (Voice ROM).
• Commands
“Add” — add a programming section in the “Range Setting”
“Remove” — remove a programming section from the “Range Setting”
“Clear” — clear all the programming sections in the “Range Setting”
• Range Setting
It lists all the programming sections. Clicking the “Start Addr” and “End Addr” fields to edit the
start and end addresses of each section.
• OK/Cancel the Setting
“OK” — store the specified sections and then return to the Smart Programming UI
“Cancel” — cancel the settings and then return to the Smart Programming UI
Mode Select
Range Unit
Commands
Range Setting
OK/Cancel the
Setting
Fig. 4-7
• Range Unit
Select the unit of each grid in the “Range Setting”. According to the characteristic of the ROM
section, there are five kinds of unit: Page (256 Words) for the Program ROM and 1K, 2K, 4K, 8K
Bytes for the Voice ROM. As for the Data ROM (Flash), its unit is 64K Bytes.
※ When the operation is “Lock”, each grid is composed of several pages. As shown in Fig.
4-8, the red selection represents to select from page 0 to 7 and the total amount is 8 pages. In
addition, there is no “List Mode” for the “Lock” operation.
• Range Setting
It lists all the programming ranges. The red range represents the selected programming range.
• Commands
“Add Select” — After clicking it, the range selected in the “Range Setting” will be added to the
programming ranges.
“Delete Select” — After clicking it, the range selected in the “Range Setting” will be removed
from the programming ranges.
“Select All” — Select all the programming ranges in the “Range Setting”.
“Delect All” — Delect all the programming ranges in the “Range Setting”.
Fig. 4-8
Fig. 4-9
The following introduces the definitions and how to use these settings. As shown in Fig. 4-10, each
group of setting is divided into a left and a right part. The left part is used to set the form, length and
address of the data in the Program Memory section and the right part is used to set the data source.
The details are shown below.
Fig. 4-10
BCD – Byte → The data is written to each low byte in a BCD encoded form starting from the
specified address until the data length boundary is reached.
BCD – Word → The data is written to each word in a BCD encoded form starting from the
specified address until the data length boundary is reached.
※ The “Binary – Word” and “BCD – Word” forms are not supported for the MCUs whose ROM
bit width is less than 2 bytes (16 bits).
• Offset
The start address of the ROM section where the data is written to.
• Length
This is the length of the data. There are four options: 1, 2, 3 and 4 bytes. Any data with a length
longer than the specified length will be discarded. For example, a preloaded data is 12345678H
but with a specified data length of 3 bytes, only 345678H will be valid for this data record.
• Check Empty
First check if the programming range is empty before programming this data record. If not empty,
an error message will be shown during the programming.
The following shows two pratical setting examples:
Example 1. For a data record of 345678H and a length of 3 bytes, programmed from the start address
of 100H in the Program Memory with a Binary – Byte form, the actual programming
condition will be:
100H → 0078H
101H → 0056H
102H → 0034H
Example 2. For a data record of 12345678H (BCD code is 305419896H) and a length of 4 bytes,
programmed from the start address of 200H in the Program Memory with a BCD –
Word form, the actual programming condition will be:
200H → 9896H
201H → 0541H
Fig. 4-11
• Use Expression
The specified data source comes from the calculation result of a mathematical polynomial. The
result of each calculation is the value of N for the next record. It supports two expressions “N+1”
and “N-1”.
♦♦ Use the expression “N+1” or “N-1”: the data is generated from the expression “N+1” or “N-
1”. It is only necessary to set the initial value of N to generate any amount of data records.
This is well suited for applications that require a high quantity of data records not from the
calculation of a complicated expression. Note that it does not detect an “N+1” overflow or an
“N-1” underflow.
Usage — First click the “Select” button to select the expression as shown in Fig. 4-13 and then
fill the initial value of N on the location “N (Seed)”.
※ As the setting shown in Fig. 4-12, the generated data will be 1, 2, 3, 4, 5......
Fig. 4-12
Fig. 4-13
Fig. 4-14
Features
• Compatible with the DOS-Shell command format
The parameter format of all the integrated commands is compatible with that of the DOS-Shell
commands. Users can write a batch file (.BAT) with any combination of the commands.
• All commands and their parameters are case-insensitive.
• On-Line Help: add “/?” to the end of each command to show the command description
e.g. C:\>WCMD /? ; Get the descriptions of all the supported commands
C:\>WCMD -D /? ; Get the description of the Download command
Command List
Command Format:
C:\>WCMD -Command /Parameter
e.g. C:\>WCMD -D /FC:\HT45F0V.MTP /W2
The available commands and their parameter definitions are listed as follows.
Examples: -D /FC:\HT45F0V.MTP
-D /FC:\HT46F47E_EEDATA.MEM /MHT46F47E
-D /FC:\HT66F50E.MTP /K28SKDIP-A ; When using the e-WriterPro
-D /FC:\HT66F50E.MTP /K28SKDIP-A/L1 ; Prohibit to upload
3. Before using this command, ensure that the programming file has been downloaded to
the writer.
4. “P” command (Program) contains the verify function, users can execute this “V”
command later for a double check. If there is no requirement for a double check, it is
not necessary to use this command. Refer to the example 2 in the last section of this
chapter.
Examples: -V
-V /VProgram=100h-2FFh,Option
-V /VData,Voice=2000h-3FFFh
-V /VProgram,Voice
7)【E】Erase IC (Erase)
Syntax: -E [/EROMType0=StartAddress-EndAddress,ROMType1,ROMType2]
[/WWriterNumber]
Parameters: ROMType – the ROM section to be erased. It must be “Program”, “Option”, “Data” or
“Voice.
StartAddress – the start address to be erased (for partial erasing)
EndAddress – the end address to be erased (for partial erasing)
WriterNumber – the specified writer number (1~8); if not specified, default value is 1
Remarks: 1. Only “Program” and “Voice” support the partial erasing function. “Voice” erase is only
available for the Flash Type Voice MCUs.
2. If no range is specified, it would be all ROM sections.
3. Before using this command, ensure that the programming file has been downloaded to
the writer.
Examples: -E
-E /EProgram=100h-2FFh,Option
-E /EData
-E /EProgram
8)【L】Lock IC (Lock)
Syntax: -L [/LROMType0=StartAddress-EndAddress,ROMType1] [/WWriterNumber]
Parameters: ROMType – the ROM section to be locked. It must be “Program” or “Data”.
StartAddress – the start address to be locked (for partial lock)
EndAddress – the end address to be locked (for partial lock)
WriterNumber – the specified writer number (1~8); if not specified, default value is 1
Remarks: 1. Only “Program” supports partial lock function.
2. If no range is specified, it would be all ROM sections.
3. Before using this command, ensure that the programming file has been downloaded to
the writer.
Examples: -L
-L /LProgram=0h-3h,Data
-L /LProgram
“1” represents Binary – Word (Only for ICs with 16-bit width ROM)
“2” represents BCD – Byte
“3” represents BCD – Word (Only for ICs with 16-bit width ROM)
StartAddress – The start address of the ROM section where data is written to.
LengthType – The data length. There are four selections: 1, 2, 3 and 4 bytes.
CheckBlank – Whether to execute BlankCheck before programming. “1” represents
YES , “0” represents NO.
SourceType – The data source. There are two types. If the source is different, the
number of the follow-up SourceTypeParam is also different.
“0” represents “Preload File”. SourceTypeParam1 is the file name.
“1” represents “Use Expression”. SourceTypeParam1 is the expression selection,
“0” stands for “N+1”, “1” stands for “N-1”. SourceTypeParam2 is N (Seed).
Refer to the “User Specified Data Setting Window” in the Chapter 4 for more details.
Refer to the command “E”, “B”, “P”, “V”, “L” for their command definitions and other
parameter descriptions.
Remarks: 1. This command stores the settings into the writer. These settings are executed when
using the “A” command.
2. Blank Check, Program and Verify should use the same range and users only need to set
the range once (see example).
3. Before using this command, ensure that the programming file has been downloaded to
the writer.
Examples:
-S /EProgram=100h-2FFh /B/P/VProgram=100h-2FFh ; Erase/blank check/program/verify
; 100h~2FFh of PROM
-S /B/P/VOption,Data /LData ; Blank check /program/verify Option and Data ROM,
; and lock Data ROM
-S ; Set all operations and all ROM sections (except for User Specified Data)
-S /U0-100H-1-1-0-C:\USD.BIN, 1-00H-2-1-2-0-20, 1-00H-2-1-1-0-20
; Program User Specified Data which contains three groups
; 1st group setting: Pack type is Binary-Byte, Start Address is 100H, Data Length is 1 byte,
; execute BlankCheck before programming, Data Source is Preload File,
; its file path is “C:\USD.BIN”
; 2nd group setting: Pack type is Binary-Word, Start Address is 0H, Data Length is 2 bytes,
; execute Blank Check before programming, Data Source is Using Expression,
; use “N+1” expression and N (Seed) is 20
; 3 group setting: Same as the 2nd goup setting
rd
11)【A】Run Auto-Programming
Syntax: -A [/WWriterNumber]
Parameter: WriterNumber – the specified writer number (1~8); if not specified, default value is 1
Remark: Before using this command, first set settings using the “S” command.
Example: -A
Examples
Example 1. Select the writer (when there are multiple writers) and program the IC.
WCMD -T /W1
WCMD -T /W2
WCMD -D /FC:\HT45F0V.MTP /W2
WCMD -E /W2
WCMD -B /W2
WCMD -P /PProgram=100h-200h,Option,Data /W2
WCMD -V /VProgram=100h-200h,Optiion,Data /W2
WCMD -W /PProgram=201h:334455h /W2
WCMD -L /W2
Example 2. It’s purpose is the same as example 1 but skipping the B (blank check) and V (verify)
commands to speed up the programming process.
WCMD -T /W1
WCMD -T /W2
WCMD -D /FC:\HT45F0V.MTP /W2
WCMD -E /W2
WCMD -P /PProgram=100h-200h,Option,Data /W2
WCMD -W /PProgram=201h:334455h /W2
WCMD -L /W2
Example 3. Read data from the IC to PC and save it as a file.
WCMD -R
WCMD -U /FC:\ReadData
※ The data in the writer must be the same as that of the IC.
Example 4. Auto programming.
WCMD -D /FC:\HT46F46E.MTP
WCMD -S /EProgram=0h-2FFh,option,data /B/P/VProgram=0h-2FFh,option,data
/LProgram=0h-2FFh,data
WCMD -A
Example 5. Auto programming (contains programming User Specified Data to Program) using the
e-WriterPro
WCMD -D /FC:\HT66F30.MTP /K16DIP-A
WCMD -S /E/B/P/V /U0-00H-1-1-1-2+1-10
WCMD -A
Example 6. Auto programming (contains programming User Specified Data to EEPROM) using the
e-WriterPro
WCMD -D /FC:\HT66F30.MTP /K16DIP-A
WCMD -S /E/B/P/V /UDATA=0-00H-1-1-1-2+1-10
WCMD -A
version of the HOPE3000. Use the proper HOPE3000 version to open this file or set the Smart
Programming Configuration again.
• ERR_0012: Driver type mismatched !
The driver type in the opened Smart Programming Configuration file (.SPC) is different from the
currently used driver type. Ensure that this .SPC file is correct.
• ERR_0024: Save file failed !
Fail to save file. Reboot the PC and execute the HOPE3000 again.
• ERR_0025: Download language file to console failed !
Fail to download the language file to Console. Check if the Console is connected to the writer
then reboot the PC and execute the HOPE3000 again. If the error occurs again, reinstall the
HOPE3000.
• ERR_0026: Download driver failed !
The driver download has failed. Reboot the PC and execute the HOPE3000 again. If this error
occurs again, reinstall the HOPE3000.
• ERR_0027: The data in the writer is invalid ! Download the file again.
The data uploaded is invalid because the data in the writer is damaged or for some other reasons.
Download the programming file again.
• ERR_0028: The specified IC is invalid !
The HOPE3000 cannot identify the specified IC type. Reboot the PC and execute the HOPE3000
again. If the error occurs again, reinstall the HOPE3000.
• ERR_0029: The driver type in the writer is not supported !
This version of the HOPE3000 does not support this driver type (IC type) uploaded from the
writer. Use the version of the HOPE3000 that supports this driver type to upload again.
• ERR_0030: Find or load driver failed !
Error occurred when loading the driver. Reboot the PC and execute the HOPE3000 again. If the
error occurs again, reinstall the HOPE3000.
• ERR_0031: ROM data checksum error !
The data uploaded is invalid because the data in the writer is damaged or for some other reasons.
Download the programming file again.
• ERR_0032: Obtain next user specified data failed !
Cannot obtain the next user specified data. Reboot the PC and writer and then execute the
HOPE3000 again.
• ERR_0034: Not supported F/W version !
This version of the HOPE3000 cannot support this writer F/W version. Use the proper
HOPE3000 version that supports this F/W version.
• ERR_0035: Find or Load HDumpOpt32.DLL Failed !
Lose the system file or fail to load it. This error results in the “Option Viewer” function not
being executed. Reboot the PC and then execute the HOPE3000 again. If the error occurs again,
reinstall the HOPE3000.
• ERR_0036: Find or Load DllForUI.DLL Failed !
Lose the system file or fail to load it. Reboot the PC and then execute the HOPE3000 again. If
the error occurs again, reinstall the HOPE3000.
• ERR_0037: Find no HOPrint32.EXE !
Lose the system file or fail to load it. This error results in the “Option Viewer” function not
being executed. Reboot the PC and then execute the HOPE3000 again. If the error occurs again,
reinstall the HOPE3000.
Fig. C-1
Step 2. Obtain the pin definitions of each ICP type from this table.
ICP Type ICP Package on HOPE3000 ICP Pin Definition Link
ICP-1A ICP (e-CON12B) ICP-1A
ICP-1B ICP (e-CON12B) ICP-1B
ICP-1C ICP (e-CON12B) ICP-1C
ICP-1D ICP (e-CON12B) ICP-1D
ICP-1E ICP (e-CON12B) ICP-1E
ICP-1F ICP (e-CON12B) ICP-1F
ICP-2A ICP (e-CON12C) ICP-2A
ICP-2B ICP (e-CON12C) ICP-2B
ICP-2C ICP (e-CON12C) ICP-2C
Table. C-1
1) ICP-1A
Fig. C-2
2) ICP-1B
Fig. C-3
3) ICP-1C
Fig. C-4
4) ICP-1D
Fig. C-5
5) ICP-1E
Fig. C-6
6) ICP-1F
Fig. C-7
7) ICP-2A
Fig. C-8
8) ICP-2B
Fig. C-9
9) ICP-2C
Fig. C-10
※ The actual pin location of the ICPDA and ICPCK pins in different MCUs may be different. Refer
to the related chapter of the corresponding MCU datasheet.
ICP Considerations
Fig. C-11
Note: If the e-WriterPro is used following the above procedures but still ineffective, it may be due to
the excessively long lines or poor signal quality if the used ICP lines is not the ones included
with the e-WriterPro. The following steps can be tried to resolve the problem:
1. Connect a 33~100Ω resistor in the line between the Target Board and the Holtek Writer ICPDA pin.
2. Connect a 33~100Ω resistor in the line between the Target Board and the Holtek Writer ICPCK pin.
Fig. D-1
e-WriterPro CN3
Pin Name Definition Direction
1 EXPWI/USBPWO External Power Input/USB Power Output —
2 GND Ground —
3 EOP End Of Program e-WriterPro→
4 EXTG External Trigger e-WriterPro←
5 BIN2 IC is locked e-WriterPro→
6 BIN1 Check ID/Blank Check/Program/Verify/Erase OK e-WriterPro→
7 BIN7 Lock IC failed e-WriterPro→
8 — N/A —
9 BIN4 IC is not blank e-WriterPro→
Check ID failed (for OTP MCUs)/Erase failed (for
10 BIN3 e-WriterPro→
Flash MCUs)
11 BIN6 Verify failed e-WriterPro→
12 BIN5 Program failed e-WriterPro→
13 — N/A —
14 SDA I C SDA (Reserved)
2
e-WriterPro
15 — N/A —
16 SCL I2C SCL (Reserved) e-WriterPro→
Table D-1