ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of...

155
ST Visual Programmer (STVP) Online Help Contents General Information Introduction to the ST Visual Programmer Visual environment Toolbar Tab menu Display area Device status area Flash sector area Output area Status bar Menu Reference File menu Edit menu Project menu Configure menu Read menu Program menu Verify menu Erase menu Blank-Check menu View menu Help menu Working with the ST Visual Programmer

Transcript of ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of...

Page 1: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

STVisualProgrammer(STVP)OnlineHelpContents

GeneralInformationIntroductiontotheSTVisualProgrammerVisualenvironmentToolbarTabmenuDisplayareaDevicestatusareaFlashsectorareaOutputareaStatusbar

MenuReferenceFilemenuEditmenuProjectmenuConfiguremenuReadmenuProgrammenuVerifymenuErasemenuBlank-CheckmenuViewmenuHelpmenu

WorkingwiththeSTVisualProgrammer

Page 2: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

AtypicalprogrammingsessionFileoperationsOpenafileEditafileSaveafileWriteapatterntoaselectedmemoryareaExecuteafileinRAMCheckingmemoryisblankProgrammingProgrammemory,DatamemoryandOptionsbytesseparatelyProgrammingProgrammemoryProgrammingDatamemoryProgrammingOptionbyteErasingFLASHmemorysectorsViewingaSTmicrocontroller'smemorycontentsandoptionsettingsVerifyingaSTmicrocontroller'smemorycontentsandoptionsettingsHowtorestoredefaultRCCalibrationvaluesUsingprojectsWhatisaproject?CreatinganewprojectOpeningaprojectEditingaprojectSettingaprojecthardwareenvironmentSettingEPROM,EEPROMorOptionfileinprojectSettingupautomaticprogrammingproceduresSettingupautomaticserialnumbergenerationExecutingaprojectprogrammingcycle

Troubleshooting

Page 3: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 4: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 5: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

IntroductiontoSTVisualProgrammer(STVP)

STVPisaWindowsinterfacethatletsyou:View,editandsaveexecutablefilesintheHex(Intel)and.S19(Motorola)formats,generatedbytheAssembler,LinkerorCCompilerforSTmicrocontrollers.

BlankCheckEPROMorFLASHcontentsofSTmicrocontrollers.

ProgramEPROM/EEPROM/FLASH/OptionByteofSTmicrocontrollers.

EraseFLASHSTmicrocontrollers.ViewandverifyaSTmicrocontroller'smemorycontents.

STVPistheuserinterfaceforSTEPROMProgrammingBoards(EPBs)andSTDevelopmentKits(DVPs).ItisinstalledonaPCrunningWindows®98,Millennium®,2000®,NT®,XP®orVista®,connectedtotheEPBorDVP.TwomethodscanbeusedtoprogramSTmicrocontrollerswithSTVP:youcaneithercreateaprojectthatdefinestheprogrammingenvironmentandproceduretofollow,orloaddatafromthemasterdeviceandthenprogramit.Werecommendthatyouuseprojects,sincetheyprovideyouwithgreatercontrolovertheprogrammingprocedure.NOTES:1:STVPconfiguresitselfinordertodisplayonlytheexistingmemoryareaforeachdevice.2:UnderWindows®NT®4,2000®,XP®andVista®,duringinstallationofSTVP,PARSTMdriverversionischeckedandcomparedtotheoneinstalledonthePC:ifPARSTMdriverisnotinstalledorPARSTMdriverversionislessthan1.5,itwillbeinstalled.

Page 6: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 7: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Visualenvironment

BelowisascreenshotoftheSTVPmainwindowwiththemainareasofinteresthighlighted:

Thedifferentareasonthisscreenare:Titlebar:ThetitlebardisplaysthenameoftheprojectcurrentlyopenedinSTVP.Ifnoprojectisopened,then'noproject-STVP'isdisplayed.

Menubar:ThemenubarcontainspulldownmenusforaccesstotheprincipalSTVPfunctions.

Page 8: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Toolbar:ThetoolbarcontainsanumberofbuttonswhichprovideanothermeansofaccesstotheprincipalSTVPfunctions.Placethemousepointeroverabuttontodisplayapopupwhichdescribesthefunctionofthatbutton.

Devicestatusarea:Thedevicestatusareadisplaysthecurrenthardwareconfigurationandsettings.

Displayarea:ThedisplayareadisplaysthedetailsthatarestoredintheSTVPbufferforthecurrentlyselectedtab(seetabmenubelow).

Flashsectorarea:Theflashsectorareaallowsyoutoselectparticularsectorsofprogrammemoryonwhichtoperformactions.

Tabmenu:Thetabmenuallowsyoutodisplayaparticularmemoryareainthedisplayarea.

Outputwindow:TheoutputwindowdisplaysthetasksthatareperformedbySTVPasitperformsthem.

Statusbar:ThestatusbardisplaysthecurrentattributesassociatedwiththeEditwindow.

Themenubar,toolbarorinformationareacanbetransformedintoindependentalways-on-topwindowswiththeirownheaders,asshownbelow,byleftclickingontheirrespectivemovetabsanddraggingthemover(orpartover)thedisplayareaorontothedesktopoutsidetheframeoftheSTVPmainapplicationwindow.Inthisfloatingformtheymayberelocatedbymousedraggingonthewindowtitlebaroranyunoccupiedareainthewindow.Theseareasmayberesizedinthestandardmannerbydraggingontheedgeoftheframe(doublearrowcursorindicatesresizedimension).

InthesamemannertheseareasmaybepickedupandrepositionedanywhereintheSTVPmainapplicationwindow.Usetheresizecursortoresizethedisplayarea,devicestatuswindow,flashsectorareaandoutputwindowrelativetoeachother.

Page 9: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 10: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 11: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Toolbar

Thediagrambelowshowstheiconsofthetoolbar:

NOTE:TheEraseiconandtheEraseAlliconaregrayedoutiftheSTmicrocontrollerbeinguseddoesn'thaveFLASHmemory.

Page 12: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Descriptionoftoolbaricons:SaveFileicon:Savesthecurrentfile.OpenFileicon:Opensafile.ExecuteFileicon:ExecutesafileinRAM.Copyicon:Copiesthecontentsofthewholebuffertotheclipboard.

Fillicon:Fillsaspecifiedareawithaspecifiedvalue.Configureicon:ConfiguresHardware,Port,ProgrammingmodeandDevice.

STmicrocontrollertypelist:ListstheSTmicrocontrollersthatcanbeprogrammedwiththehardwaredevicethatiscurrentlyconnected,allowingyoutochooseone.ThisisashortcutforchoosingtheSTmicrocontrollerdevicethatiscurrentlypluggedintothesocketwithoutopeningtheConfigurationdialogbox.

Readicon:ReadsanddisplaysthecontentsoftheSTmicrocontrollerrelatingtothecurrentlyselectedtab(ProgramMemory,DataMemoryorOptionByte)intheDisplayarea.

Programicon:Programstheinformationdisplayedinthecurrentlyselectedtab(PROGRAMMEMORY,DATAMEMORYorOPTIONBYTE)intheDisplayareatotheSTmicrocontroller.

Verifyicon:Checksthattheinformationdisplayedintheselectedtab(PROGRAMMEMORY,DATAMEMORYorOPTIONBYTE)intheDisplayareaisthesameasthatintheSTmicrocontrollerthatispluggedintothehardwaredevice.

BlankCheckicon:ChecksthatthememoryareaoftheSTmicrocontrollerpluggedintothehardwaredevicehasnotbeenwrittento.

Eraseicon:ErasesselectedFLASHmemorysectors.ReadAreaRangeicon:ReadstheselectedareaofmemoryfromtheSTmicrocontrolleranddisplaysitintheDisplayarea.

ProgramAreaRangeicon:ProgramsthecontentsoftheselectedmemoryareatotheEPROM,FLASHorEEPROMoftheSTmicrocontroller.

VerifyAreaRangeicon:Checksthattheinformationoftheselectedareaofmemory(EPROM,FLASHorEEPROM)heldin

Page 13: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

theSTVPbufferisthesameasthatprogrammedinthesameareaofmemoryintheSTmicrocontroller.

