Home
Texas Instruments MSP430 User's Manual
Contents
1. ang re UNS ONS ano i n80EE022Sdl L a 5 lu N is ON9U ONSO ang ans ang and STe 9891 121 deIl 9151 e aaa aan 220 aan aan aan aan ino Dg Jan ho 5 ES S x ES 3 E Y 83 NI T t gt um Os elo alo elo alo slo alo slo 9151 STR ST STE STo STa STo ne ter and TNS and and and and and QN9 4 2 PE 002422911 301 15 EI EX En ii SE ang ES an N3X 108 Sc GX SLI CX TOS STEdS8 101 EGU MO8zS221 gt 82915 YC OX ax 7 IR SAS S48 ray 10 z 3801 LE SX9 Q8I SX ESTER a az 800 sav g LZZ 5X SEX p 8 2 1no e am ht LIZ SX lt
2. X1 40F140 rm C38 C a SIEHE ala E 1815 843 R3 258 x Hi 5 R44 nn E F1 LC9 245 a oe O ey 5 El 1702 C22 2 Ra MSP430P337 Req Res 912 oO Pm L C28 Ri ra als L m a fe BLSE S LS LS em c24 Rea c25 Rei 8 e Le RIG EI Eo 97 Als spese fo BN oy m Y c 38 Bas Sm 8 a R32 M NN Bee m El a le Be ag jays R31 a 8 o els 88 c32 az M o a O SS D 2 ez lez um s z e LI rra C13 a s B 5 A a JP3 a M a28 03 LI 1229 e SE ma A Es 1031105 el ele 4 223824 52 aa 9 Re R22 eee seal e Leal eel BVH JILL 5 emmmu x5 immmmmuumuumuumi 75 20 ED HE E EEE EEE 6 E ES 2 Note not use J2 9 as RST NMI pullup Hardware 3 5 Interconnection of MSP PRGS430 to OTP EPROM Based 3 6 Interconnection of MSP PRGS430 to OTP EPROM Based MSP430 Devices The circuit diagram in Figure 3 4 shows the connections required to program OTP MSP430Pxxx and EPROM MSP430Exxx based MSP430 devices with the MSP PRGS430 programming adapter Consult the device data sheet for the spec
3. 2 3 Communication Error BOX nent eens 2 6 Communication Error Box for Blown Fuse 2 6 Erase Check Error Message eee eee ena 2 6 Data 2 7 25 Pin Sub D at Programming Adapter 3 3 14 Pin Connector at End of Interconnect Cable 3 3 MSP PRGS430 Components n 3 5 MSP PRGS430 Used to Program OTP EPROM Based MSP430 Devices 3 6 MSP PRGS430 Used to Program Flash Based MSP430 Devices 3 7 Intel Hex Object Format eens 2 Tables viii MSP430 Function Buttons and Descriptions 2 4 Error Messages cocidas ovens en en ne einer 2 8 Command Line Options hen 2 10 MSP430 Hardware Specifications 3 2 Target Connector Signal Functions eee 3 4 Programming Adapter Signal Levels 3 4 Chapter 1 Installation and Setup 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 4 Installingithe Software
4. 4 E 362 3401 Saa N2372 QZz cx ox mE ep Tp 12 8 80 007 E SI GX Q9 5X TUNIS T9H dan 1 5 yaya 7159 154 vu 8335 4199 81 6X G GX ana PaTquesse 10U III 280 hz 280 21 8 9 980 LE 580 4101 91 6X GX SUL and gga 3 Gea LSI SX Z GX dan 101 z uino 80 har 80 SO ____4E amp x T SX 101 001 eu 80 7 sa ans ans Nd vas zao HE sag 993 101 180 HE 180 ang Ya sa sere 5154958 Ze esa sde gts 58 10 the 891 ee 3SN3S N 5 022422911 q El suet NOUS J So es Nin ZUB o TONS 298 nt 5 22918 pis x 68 1006 3920 lo Y 5191 nete Sig Q eLls EX o o 2 ana ONS c 2194 Os beZOHYbZ 05 ES 8 x 2018 19 el 9 Der N31 1210 z IS IuNZ1S8 17199 Os w A ang E ST 4 471359 1 Os 5 za zu ber Os 2XZ OHNId 620 21 lt j 2 ass a 151 125 ang 6 IT 16 als 30 E ol sui am 81191 RIS s OY9BIN TE 1002 u N S lo 3907191 beZIHYbZ 05 50 s a 88 Inox SU NG 1917001 20191 9 1 22n dan ase IO17001H ar 1 ee FB 210 and Sul A EU a Silo Z1Z1WW4 30191 Naar 2 9 M 0 smg na ee dw 80 RUN T 1 9 B 91121 9 08191 ula b bX 6 6X 18 aL 8 4X 512 It
5. Hg T e ALIS ALAR 25898 102 I I 0 am 19313su1 m ZddniL o ang 25898 ang and ana ang ang ana ON9 ano Sur amo g 6 T lala m ang a 3 2 N m A gle N 2 8 pr 2 auto 186201 18 ST S S s E Sh ens y OHS AT YEBI a pa on N ano 2 2 S en Le T K 03 M8ZI 83 SNIS DEN Tzu EO 2iviuus lt on In s gt a 3 N 50 QNS 099891820 r 2 221 a 129 gt 23172 7 lo sap 052791 UNS Z nET AGT I o eee 21 2 4 901 e ONS 6 96828 823 en 26808 RAE 15 l o QNS N9 am SR 20 Io S lo IVA SIR i ang HE gle SER tes N SL S ABT 1 zo 09838 y a peas 2 B eje eg vee dan 96858 Ne T TIO N 18 ALIO SZ19HUvZ 3SN3S 3407101 _ azz 291 IR 02915 zT 92915 ang gt zm SEldS8 _ 858 c T 558 ela 3 2 o9 8 29 ZNoOR ls DD 381 are o 32915 als la 2 P souo 258 e 815 3 aaa ASzzauo p TUN 1S8 8 5 1580 232 35d 898 gan sm3 ZGH OS a zxxznzm 680 PNM 8 amp cjo p e F gt 5 E N31S80 aon 85 2 23 1014001 ol la el J dan Ale ler lolo e o le je e le of la leen 92 l Joa o SS S v
6. WITH ERASECHECK 0x08 Erase check by device and the programs the device PGM WITH Verify 0x10 Read out device merge with file to be programmed and write back to device PRGS430 DLL Description Note Use PGM_ERASE_INFO only together with the PGM_WITH_ERASE flag IpszProjectlni Name of the project ini file if protection settings from this file are used If no protection is required replace lpszProjectlni 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 IFuncReturn 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 Voc in mV 3000 gt 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 1FuncReturn SetVcc Long 3000 FN0018 ReadOutData long int ReadOutData long int wS
7. DATA32 DATAm DATAn ADDR2 DATAOl DATAn Whereas ADDR is the start address of a section hexadecimal DATAn represents a data byte hexadecimal q is the termination of the file For example F000 31 40 00 03 B2 40 80 5A 20 01 D2 D3 22 00 D2 21 00 3F 40 E8 FD 1F 83 FE 23 F9 3F FFFE 00 FO Q Restrictions The number of sections is unlimited The start address must be even Each line must have 16 data bytes except the last line of a section Data bytes are separated by a single space The termination tag q indicates end of file is mandatory Hex Object Format A 3 4 Appendix Schematics This appendix contains the schematic diagrams for the serial programming adapter B 1 ON9 Jan ang ON9
8. TEXAS INSTRUMENTS MSP430 Family Serial Programming Adapter 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 IMPLI
9. Z X L bX Siu lt a 08 uan usa 20191 OTe ex i u S268 1213 F E by ONg ON9 80121 a Es ES ST gi p 7g OUNI N3ATIWS T 2 2s 019 gr mon and OWS 2719450 z 10021 11 OXLMH E au pr 219014 pm Oxins 8151 ang ang E rz Slo 18 18 1 5 SS ala aid 98 29 bh 512 512 9 DT a aii es sis ute E al wj zn sie qui A elo sla 10 T usa usa 1 2 2 5 w STH 09 09 dw L1 291 zx 121 95 9579 19864690 i and ans ON 9 B 3 Schematics B 4 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries reserve the right to make corrections modifications enhancements improvements and other changes to its products and services at any time and to discontinue any product or service without notice Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete All products are sold subject to Tl s terms and conditions of sale supplied at the time of order acknowledgment warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with standard warranty Testing and other quality control techniques are used to
10. 14 20 V 200 mA RS232 Out May Be Connected to an EVK T RS232 MSP PRGS430 PC Serial Port MSP430 Serial Programming Adapter INSTRUMENTS Wy TEXAS E JTAG Connector for the MSP430 Installation and Setup 1 3 1 4 Chapter 2 Operation 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 32 Command Options wetter teleport tare 2 10 2 4 PRGS430 DLL Description 2 13 2 1 Software Hardware Layers ofthe PRGS430 Environment 2 1 Software Hardware Layers of the PRGS430 Environment 2 2 PC Software PRGS430 EXE PRGS430 INI CommandLine Function PRGS430 DLL DEVICE CFG Project INI Serial Programming Adapter PRGS430 JTAG MSP430 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 Programming MSP430 Devices With the GUI 2 2 Programming MSP430 Devices With the
11. Infoldx are ignored DEVICE_VFUSE 0x0C GetDeviceCfgInfo returns the blow fuse setting for the selected device IpBuf and Infoldx are ignored FN0024 AccessSFR long int AccessSFR LONG wAddr void IpData LONG iFlags This function writes or reads data into the special function registers of the MSP430 device implemented in PRGS320 dll versions 1 05 and higher wAddr SFR address that should be accessed Allowed values 0x0000 0x1FE see the memory map of the corresponding device IpData Pointer to the data to be written or buffer which should receive the read data Flags The bits in Flags control the operation of AccessSFR iFlags SFR READ 0x00 SFR Write 0x01 Example IFuncReturn AccessSFR long 0x0020 amp IpData 0 2 41 Status OK SUCCESS ERR_COMMUNICATION ERR_TARGET_NOT_CONNECTED ERR_SPA430_NOT_CONNECTED ERR_WRONG_JTAG_VERSION ERR_PUC_FAILED ERR_SPA430_SYNC_FAILED ERR_NO_SPA430 ERR_UNKNOWN_TARGET ERR_WRONG_TARGET ERR_NO_TARGET_SELECTED ERR_TARGET_FUSE_BLOWN ERR_BLOW_FUSE_FAILED ERR_VCC_NOT_SET ERR_WRONG_VCC ERR_WRONG_BAUDRATE ERR_COMPORT ERR_DEVICE_CFG ERR_GENERAL ERR_RANGE ERR_ARGUMENT ERR FILE IO ERR FILE DETECT ERR FILE END ERR PROJECT INI ERR VCC BELOW VCCMINPROG ERR FUSE NOT RELEASED STATUS CONNECTSPA STATUS CONNECTTARGET STATUS RELEASETARGET STATUS RELEASESPA STATUS RESETTARGET STATUS ERASE STATUS ERASECHECK STATUS PATTERNCHECK STATUS VERIFY STATUS PROGRAM STATUS
12. JTAG Access via bootstrap loader interface is possible for devices that support that interface Read out data from MSP430 device When this function is executed a dialog box appears the file name for the data to store should be selected By device Read out the entire memory of the device and store the data into the file Read Out selected in the file name field By range Read out the memory locations selected by the range field and store the data in the file selected in the file name field The reset of a MSP430 can be performed in two ways After reset the MSP430 may remain under JTAG control or can be released to operate normally and execute the program Reset PUG A software reset of the chip is generated RST NMI Generates a hardware reset by applying a low pulse on RST NMI pin With JTAG release JTAG is released after the execution of the reset via JTAG or RST NMI COM Port Selects the COM port to which the programming adapter is connected Selects the baud rate for communication with the programming adapter Help is available for programming MSP430 devices command buttons selectors and the object file format used Help The Help menu can be found in the system menu of the serial programming adapter software right click on the symbol at the upper left corner of the program window or with the F1 function key Note 1 For some MSP430 family members e g MSP430F2xxx devices portions of flash information memory are factory prepr
13. Jan for 9 e co Joo u Jo Jon e foo o JE 0998390142 IS S 2 TANOOTOL y8 55333233 292223388888833333325 ana ana 001 z cua BENE sro aao ze kd x5 NIX nix ALIS SztoHuee aso EE 2 29 B gg inox ae sme NaX 1940 ve 9 29 INEX Dg la lt OXLMH E 10 8e 4 9 IUNISO sg IHN LS v8 usar MD esa 55 8 59 1 55 21u Ted 6 169 sat ES m xuN3d8 20 85 ee en 55 9d I01u Sz toner esa wit cd cen ZE 10170014 80 dr P3 G I I 16 T zT Gant asa 2917969 980 zy 6919 ela tg 280 Et 91 2 d a naaans EH 31872 bd 2204225 ES eho eho oo axums E 5 19313941 xos RLS la DEN ang Una0eS ZBescl ana QS 8r 109 0 7320785 ra of 12 af ATIVE vd 0090909009999 Oo rzs o 3 s I Tol 5 ER NNDDD 28 ES o gt de N3LSTIMS oum Tes a Se 7 I ZLB SLR an SSdSSSSSSLEEL LLL LLL SER 50 ana UTN BOSSSSSLRSLARVEBSEN GB GANGDOSEN D amp N Lom ax ns 5 5 oxen IEEE EN z aon s38 ava VID D S DARAN O NS IUN LSAN 5 x nada Sa Bo 28 S 93194999 ININWVAIOAT 1914935 2
14. READOUT STATUS BLOWFUSE ERR READOUT LOCKED Return Value 0 1 9 12 13 14 15 16 17 18 PRGS430 DLL Description Return Values Error Codes From PRGS430 DLL Comment Operation OK Communication error SSP No target connected No SPA430 connected JTAG version above 3 PUC did not succeed Could not sync SPA430 Adapter is not SPA430 Target type unknown Target type does not match No target selected missing SetDeviceType call No target access because of blown fuse Blown fuse command failed No Vcc selected missing SetVolt call Vcc out of allowed range Invalid baud rate Error accessing the communications port Device cfg corrupted General error should not occur Wrong range specified Wrong argument Error during file I O File type could not be detected Unexpected end of file Error reading project ini Vcc to low for selected function Fuse not release for this device Connecting to SPA430 Connecting to target Releasing target Releasing SPA430 Resetting target Erasing target Erase checking target Pattern checking target Verifying target Programming target Reading out target Blowing fuse Read out prohibited Operation 2 23 2 24 Chapter 3 Hardware This chapter describes the hardware for the MSP430 family of microcontrollers including specifications components of the programming adapters and connection of the programming adapter to the MSP430 device famili
15. RST NMI TCLKEN NC Table 3 2 lists the target connector signals and describes their requirement statuses and functions Hardware 3 3 Programming Adapter Target Connector Signals Table 3 2 Target Connector Signal Functions Signal Terminal Name TMS TCK TDI VPP TDO TDI GND VCC_MSP XOUT RST NMI Test VPP Required Mandatory Mandatory Mandatory Mandatory Mandatory Mandatory if internal supply voltage is used Mandatory Optional Mandatory depending on device Function Comment Test mode select functions according to IEEE1149 1 Test clock functions according to IEEE1149 1 Test data input functions according to IEEE1149 1 but with additional programming voltage for 3xx devices Test data output functions according to IEEE 1149 1 but additional data input is used when programming voltage is applied by TDI VPP GND is the most negative terminal Voltage source is used with MSP430 devices or PWBs The voltage level is set by software Signal supplies the MSP430 system with clock signals If not connected RST NMI must be held high Signal used to select pin or JTAG function or to apply VPP The output signal levels of the programming adapter are near GND or VCC MSP I The RST NMI terminal of the device must be high otherwise the access to the device via JTAG system may fail The programming procedure handling of the SW is described in Chapters 1 and 2 of this ma
16. Start Size DisableTIMemProtect 0 Memory ranges defined in the UserMemProtect and UserMemProtect n option are read out and reprogrammed after erase flash device only n could be a number 2 and be in ascending order If a memory protection is activated in the device definition file from Texas Instruments it could be switched off with the DisableTlMemProtect 1 option Operation 2 9 Command Line Options 2 3 Command Line Options 2 3 1 General Definitions 0 Off 1 First selectable option 1 On 2 Second selectable option 3 Third selectable option The PRGS430 ini file options are used if they are not specified in the command line The command line option overwrites the ini file options The program exits automatically if a command is passed via the command line and the command was executed There is only a small status window opened during the execution Only one command identifier cmd is allowed within the command line Otherwise the execution is canceled and an error is returned If an error in the command line parameter is detected the program exits with an error message The filename may also contain a path If special characters are used the string has to be inside quotes for example server adt430 PRG files test txt If an error is detected within the filename the operation is canceled and an error is returned Table 2 3 Command Line Options Commands cmd VFY cmd ERS cmd
17. The Intel hex object format supports 16 bit addresses and consists of a nine character four field prefix that defines the start of record byte count load address record type and a two character sumcheck suffix The two record types which are represented in the nine character prefix are described below 00 Data record begins with the colon start character 01 End of file record Record type 00 the data record begins with the colon start character and is followed by the byte count the address of the first data byte the record type 00 and the sumcheck The sumcheck is the 2s complement in binary of the preceding bytes in the record including the byte count address and data bytes Record type 01 the end of file record also begins with the colon start character The colon is followed by the byte count address record type 01 and sumcheck Figure A 1 Intel Hex Object Format A 2 Start Character Byte Count 10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFOO 10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFO Address 10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEO Data 10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDO 10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCO 10000001FF LJ Records Sumcheck Record Type TI TXT File Format A 2 TI TXT File Format The TI TXT file format used by the tool is shown as follows ADDR1 DATAO2 DATA16 DATA17 DATA32
18. a flash erase method that does not affect the calibration data memory locations must be used See the respective device data sheet for further information on preprogrammed calibration data memory locations FN0008 EraseCheck long int EraseCheck long int wStart long int wLength Performs an erase check of an area of the target memory 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 The function EraseCheck simply uses PatternCheck with OxFFFF as pattern EraseCheck long int wStart long int wLength return PatternCheck wStart wLength OxFFFF Example lFuncReturn EraseCheck long 0xF000 long 0x1000 Operation 2 15 PRGS430 DLL Description 2 16 FN0009 EraseCheckFile long int EraseCheckFile char IpszFileName long int iFileType This function checks if all memory addresses which are in the file are erased IpszFilName 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 lo
19. is reset and Vcc is set to 0 0 V the voltage should be set after the first user action to validate the correct value IBaudRate valid baud rates are 9600 19200 38400 56800 and 115200 baud The default baud rate after installation is 115200 baud lpszComPort the name of the communication port COM1 COM2 COM3 or COM4 Example 1FuncReturn InitCom COM1 115200 FN0002 ReleaseCom long int ReleaseCom void This new function is the counterpart to InitCom It allows to close a communication with the MSP PRGS430 hardware Vcc is set to 0 and all outputs are set to the Hi Z state Example IFuncReturn ReleaseComm FN0003 SetDeviceType Example lFuncReturn SetDeviceType char lpszDeviceName Selects the device type IpszDeviceName name of the device in file device cfg Example 1FuncReturn SetDeviceType MSP430F1121 Operation 2 13 PRGS430 DLL Description 2 14 FN0004 InitTarget long int InitTarget char IpszDeviceName Initializes the JTAG access to the target device detects the device type and reports when the detected device does not match the parameter DeviceName passed IpszDeviceName name of the device in file device cfg Example lFuncReturn InitTarget MSP430F1121 FN0005 ReleaseTarget long int ReleaseTarget void This function performs a PUC and releases the JTAG access to the target device All JTAG signals from the serial programming adapter are switched to
20. or enhanced plastic Only products designated by TI as military grade meet military specifications Buyers acknowledge and agree that any such use of TI products which TI has not designated as military grade is solely at the Buyer s risk and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO TS 16949 requirements Buyers acknowledge and agree that if they use any non designated products in automotive applications TI will not be responsible for any failure to meet such requirements Following are URLs where you can obtain information on other Texas Instruments products and application solutions Products Applications Amplifiers amplifier ti com Audio www ti com audio Data Converters dataconverter ti com Automotive www ti com automotive DLP Products www dlp com Broadband www ti com broadband DSP dsp ti com Digital Control www ti com digitalcontrol Clocks and Timers www ti com clocks Medical www ti com medical Interface interface ti com Military www ti com military Logic logic ti com Optical Networking www ti com opticalnetwork Power Mgmt power ti com Security www ti com security Microcontrollers microcontroller ti com Telephony www ti com telephony RFID www ti rfid com Video amp Imaging www ti c
21. 9 2 25 Use of a Project ini File 22 ees 2 9 2 3 Command Line Options 214 12 ane eee ed 2 10 2 3 1 General Definitions eens 2 10 2 3 2 Return Values Error Codes in ini File 2 12 24 PRGS430 DLL Description 00 cece tees 2 13 2 4 1 Return Values Error Codes From PRGS430 DLL 2 23 2 2 een 3 1 3 1 Specifications do eod pa kaart 3 2 2 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 LEES ER 3 6 3 7 Interconnection of MSP PRGS430 to Flash Based MSP430 Devices 3 7 Hex Object Format cee ele e a aan nn A 1 A 1 Intel Hex Object Format nents A 2 2 W TXT File Format 22 are A 3 SCHEMAlICS Emm B 1 vii Figures rer rr T l askonwr 00Aonp n ADT430 Program ICONS ii siani o aa adi aara aaa eee nennen nennen 1 2 Serial Programming ocn 1 3 MSP430 Programmer Dialog Box
22. CC WARNING 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 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 repres
23. CHK cmd READ cemd RST cmd BLOW Options COM x BR XXXXXX Dev SVolt x x SVoff 0 1 filename FILE filename 2 10 Program command Verify command Erase command Erase check command Read out command Reset command Blow fuse command Specifies the serial port COM 1 COM 2 COM 3 or COM 4 Sets baud rate to be used 9600 19200 38400 57600 115200 e g BR 57600 Selects the device according to the name in the device cfg file e g Dev MSP430F 1121 Selects supply voltage MSP VCC of the programming adapter The voltage is supplied between GND and MSP VCC e g Svolt 3 0 Switches off supply voltage after execution 0 Disable do not switch off 1 Enable switch off Specifies name of the object file to be programmed or verified Second way to define the filename space separated 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 OxYYYY Optio
24. ED 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 Tl 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 Tl 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 F
25. GUI 2 2 1 Basic Procedure The following steps should be used to program the MSP430 devices 1 2 3 4 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 Select the correct device and supply voltage Select the name of the object file TI TXT txt or Intel hex a43 format 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 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 ge MSP430 Programmer Mein Menor Operation 2 3 Programming MSP430 Devices With the GUI 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
26. Hi Z The device starts program execution if it is still connected to Vcc Example 1FuncReturn ReleaseTarget FN0006 Erase long int Erase long int wStart long int wLength long int Flags This function erases flash memory if available The protection of areas can be disabled by setting the DISABLE TI MEM PROTECT Bit in Flags wStart start address of the area to be erased Allowed values 0x0000 0xFFFE see memory map of the corresponding device wLength length of the area Allowed values 0x0000 0xFFFE see the memory map of the corresponding device If erasing information and main memory segments first erase the information memory segments then erase the main memory segments The mass erase sequence then would be Erase InfoStart InfoLength 0 Erase MainStart MainLength 0 The function invokes a mass erase for information or main memory if the start address and the complete memory range of the information or main memory is specified If the range specified is not complete for that device a segment erase of the individual segments is performed Flags DISABLE TI MEM PROTECT 0x01 If this bit is set the memory protection settings in device cfg are ignored Example lFuncReturn Erase long 0xF000 long 0x1000 long 1 PRGS430 DLL Description Note For some MSP430 family members e g MSP430F2xxx devices portions of flash information memory are factory preprogrammed with calibration data Depending
27. T FILETYPE_INTEL_HEX 0x02 file type is Intel hex Function returns success or first address with mismatching data Example 1FuncReturn VerifyFile test txt long 0 FN00013 VerifyFileRange long int VerifyFileRange char IpszFileName long int iFileType long int wStart long int wLength This function evaluates if the memory contents of the target device are equal to the file contents in a passed range IpszFileName 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 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 Function returns success or first address with mismatching data Example 1FuncReturn VerifyFileRange test txt long 0 long OxF000 long 0x1000 FN0014 ProgramData long int ProgramData long int wStart long int wLength void IpData This function writes data into an MSP430 device Protection of ranges of memory locations defined in the DEVICE CFG file can be disabled by setting the DISABLE TI MEM PROTECT Bit in Flags Operation 2 17 PRGS430 DLL Description 2 18 wStart Start address of the range that is to be erased Allowed values 0x0000 0xFFFE se
28. Warning Warning vi 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 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 Contents Installation and Setup ecane samaa a eee nn nun 1 1 1 1 Installing the Software 1 2 1 2 Installing the Hardware RII 1 3 Operation M 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 nent eee eee 2 3 2 2 2 Description of the MSP PRGS430 GUI 2 4 2 23 Error Messages xA Us UR PARS RAS AREE RET EVEN UE 2 6 2 2 4 Content of PRGS430 ini File ooooocccccccocnnncncn 2
29. communication port COMx and baud rate The device configuration and memory type 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 Ewon name SubFuncions __ Slots the are ofthe leo program merher or TXT oman Device Select __ Slets the MSP420 device ype o program via pul mera Supply Voltage Vcc switch off If selected default the supply voltage is switched off after each MSP430 access otherwise the supply voltage remains connected l 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 Program With Erase Check Erase check is performed before programming operation is executed With Each section is verified after it is programmed or an error message is a 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 verif
30. e 1 2 1 2 installing the Hardware a 1 3 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 Accessories Adt430 d 222965430 Help Favorites LE3Intemet Explorer gt E PRGS430 READ ME FIRST fm Programs 3 Documents E uninstall MSP PRGS430 Settinns b 7 The appropriate program group and icons a
31. e for such altered documentation Information of third parties may be subject to additional restrictions Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice TI is not responsible or liable for any such statements TI products are not authorized for use in safety critical applications such as life support where a failure of the TI product would reasonably be expected to cause severe personal injury or death unless officers of the parties have executed an agreement specifically governing such use Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications and acknowledge and agree that they are solely responsible for all legal regulatory and safety related requirements concerning their products and any use of TI products in such safety critical applications notwithstanding any applications related information or support that may be provided by TI Further Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety critical applications TI products are neither designed nor intended for use in military aerospace applications or environments unless the TI products are specifically designated by TI as military grade
32. e memory map of the corresponding device wLength Length of the range Allowed values 0x0000 0xFFFE see memory map of the corresponding de vice IpData Pointer to the Data to be programmed Flags The bits in Flags control the operation of ProgramData Example lFuncReturn ProgramData long 0xF000 long 0x1000 void lpData FN0015 ProgramFile long int ProgramFile char IpszFileName long int iFileType long int iFlags char IpszProjectlni This function writes data from the file to the MSP430 device The protection of ranges of memory locations defined in the DEVICE CFG file can be disabled by setting the DISABLE TI MEM PROTECT Bit in Flags If the PGM WITH ERASE option are not selected the program data is preserved This means that the data is read from the flash and replaced with the new data All other information is restored automatically The handling of the information memory works with the same mechanism For the fastest programming speed select the PGM WITH ERASE and PGM ERASE INFO options IpszFileName Name of the file to be written into the target 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 iFlags DISABLE TI MEMPROTECT 0x01 PGM WITH ERASE 0x02 Erases the main memory before programming PGM ERASE INFO 0x04 Erases the info memory before programming
33. entative 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 Preface Read This First About This Manual 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 D D DO 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
34. es Topic Page 3 1 Specifications 3 2 3 2 BasicHints as 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 lt 4 0000 aaa a nenne na 3 6 3 7 Interconnection of MSP PRGS430 to Flash Based MSP430 Devices 5 2555 2 a nun an ees 3 7 3 1 Specifications 3 1 Specifications The specifications for the MSP430 hardware are shown in Table 3 1 Table 3 1 MSP430 Hardware Specifications 3 2 Basic Hints 3 2 Temperature range 10 C 45 C Humidity 40 70 Power supply 14 V 20 V 200 mA minimum Dimensions 150 mm W x 30 mm H x 95 mm D These basic hints are useful for programming MSP430 devices or MSP430 devices on printed wire boards PWB a a All Vcc pins of an MSP430 device are tied together and connected to the most positive terminal of the supply All Vss pins of an MSP430 device are tied together and connected to the most negative terminal of the supply The interface should supply the MSP430 with proper conditions according to the device data sheet in terms of current voltage levels and timing conditions Make sure the proper signal connections see Section 3 3 are made Short cables to interc
35. ge shown in Figure 2 3 appears Figure 2 3 Communication Error Box for Blown Fuse MSP430 Programmer e Target fuse is blown Additional message boxes appear for general error messages such as erase check see Figure 2 4 Figure 2 4 Erase Check Error Message MSP430 Programmer x Erase check error at target address OxFODO When a read error is detected in the input file such as a format error the following message is displayed see Figure 2 5 2 6 Programming MSP430 Devices With the GUI Figure 2 5 Data Error MSP430 Programmer e Error reading file line 2 Operation 2 7 Programming MSP430 Devices With the GUI Table 2 2 Error Messages Error Type Communication Communication failed Communication Communication Communication Communication Missing setting of Vcc MSP430 MSP430 MSP430 MSP430 MSP430 MSP430 MSP430 MSP430 Setting Setting Setting Setting Setting Setting Setting Setting Error at target address during erase check or verify Setting Setting System System System File type could not be detected System System System System Windows Error during file 2 8 Error Message Adapter not connected Synchronization with adapter failed The present adapter is not an MSP PRGS430 Target not connected Wrong JTAG version PUC failed Wrong target Target fuse is blown Blown fuse failed Supply voltage to low Fuse not relea
36. ides the reset functionality for the target Flags Flags is a bitmap and determines the type of reset PUC 0x01 RST NMI 0x02 WITH RELEASE 0x04 Reset 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 1FuncReturn Reset long 5 PRGS430 DLL Description FN0022 SetNotificationWnd LONG SetNotificationWnd LONG hWnd LONG IMessagelD SetNotificationWnd enables the status notification of a window hWnd passes a window handle and IMessagelD passes a message identifier Each time a notification of the status window is necessary the DLL sends a IMessagelD message to the hWnd window The execution status of an operation is passed in the WParam of this message Completion status of the current operation is passed 0 100 in the LParam The following status codes are defined Status WParam Current Operation STATUS_CONNECTSPA 1 Connecting to SPA430 STATUS_CONNECTTARGET 3 Connecting to target STATUS_RELEASETARGET 5 Releasing target STATUS_RELEASESPA 7 Releasing SPA430 STATUS_RESETTARGET 9 Resetting target STATUS_ERASE 11 Erasing target STATUS_ERASECHECK 13 Erase checking target STATUS_PATTERNCHECK 15 Pattern checking target STATUS_VERIFY 17 Verifying target STATUS_PROGRAM 19 Programming target STATUS_READOUT 21 Reading
37. ific device location of the supply and JTAG pins Ensure that all positive and negative supply pins are connected together Figure 3 4 MSP PRGS430 Used to Program OTP EPROM Based MSP430 Devices 3 6 A Vcc AVcc DVcc 10 uF 0 1 uF 47 kQ T ane MSP430Pxxx MSP430Exxx e RST NMI VCC MSP TDO TDI A mans e TDI VPP XOUT TMS Tiis TEST VPP TCK TCK GND RST 68 68 kQ _ TEST VPP XOUT Vgs AVgs DVsg The RST NMI terminal on the MSP430 device has to be held high by an external resistor during access of the device through JTAG In a noisy environment consider using an additional capacitor from RST NMI to VSS zz Note The example schematic shows a system where the target voltage is supplied by the MSP PRGS430 For in system programming with an external supply voltage do not connect pin 2 of the JTAG connector In this case the supply voltage setting in the PRGS430 must be adjusted to the external supply voltage level The TEST VPP connection is only required on lower pin count devices with multiplexed JTAG pins EEE Interconnection of MSP PRGS430 to Flash Based MSP430 Devices 3 7 Interconnection of MSP PRGS430 to Flash Based MSP430 Devices The circuit diagram in Figure 3 5 shows the connections required to program flash based MSP430 devices MSP430Fxxx with the MSP PRGS430 programming adapter Consult the device data sheet for the
38. known target 10 Wrong target 11 No target selected 12 Target fuse is blown 13 Blow fuse failed 14 Missing setting of Vcc 15 Wrong Vcc selected 16 Wrong baudrate 17 Communication port error 18 DEVICE CFG corrupted 19 General error 20 The selected range is invalid 21 Wrong argument 22 Error during file 23 File type could not be detected 24 Unexpected end of file 25 PROJECT INI corrupted 26 Vcc voltage too low for selected function 27 Fuse not release for this device 101 Error at target address during erase check or verify 102 Unknown command line option 103 Command line option out of valid range 104 Filename mismatch 105 Error in device cfg 2 12 PRGS430 DLL Description 2 4 PRGS430 DLL Description The PRGS430 dll is used to communicate with the MSP PRGS430 hardware and the connected MSP430 device The initialization of the PRGS430 should be done with the following sequence InitCom SetDeviceType SetVcc InitTarget ReleaseTarget ReleaseCom Several examples showing how the DLL could be used are located in the DLL Usage Examples subdirectory of the PRGS430 system This dll could be used separately using the following conventions FN0001 InitCom long int InitCom char IpszComPort long int IBaudRate InitCom initializes opens the given communications port establishes communication with the PRGS430 hardware and sets the baud rate of the MSP PRGS430 If successful the MSP PRGS430
39. n erase erasecheck verify range start length OxYYYY Options for Read Out Command RO 1 2 Option read out by device range 1 Device 2 Range RRange 0xXXXX OxYYYY Option read out range start OxXXXX length OxYYYY 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 MSP430F 149 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 2 3 2 Return Values Error Codes in ini File The error code is returned to the PC operating system and also is stored in PRGS430 ini File in the Options section LastResult 0 0 Ok 2 Communication failed 3 Target not connected 4 Adapter not connected 5 Wrong JTAG version 6 PUC failed 7 Synchronization with adapter failed 8 The present adapter is not an MSP PRGS430 9 Un
40. ng 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 0OxFFFF FN00011 VerifyData long int VerifyData long int wStart long int wLength void IpData 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 IpData Pointer to buffer with data bytes in it Function returns success or first address with mismatching data Example IFuncReturn VerifyData long 0xF000 long 0x1000 void IpData PRGS430 DLL Description FN00012 VerifyFile long int VerifyFile char IpszFileName long int iFileType This function checks if the memory contents of the target device are equal to the file contents IpszFileName 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 TX
41. nual The connections from the MSP430 terminals must follow EMI rules such as short lines and ground planes If TMS line receives one negative pulse by EMI strike the fuse current is activated with fuse version 1 0 The fuse current flows from TDI VPP pin to GND or VSS Table 3 3 Programming Adapter Signal Levels 3 4 Signal Pin TMS TCK TDI VPP TDO TDI XOUT RST NMI Test VPP Signal Pin Levels VSS or VCC_MSP VSS or VCC_MSP VSS or VCC_MSP or VPP VSS or VCC_MSP VSS or VCC_MSP VSS or VCC_MSP VSS or VCC_MSP or VPP MSP PRGS430 Circuit Diagrams 3 4 MSP PRGS430 Circuit Diagrams The MSP PRGS430 circuit diagrams are found in Appendix 3 5 Location of Components MSP PRGS430 Figure 3 3 MSP PRGS430 Components
42. ogrammed with calibration data Depending on which method is used for erasing the flash memory this calibration data may be erased Should the calibration data be conserved it must be read out prior to the information memory erase or a flash erase method that does not affect the calibration data memory locations must be used See the respective device data sheet for further information on preprogrammed calibration data memory locations If it should be saved the following erase options must not be used as the Info memory will be entirely erased Program with Erase Flash flash erase options Main and Info Memory or Erase Flash by Device Instead Erase Flash by File or by Range should be used Operation 2 5 Programming MSP430 Devices With the GUI 2 2 3 Error Messages One of the following messages may show up if JTAG communication is not established correctly If the MSP430 device to program can not be found the message shown in Figure 2 2 appears This problem can be caused by the PRGS430 not being connected to the hardware the device not inserted or incorrectly inserted into the socket or the device not powered The problem could be that the PRGS430 is not connected to the hardware the device is not inserted or is incorrectly inserted into the socket or the device is not powered Figure 2 2 Communication Error Box MSP430 Programmer e Target not connected If the fuse is already blown the error messa
43. om video and ZigBee Solutions www ti com lprf Wireless www ti com wireless Mailing Address Texas Instruments Post Office Box 655303 Dallas Texas 75265 Copyright 2009 Texas Instruments Incorporated
44. on which method is used for erasing the flash memory this calibration data may be erased Should the calibration data be conserved it must be read out prior to the information memory erase or a flash erase method that does not affect the calibration data memory locations must be used See the respective device data sheet for further information on preprogrammed calibration data memory locations FN0007 EraseFile long int EraseFile char IpszFileName long int iFileType long int Flags char IpszProjectlni EraseFile erases all addresses used in the specified 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 Flags DISABLE TI MEM PROTECT 0x01 If this bit is set the memory protection setting device cfg is ignored IpszProjectlni name of the project ini file if protection settings from this file shall be used If there is no protection replace IpszProjectlni with NULL Example lFuncReturn EraseFile text txt long 0 long 0 NULL Note For some MSP430 family members e g MSP430F2xxx devices portions of flash information memory are factory preprogrammed with calibration data Depending on which method is used for erasing the flash memory this calibration data may be erased Should the calibration data be conserved it must be read out prior to the information memory erase or
45. onnect the interface to the MSP430 device or PWB less than 20 cm is recommended Ensure low impedance interconnections especially for the path of the programming and fuse blow voltage When a device with a transparent window MSP430E3xx family is programmed the window should be already covered with an opaque label while the device is programmed Since ambient light contains the correct wavelength for erasure keep the transparent window covered after the device is programmed Programming Adapter Target Connector Signals 3 3 Programming Adapter Target Connector Signals The target connector signals for the programming adapter ensure communication between the programming adapter and MSP430 devices and supply low energy to systems without extra supply sources Figure 3 1 and Figure 3 2 show the target connector signals for the programming adapter Figure 3 1 25 Sub D at Programming Adapter 25 Pin Sub D at the Programming Adapter 4 TDO TDI 14 2 VCC_MSP TDIVpp 15 TMS TCK GND RST NMI 16 O XOUT TCLK O 17 O Test Vpp ACLK ACLKEN 20 TCLKEN mk OO OW e ar 0 N _ 24 12 e SIG20 25 aT SMCLKEN SENSE Figure 3 2 14 Pin Connector at End of Interconnect Cable 14 Pin Connector Female at End of Interconnect Cable VCC_MSP TDO TDI NC TDI Vpp XOUT TMS Tes Vpp E TCK ACLK GND ACLKEN
46. re 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 Installing the Hardware Installing the Hardware To install the programming adapter hardware perform the following steps 1 2 Using the 9 SUB D connector connect the programming adapter to the serial port 1 of the PC Connect an external power supply to the programming adapter The voltage of the power supply must be between 14 V and 20 V 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 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 The MSP430 devices in a socket or on a PWB should be connected to the programming adapter through the 14 pin cable The programming adapter provides the selected supply voltage at pin 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 Vcc is used for the MSP430 the internal voltage VCC_MSP must be set to the same voltage level Figure 1 2 Serial Programming Adapter Power Supply N RS232 From
47. sed for this device Unknown target No target selected Wrong Vcc selected Wrong baud rate Communication port error The selected range is invalid Wrong argument Unknown command line option Command line option out of valid range DEVICE CFG corrupted General error Unexpected end of file PROJECT INI corrupted Filename mismatch Error in DEVICE CFG Content of PRGS430 ini File 2 2 4 Content of PRGS430 ini File The last settings of the PRGS430 graphical user interface GUI are stored in the ini file before exiting the program This information is stored under the Program Device System section Additionally the following parameters are in the Options section and may be modified Options BlowFuse 1 The blow fuse button in the GUI is disabled to prevent accidental blow of the irreversible fuse LastResult 0 If the program is called with command line parameter the error code which is returned to the system when exiting the program is also stored here 2 2 5 Use of a Project ini File Some default options could be changed within a Project ini file This file has to be in the same directory as the object code file The following variables could be defined or redefined there The name of the file should have the same name as the object file with the extension ini ProgramDevice UserMemProtect Start Size UserMemProtect2 Start Size UserMemProtect3 Start Size UserMemProtectn
48. specific device location of the power supply and JTAG pins Ensure that all positive and negative power supply pins are connected together The signal TEST VPP is only required on lower pin count devices with multiplexed JTAG pins In this case special attention must be given to the circuit design around the four JTAG pins TDO TDI TDI TMS and TCk since they are shared between the applications hardware and the JTAG interface used by programming adapter Figure 3 5 MSP PRGS430 Used to Program Flash Based MSP430 Devices Voc A O e e Vcc AVcc DVcc 10 uF 0 1 uF 47 MSP430Fxxx RST NMI VCC_MSP TDO TDI TDI VPP TDI VPP TMS TCK TMS TCK GND RST TEST VPP TEST VPP Vss AVss DVss Note The example schematic shows a system where the target voltage is supplied by the MSP PRGS430 For in system programming with an external supply voltage do not connect pin 2 of the JTAG connector In this case the PRGS430 supply voltage setting must be adjusted to the external supply voltage level The TEST VPP connection is only required on lower pin count devices with multiplexed JTAG pins Hardware 3 7 3 8 Appendix Hex Object Format This appendix discusses the hex object format Topic Page IntelkHex Object Format eee A 2 A 2 TI TXCHFile Format A 3 A 1 Intel Hex Object Format A 1 Intel Hex Object Format
49. target out STATUS_BLOWFUSE 23 Blowing fuse FN0023 GetDeviceCfgInfo long int GetDeviceCfglInfo long int InfoCmd long int Infoldx void IpBuf InfoType DEVICE_COUNT 0x01 GetDeviceCfglnfo returns number of devices in Device cfg Infoldx and IpBuf are ignored SELECT_DEVICE 0x02 Selects the given device for further commands device number in Infolndex first device is number 0 IpBuf is ignored DEVICE NAME 0x03 Fills the name of the selected device into IpBuf Infoldx is ignored DEVICE ID 0x04 Fills the DevicelD into IpBuf Infoldx is ignored DEVICE DEFAULTOPTIONS 0x05 Fills the default options into IpBuf Infoldx is ignored DEVICE MEMDEF COUNT 0x06 GetDeviceCfgInfo returns the number of memory definitions for selected device IpBuf and Infoldx are ignored Operation 2 21 PRGS430 DLL Description 2 22 DEVICE_MEMDEF 0x07 Fills the definition of a memory definition index passed by Infoldx into IpBuf DEVICE_MEMPROTECT_COUNT 0x08 GetDeviceCfglInfo returns the number of memory protection definitions for the selected device IpBuf and Infoldx are ignored DEVICE_MEMPROTECT 0x09 Fills the definition of a memory protection definition index passed by Infoldx into IpBuf DEVICE VCC 0x0A GetDeviceCfglInfo returns the Vcc setting for selected device in mV IpBuf and Infoldx are ignored DEVICE VPP 0x0B GetDeviceCfglInfo returns the Vpp setting for selected device in mV IpBuf and
50. tart long int wLength void IpBuffer 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 IpBuffer 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 PRGS430 DLL Description 2 20 Example 1FuncReturn ReadOutData long 0xF000 long 0x1000 void lpBuffer FN0019 ReadOutFile long int ReadOutFile long int wStart long int wLength char IpszFileName 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 IpszFileName 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 prov
51. the extent TI deems necessary to support this warranty Except where mandated by government requirements testing of all parameters of each product is not necessarily performed TI assumes no liability for applications assistance or customer product design Customers are responsible for their products and applications using Tl components To minimize the risks associated with customer products and applications customers should provide adequate design and operating safeguards TI does not warrant or represent that any license either express or implied is granted under any TI patent right copyright mask work right or other TI intellectual property right relating to any combination machine or process in which TI products or services are used Information published by TI regarding third party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof Use of such information may require a license from a third party under the patents or other intellectual property of the third party or a license from TI under the patents or other intellectual property of TI Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties conditions limitations and notices Reproduction of this information with alteration is an unfair and deceptive business practice TI is not responsible or liabl
52. y 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 Erase Flash erased All other memory locations keep their old data smart erase The entire flash memory of the device is erased An erase is performed depending on the values entered in the range fields P Checks if memory locations are erased By file Checks only the memory locations used by the selected object file Erase Check 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 Programming MSP430 Devices With the GUI Table 2 1 MSP430 Function Buttons and Descriptions Continued Verify the data in the MSP430 device according to the selected option By file A verification of the memory locations vs the selected object file is Verify performed By file and by device are the same functions By range Verify memory locations defined in the range field vs the data in the selected file The defined range should not contain memory locations outside the data stored in the selected file otherwise an error is reported The on chip security fuse is irreversibly disabled and any access such Blow Fuse as reading or programming of the MSP430 is impossible via
Download Pdf Manuals
Related Search
Related Contents
User manual EASOTIC®: UN MODE D`ADMINISTRATION UNIQUE ー 踏台(上わく付き専用脚立) ー 取扱説明書 Bravetti FP201 Mixer User Manual Asrock H87M MOVI-SWITCH® -1E/-2S / Manual de instrucciones - SEW RENO 低温プラズマ滅菌システム Premium and Atrium using Unity Pro Descargue aquí - CTM Electrónica Boss Audio Systems Marine Copyright © All rights reserved.
Failed to retrieve file