Texas Instruments MSP430 manual FN00012/ VerifyFile, FN00013/ VerifyFileRange, FN0014/ ProgramData

Page 29

PRGS430.DLL—Description

/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.

Operation 2-17

Image 29
Contents User’s Guide Evaluation BOARD/KIT Important Notice EVM Warnings and Restrictions Page About This Manual Read This FirstFCC Warning Contents Tables FiguresInstallation and Setup −1. ADT430 Program Icons Installing the SoftwareMSP−PRGS430 Installing the HardwarePage Operation Software/Hardware Layers of the PRGS430 Environment Programming MSP430 Devices With the GUI Basic Procedure−1. MSP430 Function Buttons and Descriptions Description of the MSP-PRGS430 GUIOperation2-5 −2. Communication Error Box Error Messages−5. Data Error −2. Error Messages Use of a Project.ini File Content of PRGS430.ini FileGeneral Definitions Command Line OptionsExample Return Values/Error Codes in .ini File FN0001/ InitCom PRGS430.DLL-DescriptionFN0002/ ReleaseCom FN0003/ SetDeviceTypeFN0006/ Erase FN0004/ InitTargetFN0005/ ReleaseTarget FN0008/ EraseCheck FN0007/ EraseFileFN00011/ VerifyData FN0009/ EraseCheckFileFN00010/ PatternCheck FN0014/ ProgramData FN00012/ VerifyFileFN00013/ VerifyFileRange Pgmwitherasecheck FN0015/ ProgramFileFN0018/ ReadOutData FN0016/ BlowFuseFN0017/ SetVcc FN0019/ ReadOutFile FN0020/ ResetFN0023/ GetDeviceCfgInfo FN0022/ SetNotificationWndFN0024/ AccessSFR Status Return Value Comment Return Values/Error Codes From PRGS430.DLLPage Hardware Basic Hints Specifications−1 -Pin Sub-D at Programming Adapter Programming Adapter Target Connector Signals−2. Target Connector Signal Functions Location of Components − MSP-PRGS430 MSP-PRGS430 Circuit DiagramsInterconnection of MSP-PRGS430 to OTP/EPROM-Based Interconnection of MSP−PRGS430 to Flash-Based MSP430 Devices Page Hex Object Format Figure A−1. Intel-Hex Object Format Intel-Hex Object FormatTI-TXT File Format Page Schematics Page Schematics B-3 Page Important Notice
Related manuals
Manual 138 pages 30.24 Kb