ReadAllicon:ReadstheEPROM,FLASH,EEPROMandOptionsinformationfromtheSTmicrocontrolleranddisplaysitintheDisplayarea.

ProgramAllicon:ProgramsthecurrentEPROM,FLASH,EEPROMandOptionsdatafromSTVPtotheSTmicrocontroller.

VerifyAllicon:ChecksthattheEPROM,FLASH,EEPROMandOptionsinformationintheSTVPbufferisthesameasthatprogrammedintheSTmicrocontroller.

Page 14: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 15: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Displayarea

DisplaysthedetailsthatarestoredintheSTVPbufferforthecurrentlyselectedtab(ProgramMemory,DataMemoryorOptionByte).Right-clickingonthisareaopensacontextualmenuoffrequently-usedcommands,suchasread,program,verifyandsoon.

Page 16: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 17: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Devicestatusarea

Displaysthecurrentprojectname(ifany),thecurrenthardwareconfiguration,includinghardwareprogrammingtool,programmingmode,STmicrocontrollerdevicenameandPCcommunicationport.Italsoshowstheprogrammemory,datamemoryandoptionbytestatusoftheselecteddevice.Right-clickinginthisareaopensacontextualmenuwiththerefreshandcopycommands.The*characterattheendofeachmemorystatusnameindicatethattheareahasbeenmodified.Ifafileisloaded,thischaracterisremoved.

NOTE:Todisplay/hidethedevicestatusareaselectDeviceStatusfromtheViewmenu.

Page 18: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 19: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Flashsectorarea

WhentheselectedSTmicrocontrollerhasFLASHmemorythenthisareaisdisplayed.ToselectasectorofFLASHmemory,clickonitscheckbox.WhenActiveSector(s)ischosenfromtheRead,Program,Verify,EraseorBlank-Checkmenus,thecorrespondingactionisonlyperformedontheselectedsectors.

NOTE:Todisplay/hidetheflashsectorareaselectFlashSectorfromtheViewmenu.

Page 20: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 21: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Tabmenu

Withthesetabs,youcandisplayamemoryarea.Onlytabsofexistingmemoryareasofadevicearedisplayed.Therearedifferentcombinationsoftabmenus,herearetwoexamples:DevicewithProgramandDatamemory:

DevicewithProgrammemoryandOptionByte:

Page 22: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 23: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Outputwindow

DisplaysthetasksthatareperformedbySTVPasitperformsthem.Right-clickingonthisareaopensafrequently-usedcommandsmenu,enablingyoutoclearorcopythecontentsoftheoutputareatotheclipboard.Anexampleoftheoutputwindowafterloadingafileisshownbelow:

Page 24: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 25: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Statusbar

Thediagrambelowshowsthestatusbar:

Descriptionofstatusbar:Progressbar:IndicatestheprogressofthecurrenttaskbeingexecutedbySTVPduringlengthyoperations.AredindicatorindicatesthattheSTmicrocontrollerisbeingprogrammedandshouldnotberemoved.DoingsomaydamagetheprogrammingdeviceortheSTmicrocontroller.Theprogressindicatorisgreenforotheroperations.Theprogressbaralsoindicateswhatthecommandthatiscurrentlypointedtodoes.

Addressfield:Indicatestheaddressofthecharacteronwhichthecursoriscurrentlyplacedinthedisplayarea.

Hardwarename:IndicatesthenameoftheprogrammingboardcurrentlyselectedintheConfigureSTVisualProgrammerwindow.

Devicename:IndicatesthenameofthemicrocontrollercurrentlyselectedintheConfigureSTVisualProgrammerwindow.

Programmingmode:IndicatesthenameoftheprogrammingmodeselectedintheConfigureSTVisualProgrammerwindow.

Page 26: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 27: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Filemenu

Thiscommand: Doesthis:Open... Opensafile.Save Savesthecurrentlyopenfile.

SaveAs... Savesthecurrentlyopenfileunderanewname.

RAMExec ExecutesafileinRAM.Exit ExitsSTVP.

Note:IntheRecentFileareaofthemenuwillappearalistofthelastfilesthatyouused.Clickingonanameinthelistopensthatfile.

Page 28: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 29: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Editmenu

Thiscommand: Doesthis:

Goto... Movesthecursortoaspecifiedaddress.

Search... Searchesforbytesinthecurrentarea.

CopyAllCopiesthecontentsoftheselectedarea(selectedfromthetabmenu)totheclipboard.

Fillarea Fillsaspecifiedareawithaspecifiedvalue.

Preferences... Displaysthepropertieswindow.

Page 30: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 31: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Projectmenu

Thiscommand: Doesthis:New... Createsanewproject.Open... Opensaprojectfile.Save Savesaprojectfile.Edit Editsaproject.

Close SavesandClosesthecurrentprojectintoaprojectfile.

Thelistoffilenamesatthebottomofthemenuliststhelastprojectfilesthatyouused.Clickingonanameinthelistopensthatfile.

Page 32: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 33: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Configuremenu

WhenyouselectConfigureSTVisualProgrammerfromtheConfiguremenu(orpressthe button),theConfigurationdialogboxopens.Thisdialogboxallowsyoutochooseahardwareprogrammingtool,aPCcommunicationport,aprogrammingmodeandaSTmicrocontrollerdevice.

1. FromtheHardwarelist,selecttheprogrammingboardhardwarethatyouareusing(thespecificEPBorDVP,orSTICK).

2. FromthePortlist,selecttheparallelportonthehostPCtowhichtheEPBorDVPisconnected.Onlytheportsthatarecompatiblewiththeselectedhardwarearelisted.

3. FromtheProgrammingmodelist,selecttheprogrammingmodeyouwanttouse.Programmingmodesavailabledependuponthehardwareyouhave,andcaninclude:

Socket-ThisoptionmeansthatyouwishtoprogramyourtargetSTMCUusingoneofthesocketsprovidedontheEPBorDVP.

ISP-ThisoptionisonlyavailablewithcertainEPBsandDVPs.ChoosethisoptionifyouwishtouseInSituProgrammingtoprogramadevicealreadymountedonyourapplicationboardviaaflexcableconnection

Page 34: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

betweentheEPB/DVPandyourapplicationboard.ICP-OnlyavailableforFLASHdevices.ChoosethisoptionifyouwishtouseInCircuitProgrammingtoprogramadevicealreadymountedonyourapplicationboardviaaflexcableconnectionbetweentheEPB/DVPandyourapplicationboard.Forcertaindevices,twoICPmodesexists:"ICPOPTEnable"or"ICPOPTDisable",seethedetailsinprogrammingmode.

4. FromtheDevicelist,selecttheSTmicrocontrolleryouwanttoprogram.

5. WhensomedevicesintheDevicelistareselected(suchastheST7LITE09),anadditionalProtectionslistwillappearinwhichyoucanchoosetoprotectcertainvalueswhenprogramming.However,mostdevicesdonothavethisoption.InformationonRCCalibrationvaluesaregiveninHowtorestoredefaultRCCalibrationvaluestopic.

6. ClickOKtosaveyourchangesandclosethedialogbox.7. Toviewyourconfigurationsettings,selectDeviceStatusfromthe

Viewmenu.TheDeviceStatusareadisplaysthecurrentconfigurationsettings.TIP:YoucanalsoselectaSTmicrocontrollerfromthedrop-downlistinthemainwindowtoolbar.NOTE:TherearetwowaysofprogrammingaFLASHorEEPROMSTmicrocontrollerdevice.Youcanprogramitbypluggingitontothehardwareprogrammingtoolsocketandselectingthedevicename(STxxx)or,youcanprogramitbyusingtheEPBorDVPandanISPorICPconnectortoyourapplicationboardandselectingISPorICPprogrammingmodeandthedevicename.

Page 35: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 36: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Readmenu

Canincludethefollowingcommands:

Thiscommand: Doesthis:

CurrenttabReadsfromtheSTmicrocontrolleranddisplaysthecontentsoftheselectedmemorytab.

ActiveSector(s) ReadsfromtheSTmicrocontrolleranddisplaysthecontentsoftheselectedsectors.

AddressRange...ReadsfromtheSTmicrocontrolleranddisplaysthecontentsoftheselectedmemoryareafromtheselectedmemorytab.

