Texas Instruments Serial Programming Adapter MSP430 User Manual

    
User’s Guide
July 2009
SLAU048H
EVALUATION BOARD/KIT IMPORTANT NOTICE
Texas Instruments (TI) provides the enclosed product(s) under the following conditions:. This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRATION, OR
EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end−product fit for general consumer use. Persons handling the product(s) must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design−, marketing−, and/or manufacturing−related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards. This evaluation board/kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility, restricted substances (RoHS), recycling (WEEE), FCC, CE or UL, and therefore may not meet the technical requirements of these directives or other related directives.
Should this evaluation board/kit not meet the specifications indicated in the User’s Guide, the board/kit may be returned within 30 days from the date of delivery for a full refund. THE FOREGOING WARRANTY IS THE EXCLUSIVE WARRANTY MADE BY SELLER TO BUYER AND IS IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE.
The user assumes all responsibility and liability for proper and safe handling of the goods. Further, the user indemnifies TI from all claims arising from the handling or use of the goods. Due to the open construction of the product, it is the user’s responsibility to take any and all appropriate precautions with regard to electrostatic discharge.
EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE, NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES.
TI currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive.
TI assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein.
Please read the User’s Guide and, specifically, the Warnings and Restrictions notice in the User’s Guide prior to handling the product. This notice contains important safety information about temperatures and voltages. For additional information on TI’s environmental and/or safety programs, please contact the TI application engineer or visit www.ti.com/esh
.
No license is granted under any patent right or other intellectual property right of TI covering or relating to any machine, process, or combination in which such TI products or services might be or are used.
FCC WARNING
consumer use. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to part 15 of FCC rules, which are designed to provide reasonable protection against radio frequency interference. Operation of this equipment in other environments may cause interference with radio communications, in which case the user at his own expense will be required to take whatever measures may be required to correct this interference.
Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265
EVM WARNINGS AND RESTRICTIONS
It is important to operate this EVM within the specified input and output ranges described in the EVM User’s Guide.
Exceeding the specified input range may cause unexpected operation and/or irreversible damage to the EVM. If there are questions concerning the input range, please contact a TI field representative prior to connecting the input power.
Applying loads outside of the specified output range may result in unintended operation and/or possible permanent damage to the EVM. Please consult the EVM User’s Guide prior to connecting any load to the EVM output. If there is uncertainty as to the load specification, please contact a TI field representative.
During normal operation, some circuit components may have case temperatures greater than 60°C. The EVM is designed to operate properly with certain components above 60°C as long as the input and output ranges are maintained. These components include but are not limited to linear regulators, switching transistors, pass transistors, and current sense resistors. These types of devices can be identified using the EVM schematic located in the EVM User’s Guide. When placing measurement probes near these devices during operation, please be aware that these devices may be very warm to the touch.
Mailing Address:
Texas Instruments Post Office Box 655303 Dallas, Texas 75265
About This Manual
Trademarks
Preface

This document describes the MSP430-family hardware, operation, and software installation and setup.
How to Use This Manual
This document contains the following chapters:
- Chapter 1 − Installation and Setup
- Chapter 2 − Operation
- Chapter 3 − Hardware
- Appendix A − Hex Object Format
- Appendix B − Schematics
Notational Conventions
This document uses the following conventions.
- Program code and program examples are shown in a special
typeface similar to a typewriter’s.
Here is an example of programming code:
long int VerifyFile(char* lpszFileName, long int iFileType)
Trademarks
Microsoft Windows is a trademark of Microsoft Corporation. Intel is a trademark of Intel Corporation.
Read This First
v
FCC Warning
FCC Warning
This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMONSTRA TION, OR EVALUA TION PURPOSES O N LY and is not considered by TI to be a finished end-product fit for general consumer use. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to part 15 of FCC rules, which are designed to provide reasonable protection against radio frequency interference. Operation of this equipment in other environments may cause interference with radio communications, in which case the user at his own expense will be required to take whatever measures may be required to correct this interference.
vi
Running Title—Attribute Reference

