Texas Instruments MSP430 manual FN0009/ EraseCheckFile, FN00010/ PatternCheck, FN00011/ VerifyData

Page 28

PRGS430.DLL—Description

/FN0009/ EraseCheckFile

long int EraseCheckFile(char* lpszFileName, long int iFileType)

This function checks if all memory addresses, which are in the file, are erased. lpszFilName: 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 = EraseCheckFile(”test.txt”, long:0)

/FN00010/ PatternCheck

long int PatternCheck(long int wStart, long int wLength, long int wPattern)

Checks a memory range with word pattern passed

wStart: Start address of the memory area. Allowed values : 0x0000−0xFFFE (see memory map of the corresponding device)

wLength: Size of the area. Allowed values : 0x0000−0xFFFE (see memory map of the corresponding device)

wPattern: Word pattern for check

Function returns success or first address with mismatching data.

Example: lFuncReturn = PatternCheck(long:0xF000,

long:0x1000, long:0xFFFF)

/FN00011/ VerifyData

long int VerifyData(long int wStart, long int wLength, void* lpData)

This function verifies the content of the device with the data stored at passed pointer to data.

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)

lpData: Pointer to buffer with data bytes in it

Function returns success or first address with mismatching data.

Example:

lFuncReturn = VerifyData(long:0xF000, long:0x1000, void* lpData)

2-16

Image 28
Contents User’s Guide Evaluation BOARD/KIT Important Notice EVM Warnings and Restrictions Page Read This First About This ManualFCC Warning Contents Figures TablesInstallation and Setup Installing the Software −1. ADT430 Program IconsInstalling the Hardware MSP−PRGS430Page Operation Software/Hardware Layers of the PRGS430 Environment Basic Procedure Programming MSP430 Devices With the GUIDescription of the MSP-PRGS430 GUI −1. MSP430 Function Buttons and DescriptionsOperation2-5 Error Messages −2. Communication Error Box−5. Data Error −2. Error Messages Content of PRGS430.ini File Use of a Project.ini FileCommand Line Options General DefinitionsExample Return Values/Error Codes in .ini File PRGS430.DLL-Description FN0001/ InitComFN0002/ ReleaseCom FN0003/ SetDeviceTypeFN0005/ ReleaseTarget FN0004/ InitTargetFN0006/ Erase FN0007/ EraseFile FN0008/ EraseCheckFN00010/ PatternCheck FN0009/ EraseCheckFileFN00011/ VerifyData FN00013/ VerifyFileRange FN00012/ VerifyFileFN0014/ ProgramData FN0015/ ProgramFile PgmwitherasecheckFN0017/ SetVcc FN0016/ BlowFuseFN0018/ ReadOutData FN0020/ Reset FN0019/ ReadOutFileFN0022/ SetNotificationWnd FN0023/ GetDeviceCfgInfoFN0024/ AccessSFR Return Values/Error Codes From PRGS430.DLL Status Return Value CommentPage Hardware Specifications Basic HintsProgramming Adapter Target Connector Signals −1 -Pin Sub-D at Programming Adapter−2. Target Connector Signal Functions MSP-PRGS430 Circuit Diagrams Location of Components − MSP-PRGS430Interconnection of MSP-PRGS430 to OTP/EPROM-Based Interconnection of MSP−PRGS430 to Flash-Based MSP430 Devices Page Hex Object Format Intel-Hex Object Format Figure A−1. Intel-Hex Object FormatTI-TXT File Format Page Schematics Page Schematics B-3 Page Important Notice
Related manuals
Manual 138 pages 30.24 Kb