AlltabsReadsfromtheSTmicrocontrollerthecontentsofallexistingmemoryandOptionbyteinformation.

Page 37: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 38: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmenu

Canincludethefollowingcommands:

Thiscommand: Doesthis:

Currenttab WritestotheSTmicrocontrollerthecontentsoftheselectedmemorytab.

ActiveSector(s) WritestotheSTmicrocontrollerthecontentsoftheselectedsector(s).

AddressRange...WritestotheSTmicrocontrollerthecontentsoftheselectedmemoryareafromtheselectedmemorytab.

AlltabsWritestotheSTmicrocontrollerthecontentsofallexistingmemoryandOptionbyteinformation.

Page 39: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 40: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Verifymenu

Canincludethefollowingcommands:

Thiscommand: Doesthis:

CurrenttabChecksthatdatadisplayedinselectedmemorytabisidenticaltothecorrespondingSTmicrocontrollermemory.

ActiveSector(s)Checksthatdatadisplayedinselectedsector(s)isidenticaltothecorrespondingSTmicrocontrollermemory.

AddressRange...

ChecksthatdatadisplayedintheselectedmemoryareafromthecurrentmemorytabisidenticaltothecorrespondingSTmicrocontrollermemory.

Alltabs ChecksthatallmemorydataandOptionbyteareidenticaltoSTmicrocontrollercontents.

Page 41: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 42: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Erasemenu

ThesecommandsarevalidonlyforFLASHmemoryoftheSTmicrocontroller.CanincludethefollowingcommandsThiscommand: Doesthis:ActiveSector(s) Eraseselectedsector(s).

Page 43: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 44: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Blank-Checkmenu

Canincludethefollowingcommands:

Thiscommand: Doesthis:

Currenttab Checksthatmemorydataincurrenttabisnotprogrammed.

ActiveSector(s) Checksthatmemorydatainselectedsector(s)isnotprogrammed.

Page 45: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 46: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Viewmenu

Includesthefollowingcommands:Thiscommand: Doesthis:

Toolbar Displays/hidesthetoolbar.WhenToolbarischecked,thetoolbarisdisplayed.

StatusBar Displays/hidesthestatusbar.WhenStatusBarischeckedthestatusbarisdisplayed.

DeviceStatusDisplays/hidesthedevicestatuswindow.WhenDeviceStatusischeckedthedevicestatuswindowisdisplayed.

OutputDisplays/Hidestheoutputwindow.WhenOutputischeckedtheoutputwindowisdisplayed.

FlashSectorDisplays/Hidestheflashsectorwindow.WhenFlashSectorischeckedtheflashsectorwindowisdisplayed.

NOTE:TheFlashSectorcommandisgrayedoutiftheSTmicrocontrollerdeviceinusedoesn'thaveFLASHmemory.

Page 47: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 48: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Helpmenu

Includesthefollowingcommands:

Thiscommand: Doesthis:

Index PresentsthisSTVPonlinehelp.

UsingHelp ExplainshowtouseHelp.

About... Givesinformationabouttheprogrammingtool(hardware&software).

Page 49: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 50: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Atypicalprogrammingsession

ThefollowinginstructionsdescribehowyoushouldprogramaSTmicrocontrollerusingSTVP.MakesurethattheSTmicrocontrollerispluggedintothehardwareprogrammingtoolsocket.

1. ConfigureSTVP.2. Openthefilesholdingthedatatoprogram.3. CheckthattheSTmicrocontrollermemoryhasnotalreadybeen

programmed:intheSTVPmainwindow,clickonBlank-Check>CurrenttaborBlank-Check>ActiveSectors.Oryoucanalsosetthe"Blankcheckbeforeprogramming"optionintheEdit/Preferencesdialogbox.

4. Executetheprogrammingsession:intheSTVPmainwindow,clickonAlltabsintheProgrammenu(orpressthe button).

5. Checkthattheprogramingsessionwassuccessfullycompleted:intheSTVPmainwindow,clickonAlltabsintheVerifymenu(orpressthe button).Orsetthe"Verifyafterprogramming"optionintheEdit/Preferencesdialogbox.NOTE:ForadditionalinformationrefertoUsingProjects/Whatisaproject?.TIP:PresstheESCkeytoaborttheprogrammingdeviceprocess.

Page 51: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 52: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Checkingmemoryisblank

Toblankcheckmemory:

1. MakesurethattheSTmicrocontrollerispluggedintothehardwareprogrammingtoolsocket.

2. Makesurethatthehardwareiscorrectlyconfigured,followtheinstructionsgiveninConfiguringSTVP.

3. ToblankcheckEPROMmemoryarea,clickonCurrenttabintheBlank-Checkmenu.ToblankcheckoneormoreFLASHsector(s):a. Selectthesector(s)tobeblank-checkedintheFlashsector

area.b. ClickonActivesector(s)intheBlank-Checkmenu.

4. TheblankcheckresultisdisplayedintheOutputwindow.

Page 53: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 54: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmingprogrammemory

ToprogramProgrammemory:

1. MakesurethattheSTmicrocontrollerispluggedintothehardwareprogrammingtoolsocket.

2. MakesurethatthehardwareiscorrectlyconfiguredbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. IntheSTVPmainwindow,clickonthePROGRAMMEMORYtab.4. Openafilethatcontainsdataforaprogram.Youcanmodify

programmemorybeforewritingittoadevice.5. ToprogramallprogrammemoryinaFLASHdevice:

a. SelectallsectorsintheFLASHsectorarea.b. ClickonActiveSector(s)intheProgrammenu(orpressthe

button).6. ToprogramallprogrammemoryinanEEPROMorEPROMdevice,

selectProgram>Currenttabfromthemainmenu.7. Ortoprogramaselectedareaofprogrammemory:

a. ClickonAddressRange...intheProgrammenu(orpressthebutton).TheAddressrangedialogboxopens.

b. IntheValidaddressrangesarelist,choosethepredefinedrangeaddressyouwanttoprogramor,enteraddressesintheStart@andEnd@fields.

c. ClickonOK.8. Afterdatahasbeenwrittenintoprogrammemory,averifyoperation

isdone.AnydiscrepanciesarereportedintheOutputwindow.TIP:ProgrammemoryisalsowrittenbyclickingonAlltabsintheProgrammenu(orpressingthe button).NOTE1:Ifanyareaoftheprogrammemoryisalreadyprogrammed,anappropriatemessageisdisplayedintheOutputwindow.NOTE2:Tofindoutifanareaisprogrammed,followtheinstructionsgiveninCheckingmemoryisblank.

Page 55: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 56: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 57: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmingdatamemory

ToprogramDatamemory:

1. MakesurethattheSTmicrocontrollerispluggedintothehardwareprogrammingtoolsocket.

2. MakesurethatthehardwareiscorrectlyconfiguredbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. IntheSTVPmainwindow,clickontheDATAMEMORYtab.4. Openafilethatcontainsdataforaprogram.Youcanmodifydata

memorybeforewritingittoadevice.5. Toprogramalldatamemory,selectProgram>Currenttabfromthe

mainmenu.6. Toprogramaselecteddatamemoryarea:

a. SelectProgram>AddressRange...fromthemainmenu(orpressthe button).TheAddressrangedialogboxopens.

b. IntheValidaddressrangesarelist,choosethepredefinedrangeaddressyouwanttoprogramor,enteraddressesintheStart@andEnd@fields.

c. ClickonOK.7. Afterdatahasbeenwrittenintodatamemory,averifyoperationis

done.AnydiscrepanciesarereportedintheOutputwindow.TIP:DatamemoryisalsowrittenbyclickingonAlltabsintheProgrammenu(orpressingthe button).

Page 58: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 59: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmingtheoptionbyte

ToprogramtheOptionbyte:

1. MakesurethattheSTmicrocontrollerispluggedintothehardwareprogrammingtoolsocket.

2. MakesurethatthehardwareiscorrectlyconfiguredbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. IntheSTVPmainwindow,clickontheOPTIONBYTEtab.Theavailableoptionsarelisted.STMcuoptionbitshaveonlytwostates:0,1.Unprogrammedstatescouldbe0or1dependingonthedevice.

