msp430應(yīng)用筆記slau048c微控設(shè)計(jì)網(wǎng)http技術(shù)_第1頁(yè)
msp430應(yīng)用筆記slau048c微控設(shè)計(jì)網(wǎng)http技術(shù)_第2頁(yè)
msp430應(yīng)用筆記slau048c微控設(shè)計(jì)網(wǎng)http技術(shù)_第3頁(yè)
msp430應(yīng)用筆記slau048c微控設(shè)計(jì)網(wǎng)http技術(shù)_第4頁(yè)
msp430應(yīng)用筆記slau048c微控設(shè)計(jì)網(wǎng)http技術(shù)_第5頁(yè)
已閱讀5頁(yè),還剩55頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

EVMIMPORTANTNOTICE

TexasInstruments(TI)providestheenclosedproduct(s)underthefollowingconditions:

ThisevaluationkitbeingsoldbyTIisintendedforuseforENGINEERINGDEVELOPMENTOREVALUATIONPURPOSESONLYandisnotconsideredbyTItobefitforcommercialuse.Assuch,thegoodsbeingprovidedmaynotbecompleteintermsofrequireddesign-,marketing-,and/ormanufacturing-relatedprotectiveconsiderations,includingproductsafetymeasurestypicallyfoundintheendproductincorporatingthegoods.Asaprototype,thisproductdoesnotfallwithinthescopeoftheEuropeanUniondirectiveonelectromagneticcompatibilityandthereforemaynotmeetthetechnicalrequirementsofthedirective.

ShouldthisevaluationkitnotmeetthespecificationsindicatedintheEVMUser’sGuide,thekitmaybereturnedwithin30daysfromthedateofdeliveryforafullrefund.THEFOREGOINGWARRANTYISTHEEXCLUSIVEWARRANTYMADEBYSELLERTOBUYERANDISINLIEUOFALLOTHERWARRANTIES,EXPRESSED,IMPLIED,ORSTATUTORY,INCLUDINGANYWARRANTYOFMERCHANTABILITYORFITNESSFORANYPARTICULARPURPOSE.

Theuserassumesallresponsibilityandliabilityforproperandsafehandlingofthegoods.Further,theuserindemnifiesTIfromallclaimsarisingfromthehandlingoruseofthegoods.Pleasebeawarethattheproductsreceivedmaynotberegulatorycompliantoragencycertified(FCC,UL,CE,etc.).Duetotheopenconstructionoftheproduct,itistheuser’sresponsibilitytotakeanyandallappropriateprecautionswithregardtoelectrostaticdischarge.

EXCEPTTOTHEEXTENTOFTHEINDEMNITYSETFORTHABOVE,NEITHERPARTYSHALLBELIABLETOTHEOTHERFORANYINDIRECT,SPECIAL,INCIDENTAL,ORCONSEQUENTIALDAMAGES.

TIcurrentlydealswithavarietyofcustomersforproducts,andthereforeourarrangementwiththeuserisnotexclusive.

TIassumesnoliabilityforapplicationsassistance,customerproductdesign,softwareperformance,orinfringementofpatentsorservicesdescribedherein.

PleasereadtheEVMUser’sGuideand,specifically,theEVMWarningsandRestrictionsnoticeintheEVMUser’sGuidepriortohandlingtheproduct.Thisnoticecontainsimportantsafetyinformationabouttemperaturesandvoltages.Forfurthersafetyconcerns,pleasecontacttheTIapplicationengineer.

Personshandlingtheproductmusthaveelectronicstrainingandobservegoodlaboratorypracticestandards.

NolicenseisgrantedunderanypatentrightorotherintellectualpropertyrightofTIcoveringorrelatingtoanymachine,process,orcombinationinwhichsuchTIproductsorservicesmightbeorareused.

MailingAddress:

TexasInstruments

PostOfficeBox655303Dallas,Texas75265

Copyright2003,TexasInstrumentsIncorporated

EVMWARNINGSANDRESTRICTIONS

ItisimportanttooperatethisEVMwithinthespecifiedinputandoutputrangesdescribedintheEVMUser’sGuide.

