Texas Instruments MSP430 manual Example

Page 23

Command Line Options

Table 2−3. Command Line Options (Continued)

Options for Program Command:

/PE:{0,1,2}

Option program with erase (flash only)

 

0:

Without erase

 

1:

Main and Info memory

 

2:

Main memory only

 

 

/PC:{0,1}

Option program with erase check

 

0:

Disable

 

1:

Enable

 

 

/PV:{0,1}

Option program with verify

 

0:

Disable

 

1:

Enable

 

 

/PB:{0,1}

Option program with blow fuse (only valid with verify successful)

 

0:

Disable

 

1:

Enable

 

 

 

Options for Erase/Erase Check and Verify Command

/E:{1,2,..}

Option erase/erasecheck/verify by file/device/range

 

1:

File

 

2:

Device

 

3:

Range

 

 

/ERange:0xXXX,

Option erase/erasecheck/verify range (start: 0xXXXX, length: 0xYYYY)

0xYYYY

 

 

 

 

Options for Read Out Command:

 

 

/RO:{1,2}

Option read out by device/range

 

1:

Device

 

2:

Range

 

 

/RRange:0xXXXX,

Option read out range (start: 0xXXXX, length: 0xYYYY)

0xYYYY

 

 

 

 

/Rfile:file-

Specifies read out file name

name,{1,2}

1:

TI-TXT

 

2:

Intel-hex

 

(Default directory should be the last object file directory)

 

 

 

Log Options:

 

 

 

 

/Log:filename

Specifies Log file name

 

(Default directory should be the PRGS430.exe directory)

 

 

/ALog:{0,1}

Option accumulative Log file

 

0:

Disable

 

1:

Enable

 

 

 

Example:

PRGS430.exe ”C:\adt430\test\test.txt” /Dev:MSP430F1121 /cmd:PRG /PE:1 /PC:0 /PV:1 /COM:2

This command programs the file test.txt, located in the directory C:adt430\test, into a MSP430F149 device. The device is erased before programming. The erase check is disabled. The code is verified after programming. The programming adapter is connected to ComPort 2. The baud rate is not passed with the command line, so the setting in the PRGS430.ini file is used.

Operation 2-11

Image 23
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/ ReleaseComFN0006/ 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