4. Tochangethestatusofanoption,clickontheoptionnameoritscurrentsetting.Clickonthebutton( )whichappearsbesidetheoptiontodisplayadropdownmenufromwhichyoucanselectanewsetting.

5. ClickonCurrenttabintheProgrammenu(orpressthe button).6. AftertheOptionbytehasbeenwritten,averifyoperationisdone.

AnydiscrepanciesarereportedintheOutputwindow.TIP:TheOptionbyteisalsowrittenbyclickingonAlltabsinsteadofCurrenttabintheProgrammenu(orpressingthe button).NOTE:Youcanmodifyoptionbytesettingsbeforewritingthemtothedevice.

Page 60: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 61: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 62: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

EraseFLASHmemorysectors

ToeraseFLASHmemorysectors:

1. MakesurethattheSTmicrocontrollerispluggedintotheprogrammingsocket.

2. MakesurethatSTVPiscorrectlyconfiguredfortheSTmicrocontrollerbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. IntheSTVPmainwindow,clickonthePROGRAMMEMORYtab.4. ForProgrammemoryonly:toeraseone(ormore)FLASHmemory

sector(s):a. IntheFlashsectorareaclickthecheckbox(es)corresponding

tothesector(s)youwanttoerase.b. ClickonActiveSector(s)intheErasemenu(orpressthe

button).c. ClickonOK.

Page 63: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 64: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Viewingamicrocontroller'smemorycontentsandoptionsettings

ToviewaSTmicrocontroller'smemorycontentsandoptionsettings:

1. MakesurethattheSTmicrocontrollerispluggedintotheprogrammingsocket

2. MakesurethatSTVPiscorrectlyconfiguredfortheconnectedSTmicrocontrollerbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. ToviewtheSTmicrocontroller'sProgrammemory,DatamemoryandOptionbytecontents,clickAlltabsintheReadmenu(orpressthebutton).Youcannowviewthereadinformationbyclickingonthe

appropriatetabatthebottomofthemainwindow.4. ToviewtheSTmicrocontroller'sProgrammemory,Datamemoryor

Optionbytecontentsindividually:a. Clicktheappropriatetabatthebottomofthemainwindow.b. ClickonCurrentintheReadmenu(orpressthe button).

5. ToviewaselectedareaoftheSTmicrocontroller'sEPROM,FLASHorEEPROM:a. Clicktheappropriatetabatthebottomofthemainwindow.b. ClickonAddressRange...intheReadmenu(orpressthe

button).TheAddressRangedialogboxopens.c. Selecttheareayouwanttovieweitherbyselectingitfromthe

Validaddressrangesarelist,orenteringitsstartandendaddressesintheStart@andEnd@fields.

d. ClickonOK.6. ToviewselectedsectorsofFLASHmemoryclicktheProgram

Memorytab,thenclickonActivesector(s)intheReadmenu(orpressthe button).ThememorycontentsarenowreadanddisplayedintheDisplayarea.TIP:PresstheESCkeytoabortthereadingdeviceprocess.

Page 65: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 66: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 67: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Verifyingamicrocontroller'smemorycontentsandoptionsettings

VerifyingaSTmicrocontroller'smemoryandoptionsettingsmeanscheckingthatitsProgrammemory,DatamemoryandOptionbytesettingsarethesameasthosedisplayedintheSTVPDisplayarea.ToverifyaSTmicrocontroller'smemoryandoptionsettings:

1. MakesurethattheSTmicrocontrollerispluggedintotheprogrammingsocket.

2. MakesurethatSTVPiscorrectlyconfiguredfortheSTmicrocontrollerbyfollowingtheinstructionsgiveninConfiguringSTVisualProgrammer.

3. MakesurethefileyouwanttoverifyisloadedintheSTVPmainwindow.

4. Toverifyallmemorycontents,clickonAlltabsintheVerifymenu(orpressthe button).

5. Toverifyanindividualmemoryareaclicktheappropriatetabatthebottomofthemainwindow,thenclickonCurrenttabintheVerifymenu(orpressthe button).

ToverifyaselectedareaoftheSTmicrocontroller'smemoryclicktheappropriatetabatthebottomofthemainwindow,thenclickonAddressRange...intheVerifymenu(orpressthe button).

ToverifyselectedsectorsofFLASHmemoryclicktheappropriatetabatthebottomofthemainwindow,thenclickonActivesector(s)intheVerifymenu(orpressthe button).

AnydiscrepanciesarereportedintheOutputwindow.TIP:PresstheESCkeytoabortverifyingdeviceprocess.

Page 68: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 69: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

HowtorestoredefaultRCCalibrationvalues

ThisfeatureispresentoncertainSTdeviceshavinganInternalRCoscillatorasclockselection.RCCalibrationvaluesareusedtogetagoodfrequencyaccuracyoninternalRCoscillator.SomeSTdeviceshavethedefaultRCCalibrationvaluesfactoryprogrammedintheSTMcu'sProgramandDatamemory.RestoringthedefaultRCCalibrationvaluesintheSTMcu'sProgramandDatamemorycanbedonebyenablingandthendisablingRead-OutProtection.IfRead-OutProtectionisalreadydisabled,setittoONintheoptionbytesettingsandprogramtheoptionbyte.ThensetRead-OutProtectionbacktoOFFandreprogramtheoptionbyte.ThedefaultRCCalibrationvaluesarethenautomaticallywrittentotheappropriateaddressesinProgramandDatamemory.Note:Thisfeatureisworkingonlyinspecificprogrammingmodes:"Socket"or"ICPOPTDisable".RefertoyourSTxxxxDatasheetforthedefaultvaluesandaddresses.CAUTION:AnyProgramorDataintheSTMcumemoryarelostwhenRead-OutProtectionisdisabled.

Page 70: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 71: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Openinganexecutablefile

Beforeopeningafile,youneedtoselectthecorrespondingmemoryareatobeloadedwithdatafilecontent.Forinstance,toopenaprogrammemoryarea:

1. IntheSTVPmainwindow,clickonthePROGRAMMEMORYtab.2. ClickonOpenintheFilemenu(orpressthe button).TheOpen

dialogboxappears.

3. Browsetowhereyouhavesavedthefileholdingthedatayouwant

toprogram,andthenselectit.4. ClickonOpen.Whenthefileisloaded,theOutputareadisplaysthe

filechecksum.ThefilechecksumforeachfileloadedandthememorychecksumforeachareaaredisplayedintheDeviceStatuswindow.

5. Toopenothermemoryareadatafiles,repeatsteps1to4,selectingtheappropriatememoryareatabforeachdatafile(DATAMEMORYorOPTIONBYTE)instep1.TIP:ThenamesofthelastopenedfilesaredisplayedatthebottomoftheFilemenu.Toopenoneofthesefiles,clickonitsname.

Page 72: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 73: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 74: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Editinganexecutablefile

Page 75: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

OpenthefileyouwanttoeditbyfollowingtheinstructionsgiveninOpenafile.Youcannowmodifytheprogrammemorycontents,datamemorycontentsortheOptionbytesettings.Tomodifytheprogrammemorycontentsordatamemorycontents:

1. Clickontheappropriatetabatthebottomofthedisplayarea.2. Overtypeeitheranyhexadecimalvaluesyouwanttochangeorany

visibleASCIIcharactersyouwanttochangeinthedisplayarea.ASCIIcharactersareautomaticallyupdatedwhenyouchangehexadecimalcharacters,andthesamevice-versa.TomodifytheOptionbytesettings:

1. ClickontheOptionstabatthebottomofthemainwindow.2. Theavailableoptionsarelistedinthelefthandcolumnwiththeir

valuedescriptionsintherighthandcolumn.3. SToptionbitshaveonlytwostates:0,1.Unprogrammedstatecould

be0or1dependingonthedevice.Tochangethestatusofanoption,clickontheoptionnameoritscurrentsetting.Clickonthe()buttonwhichappearsbesidetheoptiontodisplayadropdown

menufromwhichyoucanselectanewsetting.NOTE:MakesureyousaveyourchangesbeforeexitingSTVPbyclickingonSaveintheFilemenu(orpressingthe button).

Page 76: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 77: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Writingapatterntoaselectedmemoryarea

Towriteapatterninaselectedmemoryareaproceedasfollows:

