Texas Instruments MSP430 manual FN0016/ BlowFuse, FN0017/ SetVcc, FN0018/ ReadOutData

Page 31

PRGS430.DLL—Description

Note: Use PGM_ERASE_INFO only together with the PGM_WITH_ERASE flag.

lpszProjectIni

Name of the {project}.ini file, if protection settings from this file are used. If no protection is required, replace lpszProjectIni with NULL.

The added features do not need to be used—for ProgramFile according to older specification, just call ProgramFile(FileName, FileType, 0, NULL); if no {project}.ini file or erase check is used, just call:

Example: lFuncReturn = ProgramFile(FileName, 0, 0, NULL); // with autodetect file type

Note: If an erase or erase-check function reports an error, the function ProgramFile() is aborted before programming is started.

/FN0016/ BlowFuse

long int BlowFuse(void)

This function blows the security fuse of the target device.

Example: lFuncReturn = BlowFuse(void)

/FN0017/ SetVcc

long int SetVcc(long int iVoltage)

This function sets the VCC_MSP voltage of the programming adapter to the given value.

iVoltage: VCC in mV. (3000 −> 3 V)

The correct MSP430 device should be selected before using this function.

The voltage range is limited to the voltage range allowed for the selected MSP430 device.

Example: lFuncReturn = SetVcc(Long:3000)

/FN0018/ ReadOutData

long int ReadOutData(long int wStart, long int wLength, void* lpBuffer)

Reads out data from the device and writes it to the buffer passed

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

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

lpBuffer: Pointer points to a buffer that receives the data. The buffer must be large enough to hold the entire data; otherwise, a fatal error of the operating system may occur.

Operation 2-19

Image 31
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 FN0003/ SetDeviceType PRGS430.DLL-DescriptionFN0001/ InitCom FN0002/ ReleaseComFN0005/ ReleaseTarget FN0004/ InitTargetFN0006/ Erase FN0008/ EraseCheck FN0007/ EraseFileFN00010/ PatternCheck FN0009/ EraseCheckFileFN00011/ VerifyData FN00013/ VerifyFileRange FN00012/ VerifyFileFN0014/ ProgramData Pgmwitherasecheck FN0015/ ProgramFileFN0017/ SetVcc FN0016/ BlowFuseFN0018/ ReadOutData 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