Texas Instruments MSP430 Computer Accessories User Manual


 
PRGS430.DLL—Description
2-17
Operation
/FN00012/ VerifyFile
long int VerifyFile(char* lpszFileName, long int iFileType)
This function checks if the memory contents of the target device are equal to
the file contents.
lpszFileName: Name of the file
iFileType
FILETYPE_AUTO (0x00) − autodetection of file type (Intel-hex or
TI-TXT)
FILETYPE_TI_TXT (0x01) − file type is TI-TXT
FILETYPE_INTEL_HEX(0x02) − file type is Intel-hex
Function returns success or first address with mismatching data.
Example: lFuncReturn = VerifyFile(”test.txt”, long:0)
/FN00013/ VerifyFileRange
long int VerifyFileRange(char* lpszFileName, long int iFileType, long int
wStart, long int wLength)
This function evaluates if the memory contents of the target device are equal
to the file contents in a passed range.
lpszFileName: Name of the file
iFileType:
FILETYPE_AUTO (0x00) − autodetection of file type (Intel-hex or
TI-TXT)
FILETYPE_TI_TXT (0x01) − file type is TI-TXT
FILETYPE_INTEL_HEX(0x02) − file type is Intel-hex
wStart: Start address of memory area. Allowed values : 0x0000−0xFFFE (see
memory map of the corresponding device)
wLength: Length of the memory area to be checked. Allowed values :
0x0000−0xFFFE (see memory map of the corresponding device)
Function returns success or first address with mismatching data.
Example: lFuncReturn = VerifyFileRange(”test.txt”,
long:0, long:0xF000, long:0x1000)
/FN0014/ ProgramData
long int ProgramData(long int wStart, long int wLength, void* lpData
This function writes data into an MSP430 device. Protection of ranges of
memory locations defined in the DEVICE.CFG file can be disabled by setting
the DISABLE_TI_MEM_PROTECT−Bit in Flags.