1. ClickonFillarea...intheEditmenu(orpressthe button).TheChoosearea&valuedialogboxisdisplayed.

2. IntheFillwithfield,enterthedatayouwanttofilltheareawith.3. UndertheFillAreasection,proceedasfollows:

Tofilltheentireprogramspace,selectWholeaddressspace.

Tofillaselectedarea,selectSubrange:.EitherenterthestartandendaddressesoftheareatofillintheStart@andEnd@fieldsrespectively,orselectanaddressrangefromtheValidrangesarefield.

4. ClickonOK.Iftheaddressrangeisvalid,STVPfillsthespecifiedaddressspacewiththespecifiedfillvalue.NOTE:MakesureyousaveyourchangesbeforeexitingSTVPbyclickingonSaveintheFilemenu(orpressingthe button).

Page 78: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 79: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 80: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Savinganexecutablefile

ClickonSaveintheFilemenu(orpressthe button).Withthiscommand,youcancreateafileintheMotorolaortheIntelformatforaproject.TIP:YoucanalsosaveafileunderanewnamebyclickingonSaveAs...ontheFilemenu.

Page 81: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 82: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

ExecutingafileinRAM

ToexecuteafileinRAM:

1. ClickonRAMExecintheFilemenu(orpressthe button).TheOpendialogboxappears.

2. Inthedrivelist,clickthedrivethatcontainsthefileholdingthedatayouwanttoexecute.

3. Intheboxbeneaththedrivelist,double-clickthenameofthefolderthatcontainsthefileyouwanttoexecute.Continuedouble-clickingsubfoldersuntilyouopenthesubfolderthatcontainsthefile.

4. Inthelistoffiles,clickthefileyouwanttoexecute.5. ClickonOpen.Whenthefileisexecuted,theOutputareadisplaysa

message.

Page 83: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 84: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Whatisaproject?

AprojectisawaytoautomaticallyconfigureSTVPeachtimeyourunit.AprojectexistsonlyinafileformatthatcontainsSTVPcommands.Thisallowsyoutosetupaprogrammingenvironmentandtodefineprogrammingproceduresbyopeningtheprojectfile.

Page 85: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Aprogrammingenvironmentmustorcouldinclude:TheprogramminghardwareusedtoprogramtheSTmicrocontroller(EPB,DVP,STICK,etc.).Thisinformationisamandatorypartoftheprojectdefinition.

ThePCportthattheprogramminghardwareisconnectedto(mandatory).

TheProgrammingmodeused(mandatory).TheSTmicrocontrollertobeprogrammed(mandatory).Theprogramfilethatcontainstheprogramtobeprogrammed.Thedatafilethatcontainsthedatatobeprogrammed.TheOptionBytefilethatcontainstheOptionBytesettingstobeprogrammed.

Page 86: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmingprocedurescouldincludethefollowingactions:Eraseallbeforeprogramming(FLASHmemorydeviceonly).Blankcheckbeforeprogramming.Verifyafterprogramming.Unlockprotectionbeforeaprogrammingcycle.Promptfornewprogrammingcycle.Generateandwriteserialnumbering.

Oncetheprojectfileisopen:toprogramadevice,clickonAlltabsintheProgrammenu.

Page 87: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 88: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Createaproject

Beforecreatingaproject,youmustreadWhatisaproject?Tocreateaproject:

1. ClickonNewintheProjectmenu.TheCreateNewProjectdialogboxopens.

2. Inthedrivelist,clickthedriveonwhichyouwanttocreatethenewprojectfile.

3. Intheboxbeneaththedrivelist,double-clickthenameofthefolderinwhichyouwanttocreatethenewprojectfile.Continuedouble-clickingsubfoldersuntilyouopenthesubfolderinwhichyouwanttocreatethefile.

4. TypetheprojectfilenameintheFilenamebox.5. ClickonSave.6. Theprojectisnowcreated(theprojectfilenameextensionis.stp).

Thenameoftheprojectappearsinthewindowtitlebar:

NOTE:Whenyoucreateaproject,itinheritsthecurrentconfiguration.Thisconfigurationcanbemodifiedbeforeclosingtheproject.Closingaprojectsavesitautomatically.

Page 89: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 90: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Openaproject

STVPprojectfileshavethefileextension.stp.Toopenaproject:

1. ClickonOpenintheProjectmenu.TheOpenExistingProjectdialogboxopens.

2. Inthedrivelist,clickthedrivethatcontainsthefile.3. Intheboxbeneaththedrivelist,double-clickthenameofthefolder

thatcontainsthefile.Continuedouble-clickingsubfoldersuntilyouopenthesubfolderthatcontainsthefile.

4. Inthelistoffiles,clicktheprojectfilenametoopen(onlyfileswith.stpextensionaredisplayed).

5. ClickonOpen.Theprojectnameappearsinthewindowtitlebar:

Atthisstage,theprogrammingenvironmentissetupandalldatafilesareopened.NOTE:Oncetheprojectfileisopen:toprogramadevice,clickonAllintheProgrammenu(orpressthe button).TIPS:ThenamesofthelastopenedprojectsaredisplayedatthebottomoftheProjectmenu.Toopenoneoftheseprojects,clickonitsname.

YoucanalsosetupashortcuttoSTVPwhereaspecificprojectisopenedautomatically.JustcreateashortcutonyourWindowsdesktoptoSTVP,right-clicktheshortcuticonandselectProperties.IntheShortcuttabofthePropertieswindow,edittheTargetlinebyadding-project=project_name.stptotheendofthecommandline.Forexample,toopenmy_project.stpautomatically,theTargetfieldmightlooklike:C:\ProgramFiles\stvp\stvp.exe-project=my_project.stp

Page 91: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 92: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 93: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Editingaproject

First,openaproject.

1. ClickonEditintheProjectmenu.2. TheProjectEditionwindowopens.BelowisanexampleofaProject

Editionwindowwithtwotypesofmemoryarea(PROGRAMMEMORYandOptionBYTE)forthechip:

3. MakeanynecessarymodificationstothedifferenttabsoftheProject

Editionwindow:Configuration,Properties,SerialNumberingandapplicablememoryareatabs(ProgramMemory,DataMemoryorOptionByte).

4. ClickonOKtoexittheProjectEditionwindowandtosaveyourchanges.

Page 94: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 95: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Settingaprojecthardwareenvironment

Aprojecthardwareenvironmentdefines:TheprogramminghardwareusedtoprogramtheSTmicrocontroller(EPB,DVP,STICK,etc).

ThePCportthattheprogramminghardwareisconnectedto.Theprogrammingmodetobeused.TheSTmicrocontrollertobeprogrammed.

Tosetaprojecthardwareenvironment:

1. ClickonConfigureSTVisualProgrammerfromtheConfiguremenu(orpressthe button).TheConfigurationdialogboxopens:

2. FromtheHardwarelist,selecttheoneyouareusing(EPB,DVPorSTICK).

3. FromthePortlist,selectthePCportfromwhichSTVPisconnected.4. FromtheProgramingmodelist,selecttheprogrammingmodeyou

wanttouse.5. FromtheDevicelist,selecttheSTmicrocontrolleryouwantto

program.6. ClickOKtosaveyourchangesandclosethedialogbox.

TIP:YoucanalsoselectaSTmicrocontrollerfromthedrop-downlistinthemainwindowtoolbar.

Page 96: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 97: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 98: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

SettingEPROM,FLASH,EEPROMorOptionfilesinyourproject

Datafilescontaindatatoprogramintomemory.Settingdatafilesinaprojectfile(.stpextension),enablesthesedatafilestobeloadedautomaticallyeachtimeaprojectfileisopen.Tosetdatafilesinaproject:

1. ClickonEditintheProjectmenu.TheProjectEditionwindowopensasfollows:

NOTE:thisisaProjectEditionwindowwithtwotypesofmemoryarea(optionbyteandprogrammemory)forthedevice.

2. Clickonamemorytab(DATAMEMORY,PROGRAMMEMORYorOPTIONBYTE)andthenclickonAdd.

3. TheOpendialogboxisdisplayed.4. Findandselectthefileyouwanttosettotheprojectandclickon

Open.Thefileissettotheproject-itspathnameandotherattributesaredisplayedintheProjectEditionwindow.

Page 99: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

