Texas Instruments MSP430 manual FN0019/ ReadOutFile, FN0020/ Reset

Page 32

PRGS430.DLL—Description

Example: lFuncReturn = ReadOutData(long:0xF000,

long:0x1000, void* lpBuffer)

/FN0019/ ReadOutFile

long int ReadOutFile(long int wStart, long int wLength, char* lpszFileName, long int iFileType)

Reads out data from the device and writes it to a file

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

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

lpszFileName: Name of the file to receive data. If the file does not exist, it is created; If the file already exists, it is overwritten.

iFileType:

 

 

FILETYPE_TI_TXT

(0x01)

− file type is TI-TXT

FILETYPE_INTEL_HEX

(0x02)

− file type is Intel-hex

Example: lFuncReturn = ReadOutFile(long:0xF000,

long:0x1000, ”test.out”, long:1)

/FN0020/ Reset

long int Reset(long int Flags)

This function provides the reset functionality for the target.

Flags: Flags is a bitmap and determines the type of reset.

PUC0x01

RST_NMI0x02

WITH_RELEASE 0x04

Reset PUC means that the JTAG sends the command to the MSP430.

Reset RST_NMI performs a reset via the RST/NMI pin of the MSP430. The JTAG is also reset.

If the WITH_RELEASE option is selected, the device is released from the JTAG access after the reset.

Example: lFuncReturn = Reset(long:5)

2-20

Image 32
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/ SetDeviceTypeFN0006/ Erase FN0004/ InitTargetFN0005/ ReleaseTarget FN0007/ EraseFile FN0008/ EraseCheckFN00011/ VerifyData FN0009/ EraseCheckFileFN00010/ PatternCheck FN0014/ ProgramData FN00012/ VerifyFileFN00013/ VerifyFileRange FN0015/ ProgramFile PgmwitherasecheckFN0018/ ReadOutData FN0016/ BlowFuseFN0017/ SetVcc 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