Appendix A
Gang Writer Dynamic Link Library
36
Seiko Epson Corporation
S5U1C17001Y23 Multi-Programmer
System Manual (Rev. 1.1)
A.2.10 LoadIcdUserProgram
•
Function
Loads the user program to the ICDmini with the specified serial number programmed.
Control is returned immediately after this function is called.
The progress status is monitored with the GetIcdStatus function.
•
Format
long LoadIcdUserProgram ( short* IcdSerialNumber, short* FileName, long EraseBlockStart,
long EraseBlockEnd, long FlashAddress, char* Comment );
•
Arguments
short* IcdSerialNumber: Serial number (Unicode)
It should be within 20 characters and terminated with NULL.
short* FileName:
User program file name in a full-path (Unicode)
It should be terminated with NULL.
long EraseBlockStart:
Erasing start block number
long EraseBlockEnd:
Erasing end block number
long FlashAddress:
Flash memory top address
char* Comment:
Comments
It should be terminated with NULL.
The comment length must be within 127 bytes excluding NULL.
•
Return values
OK
ERROR_EXECUTING
ERROR_PARAMETER
ERROR_ICD_OPEN_CONNECTION
•
Explanation
This function executes the following processes internally.
- Opens the USB port.
- Searches the ICDmini with specified serial number programmed.
- Erases the flash memory.
- Sets address information.
Any comments can be set to the comment field in the packet.
- Programs the flash memory.
- Verifies data programmed in the flash memory.
- Closes the USB port.
Summary of Contents for S5U1C17000Y23
Page 4: ......