NOTE:thisisaProjectEditionwindowwithtwotypesofmemoryarea(datamemoryandprogrammemory)forthedevice.

5. ClickonOKtosaveyourchangesandclosetheProjectEditionwindow.

6. Repeatsteps2to5ifyouwanttosetfilesfortheDATAMEMORY,PROGRAMMEMORYorOPTIONBYTEmemoryareas.

Page 100: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 101: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Settingupautomaticprogrammingprocedures

Automaticprogrammingproceduresallowyoutoaccomplishthefollowingactions:Blankcheckbeforeprogramming.Verifyafterprogramming.Clearmemorybeforeloadingafile.Erasedevicememorybeforeprogramming.Displayapopupwindowwhenanerroroccurs.Logactivity.UnlockprotectionbeforeaprogrammingcyclePromptfornewprogrammingcycle.Activateusermodeonnextprojectloading.

Tosetupautomaticprogrammingprocedures:

1. ClickonEditintheProjectmenu.TheProjectEditionwindowopens.

2. ClickonthePropertiestab.ThePropertiesdialogboxopensasshownbelow(thisisaProjectEditionwindowwithtwotypesofmemoryareas(optionbyteandprogrammemory)forthedevice.)

3. ChecktheProgrammingOptionboxesyouwanttoperform.

Blankcheckbeforeprogramming(whenavailable):ThisoptionisonlyavailablewithFLASHdevices.

Page 102: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

VerifyafterprogrammingClearmemorybeforeloadingafile:CheckingthisoptionwillcleartheexistingmemoryvaluesinyourSTVPsessionwhenloadinganewfile.Ifyoudonotcheckthisoption,eachtimeyouloadanewfile,onlythosememoryvaluesalsopresentinthenewlyloadedfilewillbeoverwritten.

Erasedevicememorybeforeprogramming(whenavailable):ThisoptionisonlyavailablewithFLASHdevices.

DisplayapopupwindowwhenanerroroccursLogactivityUnlockprotectionbeforeaprogrammingcycle:Thisoptionisonlyavailableifaprojectfileisopenandoncertaindevices.Clickthisoptionifyouwanttounlocktheprotectionatthebegginingofacycletobeabletoreprogramthedeviceifitwasprotectedbeforeexecutingtheproject.

Promptfornewprogrammingcycle:Thisoptionisonlyavailableifaprojectfileisopen.Clickthisoptionifyouwanttorepeatthesameprogrammingprocedureforseveralmicrocontrollers.Whenthisoptionischecked,adialogboxwillappearattheendofeachprogrammingcycle,askingyouifyouwishtoperformthesameprogrammingcycleagain.

Activatesecuremodeonnextprojectloading:Thisoptionisonlyavailableifaprojectfileisopen.Checkingthisoptiononlyallowstheprogrammingsessionsavedintheprojectfiletobeperformedwhiletheprojectisopen.Thisoptionisusefulifyouwantaspecificprogrammingsessiontobeusedrepeatedlywithouttampering.Onceapplied,thisoptioncanberemovedfromtheProjectEditionwindow,Propertiestab,accessiblebyselectingProject>Editfromthemainmenu.

Page 103: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

4. ClickonOKtosaveyourchangesandclosetheProjectEditionwindow.

Page 104: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 105: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Settingupautomaticserialnumbering

STVPcanautomaticallygenerateandwriteserialnumbersintothememoryofSTmicrocontrollers.Youdefineautomaticserialnumberingbyspecifying:thememoryaddresswheretoprogramit,thelength(inbyte),thestartingvalue,thestepincrementvalue.

NOTE1:Eachtimeyouleaveaproject,thecurrentserialnumbervalueissaved.Itwillbereloadedduringthenextprojectopening.Tosetupautomaticserialnumbering:

1. ClickonEditintheProjectmenu.TheProjectEditionwindowopens.

2. ClickontheSerialNumberingtab.TheSerialNumberingdialogboxopens:

NOTE:ThisisaProjectEditionwindowwithtwotypesofmemoryareas(datamemoryandprogrammemory)inthedevice

3. ChecktheEnableSerialNumberingbox.4. IntheStartAddress(Hex)field,enterthestartaddresswhereto

writetheserialnumber.

Page 106: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

5. IntheLength(inbyte)field,selectthenumberofbytes(1,2,4or8)oftheserialnumber.

6. IntheBaseValue(Hex)field,enterthestartingvaluefortheserialnumber.

7. IntheStep(Hex)field,enterthestepincrementvaluetoapplytotheserialnumber.

8. ClickonOKtosaveyourchangesandclosetheProjectEditionwindow.

Page 107: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 108: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Executingaprojectprogrammingcycle

Ifyouhavedefinedaproject,youcanexecuteablankcheck,programallthememoryareasthathaveassociatedfilesinonego,andverifythatallareashavebeencorrectlyprogrammed.Therearetwowaysofdoingthis

1. Manually,byusingthefunctionsavailableunderthemenubarToperformablankcheck:Withthedefinedprojectalreadyopen,clickonCurrenttaborActiveSector(s)intheBlank-Checkmenu.

Toprogramallthememoryareaswhosecorrespondingfilesareloaded:Withthedefinedprojectalreadyopen,clickonAlltabsintheProgrammenu(orpressthe button).

Toverifyallprogrammedareas:Withthedefinedprojectalreadyopen,clickonAlltabsintheVerifymenu(orpressthe button).

2. Automatically,byusingtheautomaticprogrammingprocedure.Refertothedocumentationprovidedwiththeprogrammingdeviceyouareusingforfurtherdetailsabouthowtheblankcheck,programandverifyareexecuted.

Page 109: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 110: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Troubleshooting

Page 111: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenItrytoreadorwritetotheSTmicrocontrollerthemessage"Cannotcommunicatewiththedevice"isdisplayed:CheckthattheporttowhichtheprogrammingdeviceisconnectediscorrectlyconfiguredinSTVP.

Note:IfyouusetheLPTport,youmustconfigurethisportusingCentronics,EPP,ECPorbidirectionalmodesonly.WithWindows®NT®,2000®andXP®,thePARSTMdrivermustbeinstalled.CheckthatSTVPiscorrectlyconfiguredfortheprogrammingdeviceinuse.

CheckthattheSTmicrocontrollerforwhichSTVPisconfiguredisthesameasthatwhichispluggedintotheprogrammingdevice.RefertoConfiguringSTVisualProgrammerforfurtherinformation.

Page 112: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenItrytoread,program,verifyorblankcheckaSTmicrocontroller,themessage"...failedataddressXXXX"isdisplayed:CheckthatthecorrectdeviceispluggedintothesocketorthatSTVPiscorrectlyconfiguredforthedeviceinuse.

Checkthatthedeviceisn'tdefective(changethedevice).

Page 113: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenIopenaprojectfile,themessage"Datafilenotfound"isdisplayed:Checkthatdatafilesassociatedwiththeprojectfileexistorthatdatafileshavenotbeenmoved

Page 114: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenusingtheSTICK,themessage“PCparallelportcablenotconnected”isdisplayed:MostcommunicationfailuresbetweenthehostPCrunningSTVPandtheSTICKinterfaceboardstemfromproblemsintheparallelportconnection.Topreventcommunicationproblems,whensettingupyourparallelportconnection,ensurethat:YouusetheparallelcableprovidedwithyourSTICK—usingalongerparallelcablemaycausemalfunctions.

ConnectthecabledirectlybetweenthehostPCandSTICKinterfaceboard—theinsertionofadditionalcablesorswitchboxesbetweenthehostPCandtheinterfaceboardmaycausemalfunctions.

Youremoveanyparallelportdongles.EnsureLPT1addressisintherange03BC-03BFor0378-037For0278-027F.

Ensurethat“printerportLPT1”isnotdisabledinyourPC.Forexample,intheIBM®ThinkPad,youcanselect“infraredprinting(LPT)porton”.

Page 115: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenusingtheSTICK,themessage“Problemonsupplyvoltages”isdisplayed:WhenyouhavesupplyvoltageproblemsthegreenLEDwillnotcomeon.Tofindthecauseoftheproblem:CheckthattheAC/DCpowersupplyadaptorisfirmlyconnectedtoboththemainpowersupplyandtotheSTICKinterfaceboard.Tocheckthatthemainpowersupplyison,disconnectICCcableandmeasurethevoltageattestpin2atlocationTP1.ThispinshouldhaveunregulatedDCvalueintherange18Vto21V.(GroundisonTP1pin1whichhasawhitedotmark.)

