Appendix A
Gang Writer Dynamic Link Library
38
Seiko Epson Corporation
S5U1C17001Y23 Multi-Programmer
System Manual (Rev. 1.1)
•
Return codes
OK
0x00 Terminated normally.
NG
0x01 An error has occurred.
ERROR_EXECUTING
0x03 The request cannot be accepted as the ICDmini with the specified
number programmed is busy.
ERROR_TIMEOUT_TARGET_CONNECTION
0x12 A time-out occurred while the function attempted to connect with the
target system.
ERROR_TIMEOUT_TARGET_RESET
0x13 A time-out occurred while the function attempted to reset the target
system.
ERROR_TIMEOUT_ERASE
0x14 A time-out occurred while the function attempted to erase the flash
memory.
ERROR_TIMEOUT_WRITE
0x15 A time-out occurred while the function attempted to program the
flash memory.
ERROR_TIMEOUT_VERIFY
0x16 A time-out occurred while the function attempted to verify the flash
memory.
ERROR_TIMEOUT_FLS_ICD
0x17 A time-out occurred while the function attempted to load the FLS
program to the ICDmini.
ERROR_TIMEOUT_USER_ICD
0x18 A time-out occurred while the function attempted to load the user
program to the ICDmini.
ERROR_ICD_OPEN_CONNECTION
0x21 The ICDmini cannot be connected.
ERROR_ICD_CONNECTION
0x22 The ICDmini has already been disconnected.
ERROR_ICD_CLOSE_CONNECTION
0x29 The ICDmini cannot be disconnected.
ERROR_TARGET_CONNECTION
0x32 The target system is disconnected.
ERROR_TARGET_RESET
0x33 The target system does not respond after a target reset is issued.
ERROR_ERASE
0x44 An error occurred while the flash memory was being erased.
ERROR_WRITE
0x45 An error occurred while the flash memory was being programmed.
ERROR_VERIFY
0x46 An error occurred while flash memory was being verified.
ERROR_LOAD_FLS_ICD
0x47 An error occurred while the FLS program was being loaded to the
ICDmini.
ERROR_LOAD_USER_ICD
0x48 An error occurred while the user program was being loaded to the
ICDmini.
ERROR_PARAMETER
0x50 The specified argument is invalid.
ERROR_INSUFFICIENT_ICDSERIALNUMBUF 0x51 The serial number buffer size is insufficient.
ERROR_INSUFFICIENT_IDNUMBUF
0x52 The ID number buffer size is insufficient.
ERROR_INSUFFICIENT_FLSCOMMENTBUF
0x53 The FLS comment buffer size is insufficient.
ERROR_INSUFFICIENT_USERCOMMENTBUF 0x54 The user program comment buffer size is insufficient.
ERROR_MOT_OPEN_FLS
0x60 The FLS program file in the Motorola format cannot be opened.
ERROR_MOT_FORMAT_FLS
0x61 The FLS program file is not a Motorola format file.
ERROR_MOT_SIZE_OVER_FLS
0x62 The FLS program file in the Motorola format exceeds the allowable
size.
ERROR_MOT_ADDR_FLS
0x63 The addresses in the FLS program file exceed the allowable
maximum address of a Motorola format file.
ERROR_MOT_OPEN_USER
0x64 The user program file in the Motorola format cannot be opened.
ERROR_MOT_FORMAT_USER
0x65 The user program file is not a Motorola format file.
ERROR_MOT_SIZE_OVER_USER
0x66 The user program file in the Motorola format exceeds the allowable
size.
ERROR_MOT_ADDR_USER
0x67 The addresses in the user program file exceed the allowable
maximum address of a Motorola format file.
ERROR_VERIFY_FLS_ICD
0x68 An error occurred while the FLS program loaded into the ICDmini
was being verified.
ERROR_VERIFY_USER_ICD
0x69 An error occurred while the user program loaded into the ICDmini
was being verified.
OPERATION_TARGET_CONNECTION
0x82 Connection with the target system is being established.
OPERATION_TARGET_RESET
0x83 The target system is currently being reset.
OPERATION_ERASE
0x84 The flash memory is currently being erased.
OPERATION_WRITE
0x85 The flash memory is currently being programmed.
OPERATION_VERIFY
0x86 The flash memory is currently being verified.
OPERATION_FLS_ICD_ERASE
0x87 The ICDmini is erasing the area for loading an FLS program.
OPERATION_FLS_ICD_WRITE
0x88 The ICDmini is loading an FLS program.
OPERATION_FLS_ICD_VERIFY
0x89 The ICDmini is verifying the loaded FLS program.
OPERATION_USER_ICD_ERASE
0x8a
The ICDmini is erasing the area for loading a user program.
OPERATION_USER_ICD_WRITE
0x8b The ICDmini is loading a user program.
OPERATION_USER_ICD_VERIFY
0x8c
The ICDmini is verifying the loaded user program.