Exceedingthespecifiedinputrangemaycauseunexpectedoperationand/orirreversibledamagetotheEVM.Iftherearequestionsconcerningtheinputrange,pleasecontactaTIfieldrepresentativepriortoconnectingtheinputpower.

Applyingloadsoutsideofthespecifiedoutputrangemayresultinunintendedoperationand/orpossiblepermanentdamagetotheEVM.PleaseconsulttheEVMUser’sGuidepriortoconnectinganyloadtotheEVMoutput.Ifthereisuncertaintyastotheloadspecification,pleasecontactaTIfieldrepresentative.

Duringnormaloperation,somecircuitcomponentsmayhavecasetemperaturesgreaterthan60C.TheEVMisdesignedtooperateproperlywithcertaincomponentsabove60Caslongastheinputandoutputrangesaremaintained.Thesecomponentsincludebutarenotlimitedtolinearregulators,switchingtransistors,passtransistors,andcurrentsenseresistors.ThesetypesofdevicescanbeidentifiedusingtheEVMschematiclocatedintheEVMUser’sGuide.Whenplacingmeasurementprobesnearthesedevicesduringoperation,pleasebeawarethatthesedevicesmaybeverywarmtothetouch.

MailingAddress:

TexasInstruments

PostOfficeBox655303Dallas,Texas75265

Copyright2003,TexasInstrumentsIncorporated

Preface

ReadThisFirst

AboutThisManual

ThisdocumentdescribestheMSP430-familyhardware,operation,andsoftwareinstallationandsetup.

HowtoUseThisManual

Thisdocumentcontainsthefollowingchapters:Chapter1–InstallationandSetupChapter2–Operation

Chapter3–Hardware

AppendixA–IntelHexObjectFormatAppendixB–Schematics

NotationalConventions

Thisdocumentusesthefollowingconventions.

Programcodeandprogramexamplesareshowninaspecialtypefacesimilartoatypewriter’s.

Hereisanexampleofprogrammingcode:

longintVerifyFile(char*lpszFileName,longintiFileType)

Trademarks

MicrosoftWindowsisatrademarkofMicrosoftCorporation.

Contents

InstallationandSetup............................................................

InstallingtheSoftware.......................................................

InstallingtheHardware......................................................

Operation.......................................................................

Software/HardwareLayersofthePRGS430Environment.......................

1-1

1-2

1-3

2-1

2-2

ProgrammingtheMSP430DevicesWiththeGUI 2-3

BasicProcedure.....................................................

DescriptionoftheMSP-PRGS430GUI.................................

2-3

2-4

ErrorMessages 2-5

ContentofthePRGS430.iniFile.......................................

Useofa[Project].iniFile..............................................

2-8

2-8

CommandLineOptions 2-9

GeneralDefinitions 2-9

ReturnValues/ErrorCodesinthe.iniFile 2-11

PRGS430.DLL—Description 2-12

ReturnValues/ErrorCodesFromthePRGS430.DLL 2-22

Hardware 3-1

Specifications 3-2

BasicHints 3-2

ProgrammingAdapterTargetConnectorSignals 3-3

MSP-PRGS430CircuitDiagrams 3-5

LocationofComponents,MSP-PRGS430 3-5

InterconnectionofMSP-PRGS430toMSP430x31x 3-6

InterconnectionofMSP-PRGS430toMPS430x32xandMSP430x32xA............

InterconnectionofMSP-PRGS430toMSP430x33xandMSP430x33xA...........

InterconnectionofMSP-PRGS430toMSP430x11xorMSP430x11x1.............

3-9

3-12

3-13

InterconnectionofMSP-PRGS430toMSP430x12xorMSP430x12x2 3-14

InterconnectionofMSP-PRGS430totheMSP430x13xorMSP430x14x 3-15

InterconnectionofMSP-PRGS430totheMSP430x41x 3-16

InterconnectionofMSP-PRGS430totheMSP430x43xorMSP430x44x 3-17

IntelHexObjectFormatA-1

IntelHexObjectFormat.....................................................A-2

TI-TXTFileFormat.........................................................A-3

SchematicsB-1

Figures

1–1

ADT430ProgramIcons........................................................

1-2

1–2

SerialProgrammingAdapter....................................................

1-3

2–1