CheckthattheW1jumperissetononeofthethreepositionsoutlinedintheSTICKUserManual.Ifitissetonthe“VDD”position,checkthattheICCcableisconnectedproperlyandthatyourapplication’sVDDisconnectedtoICCconnectorpin7.YourapplicationVDDmustbeintherange2.4Vto5V.Ontestpin4atlocationTP1,youmusthavethesamevoltagevaluethatyouselectedwiththeW1jumper.

Checkthatthereis5Vontestpin3atlocationTP1.Ifyouhavemadeallofthesechecksandyoustillgetthe“Problemonsupplyvoltages”message,contactyourSTdistributororsalesofficeinordertohaveyourSTICKrepaired.

Page 116: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

WhenusingtheSTICK,themessage“Cannotcommunicatewiththedevice”isdisplayed:Checkthat:TheICCcableiswellconnected.YouhaveselectedtherightST7device.TheICCsignalsareclearandwithinthefollowingranges:

ICCDATA:Thisapplicationsignalmustnotdrivemorethan1mA.ICCCLK:Thisapplicationmustnotdrivemorethan1mA.ICCRESET:Thisapplicationmustnotdrivemorethan5mA.ICCSEL_VPP:Thepull-downresistormustnotbelowerthan10kOhm.

YouhaveselectedtherightprogrammingmodeinthemainmenuConfigurewindow>programmingmodelist.Rememberthatifyouuse:ICPOPTEnablemode,checkthatyourapplicationclockcircuitrydoesmatchtheCLOCKSOURCEandOSCTYPEoptionsalreadyprogrammedinST7Flashmicrocontrolleroptionbyte.Fordevicesoutoffactoryyouhavetocheckthesevaluesindatasheet.Ifyoudon’tknowthesevaluesyouhavetoselectICPOPTDisable.

ICPOPTDisablemode,ensurethatexternalsourceclockisasquarewavesignalfrom0VtoVDD.Ifnot,youhavetoconnectICCOSCsafeclock(ICCconnectorpin9)totheOSC1pinoftheST7Flashmicrocontrollerinyourapplication.

Page 117: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Otherfrequentlyaskedquestions:HowcanIfindoutwhichSTVPandHardwareconfigurationfileversionsI'musing?

Page 118: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 119: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programmingmode

SocketprogrammingmodeisusedwhenputtingthedeviceintheEPB/DVPsockets.Takecaretoplaceonlyonedeviceifthereareseveralsockets.Thearrowindicatespin1ofthedeviceontheEPB/DVPsockets.IftheEPB/DVPsupportalsoISPorICPprogrammingmode,removetheflatcableprovidedwiththeboardfromtheISPorICPconnectortouseSocketprogrammingmode.ISP/ICPprogrammingmodesareusedwhenyouhavesolderedyourdeviceonyourapplicationboardandyouwanttoaccessthedeviceafterwards.ISPstandsforInSituProgramming,itisworkingwithST72C254xx/ST72C334xx/ST72C171xxandST72C411xxdevicesonly.RefertotheDatasheetofthedeviceformoredetailsonISPconnectorandISPprogramming.TakecaretoremovethedevicesthatareinthesocketoftheEPB/DVPbeforeusingtheISPprogrammingmode.ICPstandsforInCircuitProgramming,itisworkingwiththelatestFlashdevices(XFlashorHDFlash).RefertothedatasheetofthedeviceformoredetailsonICPconnectorandInCircuitProgramming.TakecaretoremovethedevicesthatareinthesocketoftheEPB/DVPbeforeusingtheICPprogrammingmode.BeforeselectingtheProgrammingmodeyouhavetochecktheoptionbytedescriptioninyourSTFlashmicrocontrollerDatasheetandalsowhethertheSTisex-factoryornot.Ex-factorydevicesarebrandnewdeviceswithfactorydefaultoptionsprogrammed.ICPOPTDisable:ThisprogrammingmodeisICPmodewithOptionBytesDisabled.Thismeansthatthesettingorstateofthedevice'soptionbyteshavenoeffectinapplication,whichtheexceptionofRead-outProtection.Theclockconfigurationisforcedto"ExternalSource"andifyourST7Flashapplicationclockisnotasquarewavefrom0vtoVDD(i.e.ifyouusetheinternalRCoscillatoroftheST7FlashMicrocontrollerorifyouhavearesonatororanexternalRC

Page 120: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

oscillatorontheOSC1/OSC2pins),youhavetoconnecttheclockICCOSCfromtheICCconnectortotheOSC1pinoftheST7Flashmicrocontrollerinyourapplication.Thisprogrammingmodeisasafemode.ItmustbeusedwhentheICPOPTEnableconfigurationdoesnotwork.Thiscanbethecaseifyourapplicationclockcircuitrydoesn’tmatchthepreviouslyprogrammedclocksourceorosctypeoptionbyteselection.ICPOPTEnable:ThisprogrammingmodeisICPmodewithOptionBytesEnabled.ThismeansthattheoptionbytesoftheST7deviceintheapplicationareactivatedwiththeirprogrammedvalues.TheRead-outProtectionandtheClockConfiguration(OSCType,OSCRange,PLL)areEnabled,theWatchdogisforcedtoSoftwareduringcommunication.ThisprogrammingmodehastobeselectediftheST7Flashishasthefactorydefaultsettingsorifyourapplicationclockcircuitrymatchesthepreviouslyprogrammedclocksourceorosctypeoptionbyteselection.InthisProgrammingmode,theICCOSCclockfromtheICCconnectorisnotneeded.ICP:ThisprogrammingmodeisthesameasICPOPTEnable,theOptionBytesare'Enabled'andtheWatchdogisforcedtoSoftwareduringcommunication.Normally,thismodeistheonlychoiceforthatdevicebecausethereisnoclockconfiguration,atleastaresonatormustbeusedwiththatST7device.So,theICCOSCclockfromtheICCconnectormustnotbeconnectedtotheapplication.RefertothelatestErratasheetofthedevicetogetextrausefulinformation.

Page 121: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 122: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Chooseaddress

WhenyouselectGoto...fromtheEditmenu,theChooseAddressdialogboxappears:

1. EntertheaddressyouwanttojumptointheJumptofield.2. ChooseSetcursorinHEXAareaifyouwantthecursortoappear

intheHexadecimalvieworSetcursorinASCIIareaifyouwantthecursortoappearintheASCIIview.

3. ClickonOK.Iftheaddressisvalid,STVPplacesthecursoratthespecifiedaddressinthedisplayarea.NOTE:Usebackspacetocleartheinputarea.

Page 123: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 124: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Searchbytes

WhenyouselectSearch...fromtheEditmenu,theSearchbytesdialogboxappears:

1. Clicktochooseinwhichview(HexadecimalorASCII)youwanttosearchthebytes.

2. Enterthebytesyouwanttofindintheinputarea.3. ClickFindnexttobeginthesearch.Ifthesearchissuccessful,

STVPplacesthecursoronthefoundoccurrenceinthedisplayarea.

Page 125: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 126: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Propertieswindow

WhenyouselectPreferencesfromtheEditmenu,thePropertieswindowappears.Note:ThesesameprogrammingoptionsappearinthePropertiestaboftheProjectEditionwindow,whichappearswhenyoucreateoreditaproject.Clickonapropertycheckboxtoturnon/offthatproperty.ClickonOKtosavesettingsandexitthewindow.

ChecktheProgrammingOptionboxesyouwanttoperform.

Blankcheckbeforeprogramming(whenavailable):ThisoptionisonlyavailablewithFLASHdevices.

VerifyafterprogrammingClearmemorybeforeloadingafile:CheckingthisoptionwillcleartheexistingmemoryvaluesinyourSTVPsessionwhenloadinganewfile.Ifyoudonotcheckthisoption,eachtimeyouloadanewfile,onlythosememoryvaluesalsopresentinthenewlyloadedfilewillbeoverwritten.