1 Installation and Setup 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 Installing the Software 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Installing the Hardware 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 Operation 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Software/Hardware Layers of the PRGS430 Environment 2-2. . . . . . . . . . . . . . . . . . . . . . . .
2.2 Programming MSP430 Devices With the GUI 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 Basic Procedure 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.2 Description of the MSP-PRGS430 GUI 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.3 Error Messages 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.4 Content of PRGS430.ini File 2-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.5 Use of a [Project].ini File 2-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Command Line Options 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.1 General Definitions 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.2 Return Values/Error Codes in .ini File 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 PRGS430.DLL—Description 2-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4.1 Return Values/Error Codes From PRGS430.DLL 2-23. . . . . . . . . . . . . . . . . . . . . . .
3 Hardware 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Specifications 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Basic Hints 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Programming Adapter Target Connector Signals 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 MSP-PRGS430 Circuit Diagrams 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5 Location of Components − MSP-PRGS430 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6 Interconnection of MSP-PRGS430 to OTP/EPROM-Based
MSP430 Devices 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7 Interconnection of MSP−PRGS430 to Flash-Based MSP430 Devices 3-7. . . . . . . . . . . . . .
A Hex Object Format A-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Intel-Hex Object Format A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2 TI-TXT File Format A-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Schematics B-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter Title—Attribute Reference
vii
Running Title—Attribute Reference

1−1 ADT430 Program Icons 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1−2 Serial Programming Adapter 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−1 MSP430 Programmer Dialog Box 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−2 Communication Error Box 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−3 Communication Error Box for Blown Fuse 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−4 Erase Check Error Message 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−5 Data Error 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−1 25-Pin Sub-D at Programming Adapter 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−2 14-Pin Connector at End of Interconnect Cable 3-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−3 MSP-PRGS430 Components 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−4 MSP−PRGS430 Used to Program OTP/EPROM-Based MSP430 Devices 3-6. . . . . . . . . . . .
3−5 MSP−PRGS430 Used to Program Flash-Based MSP430 Devices 3-7. . . . . . . . . . . . . . . . . . .
A−1 Intel-Hex Object Format A−2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2−1 MSP430 Function Buttons and Descriptions 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−2 Error Messages 2-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2−3 Command Line Options 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−1 MSP430 Hardware Specifications 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−2 Target Connector Signal Functions 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3−3 Programming Adapter Signal Levels 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
Chapter 1
  
This chapter describes the process of installing and programming the hardware and software for the MSP430-PRGS430 programming adapter used with the MSP430 family of microcontrollers.
Topic Page
1.1 Installing the Software 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Installing the Hardware 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation and Setup
1-1
Installing the Software
1.1 Installing the Software
To install the MSP-PRGS430 software, perform the following steps: NOTE: To ensure that you are using the latest version of the MSP-PRGS430
software, you must download the installation executable from the TI web site.
1) Browse to the MSP-PRGS430 page on www.ti.com (http://www.ti.com/prgs430).
2) Go to the Support Software section and click on the link to the MSP-PRGS430 Software (the latest version of this software can also be downloaded from this address: http://www.ti.com/lit/zip/slac029).
3) Save the zip file to your local drive. After download is complete, uncompress the file to extract the installation exectuable (PRGS430_Rxxx.exe).
4) Navigate to this saved file (PRGS430_Rxxx.exe) and run it. A welcoming message is displayed.
5) Follow the setup instructions on the screen. The setup program guides you through the installation process.
6) During setup, the MSP430 program icons are installed in the selected folder. Click on the PRGS430 Read Me First icon, shown in Figure 1−1, to obtain important information about the program device hardware and software.
Figure 1−1.ADT430 Program Icons
7) The appropriate program group and icons are added to the Windows program manager.
8) To start the programming adapter software, click the PRGS430 icon in the selected program group (default: ADT430).
1-2
1.2 Installing the Hardware
To install the programming adapter hardware, perform the following steps:
1) Using the 9-pin SUB-D connector, connect the programming adapter to the serial port (COM1−COM4) of the PC.
2) Connect an external power supply to the programming adapter. The voltage of the power supply must be between 14 V and 20 V dc and must provide a minimum of 200 mA of power . The center terminal of the supply connector at the programming adapter is the plus pole.
3) The red LED on the programming adapter lights if the power supply is properly connected. If the LED does not light and the power supply is properly connected, check the F1 fuse on the programming adapter printed-wire board (PWB).
4) The MSP430 devices, in a socket or on a PWB, should be connected to the programming adapter through the 14-pin cable.
Installing the Hardware
The programming adapter provides the selected supply voltage V 14 of the 25-pin SUB-D connector, or at pin 2 of the 14-pin connector to supply the MSP430 device. The signal name is VCC_MSP.
If an external supply voltage V voltage VCC_MSP must be set to the same voltage level.
Figure 1−2.Serial Programming Adapter
Power Supply
200 mA
14−20 V
RS232 From PC
RS232
PC Serial Port
CC
RS232
MSP−PRGS430
Target
MSP430 Serial Programming Adapter
(JTAG)
at pin
CC
is used for the MSP430, the internal
RS232 Out
OUT
May Be Connected to an EVK
JTAG Connector for the MSP430
Installation and Setup
1-3
1-4
Chapter 2