MSP430ProgrammerDialogBox...............................................

2-3

2–2

CommunicationErrorBox......................................................

2-6

2–3

CommunicationErrorBoxforBlownFuse........................................

2-6

2–4

EraseCheckErrorMessage....................................................

2-6

2–5

DataError....................................................................

2-6

3–1

25-PinSub-DattheProgrammingAdapter.......................................

3-3

3–2

14-PinConnectorattheEndoftheInterconnectCable.............................

3-3

3–3

MSP-PRGS430Components...................................................

3-5

3–4

MSP-PRGS430UsedtoProgramtheMSP430x31xIDLDevice......................

3-6

3–5

MSP-PRGS430UsedtoProgramtheMSP430x31xSIDLDevice....................

3-7

3–6

3–7

MSP-PRGS430UsedtoProgramthePMSP430E31xFZDevice.....................

MSP-PRGS430UsedtoProgramtheMSP430x32xIPGand

3-8

MSP430x32xAIPGDevices 3-9

3–8 MSP-PRGS430UsedtoProgramtheMSP430x32xIPMorMSP430x32xAIPM

Devices.....................................................................

3–9 MSP-PRGS430UsedtoProgramthePMS430E32xFZandPMS430E32xAFZDevices.....................................................................

3–10 MSP-PRGS430UsedtoProgramtheMSP430x33xIPJMand

MSP430x33xAIPJM,orthePMS430E33xHFD,PMS430E33xAHFDDevices........

3–11 MSP-PRGS430UsedtoProgramtheMSP430x11xIDW,MSP430x11x1IDW,

3-10

3-11

3-12

MSP430x11xIPW,MSP430x11x1IPW,orthePMS430E11xJLDevices 3-13

3–12 MSP-PRGS430UsedtoProgramtheMSP430x12xIDW,MSP430x12xIPW,

MSP430x12x2IDW,MSP430x12x2IPWandDevices 3-14

3–13 InterconnectionofMSP-PRGS430toMSP430x13xIPMand

MSP430x14xIPMDevices 3-15

3–14 InterconnectionofMSP-PRGS430toMSP430x41xIPM 3-16

3–15 InterconnectionofMSP-PRGS430toMSP430x43xorMSP430x44x 3-17

A–1 IntelHexObjectFormat A–2

Tables

2–1

MSP430FunctionButtonsandDescriptions......................................

2-4

2–2

ErrorMessages...............................................................

2-7

2–3

CommandLineOptions........................................................

2-9

3–1

MSP430HardwareSpecifications...............................................

3-2

3–2

TargetConnectorSignalFunctions..............................................

3-4

3–3 ProgrammingAdapterSignalLevels 3-4

Contents ix

Chapter1

InstallationandSetup

ThischapterdescribestheprocessofinstallingandprogrammingthehardwareandsoftwarefortheMSP430-PRGS430programmingadapterusedwiththeMSP430familyofmicrocontrollers.

Topic Page

InstallingtheSoftware 1-2

InstallingtheHardware 1-3

1-1

InstallingtheSoftware

InstallingtheSoftware

ToinstalltheMSP-PRGS430software,performthefollowingsteps:

InserttheMSP-PRGS430CD-ROMinthecomputer’sCDdrive.Itshouldstartautomatically.AsetuproutinechecksifyouhaveanHTMLbrowserinstalledonyourcomputer.TheMSP430startpageisthendisplayed.(Alternatively,useabrowsertoopenthefileindex.htmthatislocatedintherootdirectoryoftheMSP430CD-ROM.TheMSP430startpageisthendisplayed.)

SelectSoftware

SelectSerialProgrammingAdapter

SelectSaveittodisk.ASaveAsdialogisdisplayed.

UsetheSaveAsdialogtosavePRGS430_Rxxx.exetothecomputer.Notethedirectorypathtothissavedfile.

Navigatetothissavedfile(PRGS430_Rxxx.exe)andexecuteit.Awelcomingmessageisdisplayed.

Followthesetupinstructionsonthescreen.Thesetupprogramguidesyouthroughtheinstallationprocess.