Erasedevicememorybeforeprogramming(whenavailable):ThisoptionisonlyavailablewithFLASHdevices.

Displayapopupwindowwhenanerroroccurs

Page 127: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

LogactivityUnlockprotectionbeforeaprogrammingcycle:Thisoptionisonlyavailableifaprojectfileisopenandoncertaindevices.Clickthisoptionifyouwanttounlocktheprotectionatthebeginningofacycletobeabletoreprogramthedeviceifitwasprotectedbeforeexecutingtheproject.

Promptfornewprogrammingcycle:Thisoptionisonlyavailableifaprojectfileisopen.Clickthisoptionifyouwanttorepeatthesameprogrammingprocedureforseveralmicrocontrollers.Whenthisoptionischecked,adialogboxwillappearattheendofeachprogrammingcycle,askingyouifyouwishtoperformthesameprogrammingcycleagain.

Activatesecuremodeonnextprojectloading:Thisoptionisonlyavailableifaprojectfileisopen.Checkingthisoptiononlyallowstheprogrammingsessionsavedintheprojectfiletobeperformedwhiletheprojectisopen.Thisoptionisusefulifyouwantaspecificprogrammingsessiontobeusedrepeatedlywithouttampering.Onceapplied,thisoptioncanberemovedfromtheProjectEditionwindow,Propertiestab,accessiblebyselectingProject>Editfromthemainmenu.

NOTE1:The'Unlockprotectionbeforeaprogrammingcycle','Promptfornewprogrammingcycle'and'Activateusermodeonnextprojectloading'optionsareonlyavailablewhenaprojectisopened.NOTE2:ClickonBrowsetocreateorselectalogfile.ThelogfilenameisdisplayedinthebottomlefthandcornerofthePropertieswindow.

Page 128: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 129: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Readactivesectors

1. ClickFlashSectorfromtheViewmenutodisplaytheFlashsectorareaifnotalreadydisplayed.

2. Selectthesectorsyouwanttoreadfrombyclickingontheirrespectivecheckboxes

3. ClickActiveSector(s)fromtheReadmenu.

Page 130: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 131: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Readaddressrange

WhenyouselectAddressRange...fromtheReadmenu,theAddressrangedialogboxappears:

1. ChoosetheareayouwanttoreadfromeitherbyselectingitfromtheValidaddressrangesarelist,orenteringitsstartandendaddressesintheStart@andEnd@fields.

2. ClickonOK.Iftheaddressrangeisvalid,STVPreadsfromtheSTmicrocontrolleranddisplaysthecontentsoftheselectedmemoryareafromtheselectedmemorytab.NOTE:Usebackspacetocleartheinputareas.

Page 132: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 133: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programactivesectors

1. ClickonFlashSectorfromtheViewmenutodisplaytheFlashsectorareaifnotalreadydisplayed.

2. Selectthesectorsyouwanttoblank-checkbyclickingontheirrespectivecheckboxes

3. ClickonActiveSector(s)fromtheProgrammenu.

Page 134: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 135: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Programaddressrange

WhenyouselectAddressRange...fromtheProgrammenu,theAddressrangedialogboxappears:

1. ChoosetheareayouwanttoprogrameitherbyselectingitfromtheValidaddressrangesarelist,orenteringitsstartandendaddressesintheStart@andEnd@fields.

2. ClickonOK.Iftheaddressrangeisvalid,STVPwritestotheSTmicrocontrollerthecontentsoftheselectedmemoryareafromthecurrentmemorytab.NOTE:Usebackspacetocleartheinputareas.

Page 136: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 137: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Verifyactivesectors

1. ClickFlashSectorfromtheViewmenutodisplaytheFlashsectorareaifnotalreadydisplayed.

2. Selectthesectorsyouwanttoverifybyclickingontheirrespectivecheckboxes

3. ClickActiveSector(s)fromtheVerifymenu.

Page 138: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 139: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Verifyaddressrange

WhenyouselectAddressRange...fromtheVerifymenu,theAddressrangedialogboxappears:

1. ChoosetheareayouwanttoverifyeitherbyselectingitfromtheValidaddressrangesare:list,orenteringitsstartandendaddressesintheStart@andEnd@fields.

2. ClickonOK.Iftheaddressrangeisvalid,STVPchecksthatdatadisplayedintheselectedmemoryareaisidenticaltothecorrespondingSTmicrocontrollermemory.NOTE:Usebackspacetocleartheinputareas.

Page 140: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 141: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Eraseactivesectors

1. ClickonFlashSectorfromtheViewmenutodisplaytheFlashsectorareaifnotalreadydisplayed.

2. Selectthesectorsyouwanttoerasebyclickingontheirrespectivecheckboxes

3. ClickonActiveSector(s)fromtheErasemenu.

Page 142: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 143: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Blank-Checkactivesectors

1. ClickFlashSectorfromtheViewmenutodisplaytheFlashsectorareaifnotalreadydisplayed.

2. Selectthesectorsyouwanttobeblank-checkedbyclickingontheirrespectivecheckboxes

3. ClickActiveSector(s)fromtheBlank-Checkmenu.

Page 144: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 145: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

About...

ThiswindowdescribesgeneralinformationconcerningSTVP.Init,youcanfind:theversionnumberofSTVP,theversionnumberofconfigurationfiles(HardwareConfigurationandTargetConfiguration),

byselectingModulesintheInformationcombobox,youcanreadtheversionnumbersofSTVP'sDLLsandthePARSTMdriver.TheDLLinformationwillappearintheinformationarea.

Page 146: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 147: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Atypicalprogrammingsession-configuringSTVP

1. IntheConfiguremenu,clickConfigureSTVisualProgrammer(orpressthe button).TheConfigurationdialogboxopens.

2. FromtheHardwarelist,selectthehardwareyouareusing.3. FromthePortlist,selecttheparallelportonthehostPCtowhich

theEPBorDVPisconnected.Onlytheportsthatarecompatiblewiththeselectedhardwarearelisted.

4. FromtheProgrammingmodelist,selecttheprogrammingmodeyouwanttouse.

5. FromtheDevicelist,selecttheSTmicrocontrolleryouwanttoprogram.

6. ClickOKtosaveyourchangesandclosethedialogbox.TIP:YoucanalsoselectaSTmicrocontrollertypefromthedrop-downlistinthetoolbar.

Page 148: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Filechecksum

Thischecksumisdoneonalldatapresentinadatafile.ThiscouldincludedataonanonexistingmemoryareaofaSTmicrocontroller(forexample:EPROMsplitintwoareas).Thefilechecksumoperationisperformedsimplybycalculatingthesumofallofthefile'sdatabytes,givingauniquesignatureforeachfile.TheDeviceStatuswindowshowsforalldifferentareas,allthefilesloadedwiththeirfilechecksums.NOTE:onedatafileisneededpermemoryarea(EPROM,FLASH,EEPROMandOptionByte).

Page 149: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Memorychecksum

Thischecksumisdoneondeviceexistingmemoryarea.Eachexistingmemoryarea(EPROM,FLASHandEEPROM)hasitsowndevicechecksum.Eachchecksumoperationisperformedsimplybycalculatingthesumofeachdevicetabdatabytes,givingauniquesignatureforeachmemorytype.TheDeviceStatuswindowshowsallmemorychecksumsforallmemorytypes.

Page 150: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 151: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

BlankCheck

YoucanperformablankcheckontheEPROMorFLASHmemoryarea.Whenyouperformablankcheck,youcheckthattheSTmicrocontroller'sEPROMorFLASHhasnotbeenwritten.ThisisausefulwayofverifyingthataSTmicrocontrollerhasnotalreadybeenprogrammed.

Page 152: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 153: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Verify

STVPcancheckthatthecodewrittentotheSTmicrocontrollerEPROM,FLASH,EEPROMorOptionsByteareconsistentwiththatstoredinthefileswhosecontentswereused.

Page 154: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place
Page 155: ST Visual Programmer (STVP) Online Help Contents · Toolbar: The toolbar contains a number of buttons which provide another means of access to the principal STVP functions. Place

Erase

YoucanperformanautomaticeraseonaFLASHmemoryarea.ThisisthewaytoeraseallinformationinaFLASHmemoryareabeforeprogramming.