st visual programmer (stvp) online help contents · toolbar: the toolbar contains a number of...
TRANSCRIPT
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/1.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/3.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/4.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/6.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/9.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/10.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/14.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/16.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/17.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/18.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/19.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/20.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/21.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/22.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/23.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/24.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/25.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/26.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/27.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/28.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/29.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/30.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/31.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/32.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/33.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/34.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/35.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/36.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/37.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/38.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/39.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/40.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/41.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/42.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/43.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/44.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/45.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/46.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/47.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/48.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/49.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/50.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/51.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/52.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/53.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/54.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/55.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/56.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/57.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/58.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/59.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/60.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/61.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/62.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/63.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/64.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/65.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/66.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/67.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/68.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/69.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/70.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/71.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/72.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/73.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/74.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/75.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/76.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/77.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/78.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/79.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/80.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/81.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/82.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/83.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/84.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/85.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/86.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/87.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/88.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/89.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/90.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/91.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/92.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/93.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/94.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/95.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/96.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/97.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/98.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/99.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/100.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/101.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/102.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/103.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/104.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/105.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/106.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/107.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/108.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/109.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/110.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/111.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/112.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/113.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/114.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/115.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/116.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/117.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/118.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/119.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/120.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/121.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/122.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/123.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/124.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/125.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/126.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/127.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/128.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/129.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/130.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/131.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/132.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/133.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/134.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/135.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/136.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/137.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/138.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/139.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/140.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/141.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/142.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/143.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/144.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/145.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/146.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/147.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/148.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/149.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/150.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/151.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/152.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/153.jpg)
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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/154.jpg)
![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](https://reader033.vdocuments.us/reader033/viewer/2022042202/5ea344b61c591749991d4ac7/html5/thumbnails/155.jpg)
Erase
YoucanperformanautomaticeraseonaFLASHmemoryarea.ThisisthewaytoeraseallinformationinaFLASHmemoryareabeforeprogramming.