Loadicduserprogram - Epson S5U1C17000Y23 System Manual

Cmos 16-bit single chip microcontroller, multi-programmer ver. 3.0
Table of Contents

Advertisement

Appendix A
Gang Writer Dynamic Link Library
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,
• Arguments
short* IcdSerialNumber: Serial number (Unicode)
short* FileName:
long EraseBlockStart:
long EraseBlockEnd:
long FlashAddress:
char* Comment:
• 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.
36
long EraseBlockEnd, long FlashAddress, char* Comment );
It should be within 20 characters and terminated with NULL.
User program file name in a full-path (Unicode)
It should be terminated with NULL.
Erasing start block number
Erasing end block number
Flash memory top address
Comments
It should be terminated with NULL.
The comment length must be within 127 bytes excluding NULL.
Seiko Epson Corporation
S5U1C17001Y23 Multi-Programmer
System Manual (Rev. 1.1)

Advertisement

Table of Contents
loading

Table of Contents