Afteryourunsetup,theMSP430programiconsareinstalledintheselectedfolder.ClickonthePRGS430ReadMeFirsticon,showninFigure1–1,toobtainimportantinformationabouttheprogramdevicehardwareandsoftware.

Figure1–1.ADT430ProgramIcons

TheappropriateprogramgroupandiconsareaddedtotheWindowsprogrammanager.

Tostarttheprogrammingadaptersoftware,clickthePRGS430iconintheselectedprogramgroup(default:ADT430).

InstallingtheHardware

InstallingtheHardware

Toinstalltheprogrammingadapterhardware,performthefollowingsteps:

Usingthe9-pinSUB-Dconnector,connecttheprogrammingadaptertotheserialport(COM1–COM4)ofthePC.

Connectanexternalpowersupplytotheprogrammingadapter.Thevoltageofthepowersupplymustbebetween14Vand20Vdcandmustprovideaminimumof200mAofpower.Thecenterterminalofthesupplyconnectorattheprogrammingadapteristhepluspole.

TheredLEDontheprogrammingadapterlightsifthepowersupplyisproperlyconnected.IftheLEDdoesnotlightandthepowersupplyisproperlyconnected,checktheF1fuseontheprogrammingadapterprinted-wireboard(PWB).

TheMSP430devices,inasocketoronaPWB,shouldbeconnectedtotheprogrammingadapterthroughthe14-pincable.

TheprogrammingadapterprovidestheselectedsupplyvoltageVCCatpin14ofthe25-pinSUB-Dconnector,oratpin2ofthe14-pinconnectorto

supplytheMSP430device.ThesignalnameisVCC_MSP.

IfanexternalsupplyvoltageVCCisusedfortheMSP430,theinternalvoltageVCC_MSPmustbesettothesamevoltagelevel.

PCSerialPort 14–20V

MSP430SerialProgrammingAdapterMSP–PRGS430

Target RS232

Figure1–2.SerialProgrammingAdapter

PowerSupply

RS232FromPC

RS232Out

RS232 200mA

(JTAG) OUT

MayBeConnectedtoanEVK

JTAGConnectorfortheMSP430

InstallationandSetup 1-3

Chapter2

Operation

ThischapterdescribestheprogrammingprocedureforMSP430devicesandtheerrormessagesyoumayencounterduringtheprocedure.

Topic Page

Software/HardwareLayersofthePRGS430Environment 2-2

ProgrammingtheMSP430DevicesWiththeGUI 2-3

CommandLineOptions 2-9

PRGS430.DLL—Description 2-12

2-1

Software/HardwareLayersofthePRGS430Environment

Software/HardwareLayersofthePRGS430Environment

SerialProgrammingAdapter

JTAG

TargetSocketorApplication

TherearethreewaystohandleandcommunicatewiththePRGS430hard-ware:

Usingthegraphicaluserinterface(seeSection2.2)Usingcommandlineparameters(seeSection2.3)UsingthePRGS430.dll(seeSection2.4)

Note:thisisthefastestwayifthePRGS430shouldbeusedinanin-systemprogramandtestenvironment.

ProgrammingtheMSP430DevicesWiththeGUI

BasicProcedure

ThefollowingstepsshouldbeusedtoprogramtheMSP430devices:

ClickontheProgramDeviceiconduringtheinstallationselectedprogramgroup(default:ADT430).TheMSP430programmerdialogboxappears.

Thestatuslineatthebottomofthewindowshowstheactualorthemostrecentactivity(seeFigure2–1).

ThestatuslinedisplaysthemessageConnectingtoadapter...untiltheprogrammingadapterisdetectedandthebaudrateisset.

Selectthecorrectdeviceandsupplyvoltage.

Selectthenameoftheobjectfile(TITXT(.txt)orIntelhex(.a43)format).

Selecttheadditionaloptionstoprogram,ifnecessaryusingEraseFlash,EraseCheck,orVerify.

ClickontheProgrambuttontostartprogramming

Thestatuslineatthebottomofthewindowshowstheactualormostrecentactivity(seeFigure2–1).

Figure2–1.MSP430ProgrammerDialogBox

DescriptionoftheMSP-PRGS430GUI

AnMSP430deviceiscommonlyprogrammedasfollows:

SelectthefilethatcontainsthedatatoprogramfromtheMSP430programmerdialogbox(seeFigure2–1).

Selectthedevice.Anerrormessageappearsonthescreenifthedeviceselectedisdifferentornotconnected.

Settherequiredsupplyvoltage,communicationportCOMx,andbaudrate.Thedeviceconfigurationandmemorytypeareselectedautomaticallyaccordingtotheselecteddevice.

Usetheprogrambuttontostarttheprogrammingoperation.

Table2–1describesthefunctionofthebuttonsfordifferentoptionsandcombinationsfortheMSP430programmerdialogbox.

Table2–1.MSP430FunctionButtonsandDescriptions

ButtonName

Sub-Functions

Description

FileName

Selectsthenameofthefiletoprogram(intel-hexorTI-txtformat)

DeviceSelect

SelectstheMSP430devicetypetoprogramviapulldownmenu

SupplyVoltage

VCCswitchoff

SelectsthesupplyvoltagefortheMSP430

Ifselected(default),thesupplyvoltageisswitchedoffaftereachMSP430access;otherwise,thesupplyvoltageremainsconnected.

Program

Anobjectcodeisprogrammedtotheon-chipmemoryusingtheselectoptions.

WithEraseFlash

Memoryiserasedbeforeprogramming(onlywithflashdevices).Thefollowingoptionsarepossible:

Mainandinformationmemory

Mainmemoryonly

WithEraseCheck

Erasecheckisperformedbeforeprogrammingoperationisexecuted.

WithVerify

Eachsectionisverifiedafteritisprogrammed,oranerrormessageisdisplayedifverificationfails.

WithBlowFuse

Thecode-protectionfuseisblownaftertheentireobjectcode,withverify,isprogrammed.Thisactionisirreversibleanddisablesfutureon-chipmemoryaccess(readingorprogramming).Thisstepisnotperformedifverifyisdisabledorverifyfails.Awarningisdisplayed.

EraseFlash

Eraseoperationcanbedoneonlywithflashdevices,accordingtotheselectedoption.

Byfile

Onlythememorylocationscorrespondingtotheselectedobjectfileareerased.Allothermemorylocationskeeptheirolddata(smarterase).

Bydevice

Theentireflashmemoryofthedeviceiserased.

Byrange

Aneraseisperformeddependingonthevaluesenteredintherangefields.

EraseCheck

Checksifmemorylocationsareerased.

Byfile

Checksonlythememorylocationsusedbytheselectedobjectfile.

Bydevice

Checkstheentireprogrammablememoryofthedevice.(NoRAMischecked).

Byrange

AnerasecheckisperformedaccordingtotherangeofmemorylocationsintherangeforEraseCheck/Readoutfield.

Table2–1.MSP430FunctionButtonsandDescriptions(Continued)

ButtonName

Sub-Functions

Description

Verify

VerifythedataintheMSP430deviceaccordingtotheselectedoption

Byfile

Averificationofthememorylocationsvs.theselectedobjectfileisperformed.(Byfileandbydevicearethesamefunctions.)

Bydevice

Byrange

Verifymemorylocationsdefinedintherangefieldversusthedataintheselectedfile.Thedefinedrangeshouldnotcontainmemorylocationsoutsidethedatastoredintheselectedfile,otherwiseanerrorisreported.

BlowFuse

Theon-chipsecurityfuseisirreversiblydisabledandanyaccesssuchasreadingorprogrammingoftheMSP430isimpossibleviaJTAG.Accessviabootstraploaderinterfaceispossiblefordeviceswhichsupportthatinterface.

ReadOut

ReadoutdatafromMSP430device.Whenthisfunctionisexecuted,adialogboxappears;thefilenameforthedatatostoreshouldbeselected.

Bydevice

Readouttheentirememoryofthedeviceandstorethedataintothefileselectedinthefilenamefield.

Byrange

Readoutthememorylocationsselectedbytherangefieldandstorethedatainthefileselectedinthefilenamefield.

Reset

TheresetofaMSP430canbeperformedintwoways.Afterreset,theMSP430mayremainunderJTAGcontrolorcanbereleasedtooperatenormallyandexecutetheprogram.

PUC

Asoftwareresetofthechipisgenerated.

