1 return values/error codes from prgs430.dll – Texas Instruments Serial Programming Adapter MSP430 User Manual
Page 35

PRGS430.DLL—Description
2-23
Operation
2.4.1
Return Values/Error Codes From PRGS430.DLL
Status
Return Value
Comment
OK
0
SUCCESS
−1
Operation OK
ERR_COMMUNICATION
−2
Communication error (SSP)
ERR_TARGET_NOT_CONNECTED
−3
No target connected
ERR_SPA430_NOT_CONNECTED
−4
No SPA430 connected
ERR_WRONG_JTAG_VERSION
−5
JTAG version above 3
ERR_PUC_FAILED
−6
PUC did not succeed
ERR_SPA430_SYNC_FAILED
−7
Could not sync SPA430
ERR_NO_SPA430
−8
Adapter is not SPA430
ERR_UNKNOWN_TARGET
−9
Target type unknown
ERR_WRONG_TARGET
−10
Target type does not match
ERR_NO_TARGET_SELECTED
−11
No target selected (missing SetDeviceType() call)
ERR_TARGET_FUSE_BLOWN
−12
No target access because of blown fuse
ERR_BLOW_FUSE_FAILED
−13
Blown-fuse command failed
ERR_VCC_NOT_SET
−14
No V
CC
selected (missing SetVolt() call)
ERR_WRONG_VCC
−15
V
CC
out of allowed range
ERR_WRONG_BAUDRATE
−16
Invalid baud rate
ERR_COMPORT
−17
Error accessing the communications port
ERR_DEVICE_CFG
−18
Device.cfg corrupted
ERR_GENERAL
−19
General error (should not occur!)
ERR_RANGE
−20
Wrong range specified
ERR_ARGUMENT
−21
Wrong argument
ERR_FILE_IO
−22
Error during file I/O
ERR_FILE_DETECT
−23
File type could not be detected
ERR_FILE_END
−24
Unexpected end of file
ERR_PROJECT_INI
−25
Error reading {project}.ini
ERR_VCC_BELOW_VCCMINPROG
−26
V
CC
to low for selected function
ERR_FUSE_NOT_RELEASED
−27
Fuse not release for this device
STATUS_CONNECTSPA
1
Connecting to SPA430
STATUS_CONNECTTARGET
3
Connecting to target
STATUS_RELEASETARGET
5
Releasing target
STATUS_RELEASESPA
7
Releasing SPA430
STATUS_RESETTARGET
9
Resetting target
STATUS_ERASE
11
Erasing target
STATUS_ERASECHECK
13
Erase checking target
STATUS_PATTERNCHECK
15
Pattern checking target
STATUS_VERIFY
17
Verifying target
STATUS_PROGRAM
19
Programming target
STATUS_READOUT
21
Reading out target
STATUS_BLOWFUSE
23
Blowing fuse
ERR_READOUT_LOCKED
−28
Read out prohibited