This chapter describes the programming procedure for MSP430 devices and the error messages you may encounter during the procedure.
Topic Page
2.1 Software/Hardware Layers of the PRGS430 Environment 2-2. . . . . . . . .
2.2 Programming MSP430 Devices With the GUI 2-3. . . . . . . . . . . . . . . . . . . .
2.3 Command Line Options 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 PRGS430.DLL—Description 2-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operation
2-1
Software/Hardware Layers of the PRGS430 Environment
2.1 Software/Hardware Layers of the PRGS430 Environment
GUI
PC − Software
PRGS430.EXE PRGS430.INI
CommandLine
Function
PRGS430.DLL
RS232
DEVICE.CFG
[Project] .INI
PRGS430
JTAG
MSP430
Serial Programming Adapter
Target Socket or Application
There are three ways to handle and communicate with the PRGS430 hardware:
- Using the graphical user interface (see Section 2.2)
- Using command line parameters (see Section 2.3)
- Using the PRGS430.dll (see Section 2.4)
Note: this is the fastest way if the PRGS430 should be used in an in-system program and test environment.
2-2
Programming MSP430 Devices With the GUI
2.2 Programming MSP430 Devices With the GUI
2.2.1 Basic Procedure
The following steps should be used to program the MSP430 devices:
1) Click on the Program Device icon during the installation-selected program group (default: ADT430). The MSP430 programmer dialog box appears.
The status line at the bottom of the window shows the actual or the most recent activity (see Figure 2−1).
The status line displays the message Connecting to adapter... until the programming adapter is detected and the baud rate is set.
2) Select the correct device and supply voltage.
3) Select the name of the object file (TI-TXT (.txt) or Intel-hex (.a43) format).
4) Select the additional options to program, if necessary using Erase Flash, Erase Check, or Verify (see Note 1 at the end of Table 2−1).
5) Click on the Program button to start programming. The status line at the bottom of the window shows the actual or most recent activity (see Figure 2−1).
Figure 2−1.MSP430 Programmer Dialog Box
Operation
2-3
Programming MSP430 Devices With the GUI
Program
2.2.2 Description of the MSP-PRGS430 GUI
An MSP430 device is commonly programmed as follows:
1) Select the file that contains the data to program from the MSP430 programmer dialog box (see Figure 2−1).
2) Select the device. An error message appears on the screen if the device selected is different or not connected.
3) Set the required supply voltage, communication port COMx, and baud rate. The device configuration and memory type are selected automatically according to the selected device.
4) Use the program button to start the programming operation (see Note 1 at the end of Table 2−1).
Table 2−1 describes the function of the buttons for different options and combinations for the MSP430 programmer dialog box.
Table 2−1.MSP430 Function Buttons and Descriptions
Button Name Sub-Functions Description
File Name Selects the name of the file to program (Intel-hex or TI-TXT format) Device Select Selects the MSP430 device type to program via pulldown menu
Selects the supply voltage for the MSP430
Supply Voltage
Program
Erase Flash
Erase Check
VCC switch off If selected (default), the supply voltage is switched off after each MSP430
access; otherwise, the supply voltage remains connected. An object code is programmed to the on-chip memory using the select
options.
With Erase Flash Memory is erased before programming (only with flash devices).
The following options are possible:
− Main and information memory
− Main memory only With Erase Check Erase check is performed before programming operation is executed. With Verify Each section is verified after it is programmed, or an error message is
displayed if verification fails.
With Blow Fuse The code-protection fuse is blown after the entire object code, with verify, is
programmed. This action is irreversible and disables future on-chip memory access (reading or programming). This step is not performed if verify is disabled or verify fails. A warning is displayed.
Erase operation can be done only with flash devices, according to the selected option.
By file Only the memory locations corresponding to the selected object file are
erased. All other memory locations keep their old data (smart erase). By device The entire flash memory of the device is erased. By range An erase is performed depending on the values entered in the range fields.
Checks if memory locations are erased. By file Checks only the memory locations used by the selected object file. By device Checks the entire programmable memory of the device. (No RAM is
checked.) By range An erase check is performed according to the range of memory locations in
the range for Erase Check/Readout field.
2-4
Loading...
+ 37 hidden pages