RST/NMI

GeneratesahardwareresetbyapplyingalowpulseonRST/NMIpin.

WithJTAG-release

JTAGisreleasedaftertheexecutionofthereset(viaJTAGorRST/NMI).

COMPort

SelectstheComporttowhichtheprogrammingadapterisconnected

BaudRate

Selectsthebaudrateforcommunicationwiththeprogrammingadapterhardware

Help

HelpisavailableforprogrammingMSP430devices,commandbuttons,selectors,andtheobjectfileformatused.

TheHelpmenucanbefoundinthesystemmenuoftheserialprogrammingadaptersoftware(rightclickonthesymbolattheupperleftcorneroftheprogramwindow)orwiththeF1functionkey.

ErrorMessages

OneofthefollowingmessagesmayshowupifJTAGcommunicationisnotestablishedcorrectly:

IftheMSP430devicetoprogramcannotbefound,themessageshowninFigure2–2appears.ThisproblemcanbecausedbythePRGS430notbeingconnectedtothehardware,thedevicenotinsertedorincorrectlyinsertedintothesocket,orthedevicenotpowered.

TheproblemcouldbethatthePRGS430isnotconnectedtothehardware,thedeviceisnotinsertedorisincorrectlyinsertedintothesocket,orthedeviceisnotpowered.

Figure2–2.CommunicationErrorBox

Ifthefuseisalreadyblown,theerrormessageshowninFigure2–3appears.

Figure2–3.CommunicationErrorBoxforBlownFuse

Additionalmessageboxesappearforgeneralerrormessagessuchaserasecheck(seeFigure2–4).

Figure2–4.EraseCheckErrorMessage

Whenareaderrorisdetectedintheinputfile,suchasaformaterror,thefollowingmessageisdisplayed(seeFigure2–5).

Figure2–6.DataError

Table2–2.ErrorMessages

ErrorType ErrorMessageCommunication Communicationfailed!Communication Adapternotconnected!

Communication Synchronizationwithadapterfailed!Communication ThepresentadapterisnotanMSP-PRGS430!Communication MissingsettingofVCC!

MSP430 Targetnotconnected!

MSP430 WrongJTAGversion!

MSP430 PUCfailed!

MSP430 Wrongtarget!

MSP430 Targetfuseisblown!

MSP430 Blownfusefailed!

MSP430 Supplyvoltagetolow!

MSP430 Fusenotreleasedforthisdevice!

Setting Unknowntarget!

Setting Notargetselected!

Setting WrongVCCselected!

Setting Wrongbaudrate!

Setting Communicationporterror!

Setting Theselectedrangeisinvalid!

Setting Wrongargument!

Setting Errorattargetaddress(duringerasecheckorverify)

Setting Unknowncommandlineoption

Setting Commandlineoptionoutofvalidrange

System DEVICE.CFGcorrupted

System Generalerror!

System Filetypecouldnotbedetected!

System Unexpectedendoffile!

System PROJECT.INIcorrupted!

System Filenamemismatch

System ErrorinDEVICE.CFG

Windows ErrorduringfileI/O

ContentofthePRGS430.iniFile

ContentofthePRGS430.iniFile

ThelastsettingsofthePRGS430graphicaluserinterface(GUI)isstoredinthe.inifilebeforeexitingtheprogram.ThisinformationisstoredundertheProgramDeviceSystemsection.

Additionally,thefollowingparametersareinthe[Options]sectionandmaybemodified:

[Options]

\BlowFuse=1TheblowfusebuttonintheGUIisdisabledtopreventaccidentalblowoftheirreversiblefuse.

LastResult=0Iftheprogramiscalledwithcommand-lineparameter,theerrorcodewhichisreturnedtothesystemwhenexitingtheprogramisalsostoredhere.

Useofa[Project].iniFile

Somedefaultoptionscouldbechangedwithina[Project].inifile.Thisfilehastobeinthesamedirectoryastheobjectcodefile.Thefollowingvariablescouldbedefinedorredefinedthere.

Thenameofthefileshouldhavethesamenameastheobjectfilewiththeextension.ini.

[ProgramDevice]UserMemProtect=Start,SizeUserMemProtect2=Start,SizeUserMemProtect3=Start,SizeUserMemProtectn=Start,SizeDisableTIMemProtect=0

MemoryrangesdefinedintheUserMemProtectandUserMemProtect[n]optionarereadoutandreprogrammedaftererase(flashdeviseonly).[n]couldbeanumber2andhavetobeinascendingorder.

IfamemoryprotectionisactivatedinthedevicedefinitionfilefromTexasInstruments,itcouldbeswitchedoffwiththeDisableTIMemProtect=1option.

CommandLineOptions

CommandLineOptions

GeneralDefinitions

0:Off1:Firstselectableoption

1:On 2:Secondselectableoption3:Thirdselectableoption

ThePRGS430.inifileoptionsareusediftheyarenotspecifiedinthecommandline.Thecommandlineoptionoverwritestheinifileoptions.

Theprogramexitsautomaticallyifacommandispassedviathecommandlineandthecommandwasexecuted.Thereisonlyasmallstatuswindowopenedduringtheexecution.

Onlyonecommandidentifier(/CMD:)isallowedwithinthecommandline.Otherwise,theexecutioniscanceledandanerrorisreturned.

Ifanerrorinthecommandlineparameterisdetectedtheprogramexitswithanerrormessage.

filenamemayalsocontainapath.Ifspecialcharactersareusedthenthestringhastobeinsidequotes(forexample,\\server\adt430\PRGfiles\test.txt).

Ifanerrorisdetectedwithinthefilename,theoperationiscanceledandanerrorisreturned

Table2–3.CommandLineOptions

Commands:

/cmd:PRG

Programcommand

/cmd:VFY

Verifycommand

/cmd:ERS

Erasecommand

/cmd:CHK

Erasecheckcommand

/cmd:READ

Readoutcommand

/cmd:RST

Resetcommand

/cmd:BLOW

Blowfusecommand

Options:

/COM:x

Specifiestheserialport:/COM:1,/COM:2,/COM:3,or/COM:4

/BR:xxxxxx

Setsbaudratetobeused:9600/19200/38400/57600/115200,e.g./BR:57600

/Dev:

Selectsthedeviceaccordingtothenameinthedevice.cfgfile,e.g./Dev:MSP430F1121

/SVolt:x.x

SelectssupplyvoltageMSP_VCCoftheprogrammingadapter.ThevoltageissuppliedbetweenGNDandMSPVCC,e.g.,/Svolt:3.0

/SVoff:{0,1}

SwitchesoffsupplyvoltageMSP_VCCafterexecution0: Disable(donotswitchoff)

1: Enable(switchoff)

filename

Specifiesnameoftheobjectfiletobeprogrammedorverified

/FILEfilename

(Secondwaytodefinethefilename–spaceseparated)

CommandLineOptions

Table2–3.CommandLineOptions(Continued)

OptionsforProgramCommand:

/PE:{0,1,2}

Optionprogramwitherase(flashonly)0: Withouterase

1: MainandInfomemory2: Mainmemoryonly

/PC:{0,1}

Optionprogramwitherasecheck0: Disable

1: Enable

/PV:{0,1}

Optionprogramwithverify0: Disable

1: Enable

/PB:{0,1}

Optionprogramwithblowfuse(onlyvalidwithverifysuccessful)0: Disable

1: Enable

OptionsforErase/EraseCheckandVerifyCommand

/E:{1,2,..}

Optionerase/erasecheck/verifybyfile/device/range1: File

2: Device

3: Range

/ERange:0xXXX,0xYYYY

Optionerase/erasecheck/verifyrange(start:0xXXXX,length:0xYYYY)

OptionsforReadOutCommand:

/RO:{1,2}

Optionreadoutbydevice/range1: Device

2: Range

/RRange:0xXXXX,0xYYYY

Optionreadoutrange(start:0xXXXX,length:0xYYYY)

/Rfile:file-name,{1,2}

Specifiesreadoutfilename1: TI-txt

2: Intel-hex

(Defaultdirectoryshouldbethelastobjectfiledirectory)

LogOptions:

/Log:filename

SpecifiesLogfilename

(DefaultdirectoryshouldbethePRGS430.exedirectory)

/ALog

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論