STVD对stm8在线调试的使用_第1页
STVD对stm8在线调试的使用_第2页
STVD对stm8在线调试的使用_第3页
STVD对stm8在线调试的使用_第4页
STVD对stm8在线调试的使用_第5页
已阅读5页,还剩3页未读, 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1早234567891 n前一段时间使用stm8单片机做一个项目的时候,由于是初次使用这 个开发环境。刚开始非常的不熟悉,找了一些资料好像也不是很齐全。 使用在线仿真调试的时候费了好大得劲才搞清楚如何使用。在下面总三 SI Visual Develop - Workspacestw - Lmain.cJJa Ale £dit View Project .Build ebug tfebug in str memToo 1崗Q 口"日su 4 cfS-stmBs207| Debug&s is铀Workspace- *结一下在线调试仿真的时候一些具体步骤:辐| Work?

2、pace.£tw由層I Stm8s2071、Debug instrument选项里面的下拉菜单选择U rj_ db i<a 归 |” 3雀也 醴sfcm9s307审 | DebugS 国狗咼®啓三BWorkhME11 2 ST Visual Develop - Workspace stv - main c|Ci Fils- Edit Vifrw Ptet Build Debu Debu 诡MLrLiM芒祇 Tfi&ls- Window 旦芒IpDebug Instrument SettingsTargetDbug: Instrument Sslection:S

3、elect the Target you.want to use for iebug :.、厶帝im 'LirikMot Plug Start(only 卄hen no application i5 1J Res tart th 电 appli cation with Swim O££ on stop cTarget Fort Selection:Select the c«nn«cticnport for the Tar gatusb:/usbselected above.AddRemoveShow the selected tar get no

4、ti Eicalioit at wtari. o£ deliI 幅 I厂取$ 1 应用加2、选择上图中的swim ST-Link,此选项适用于ST烧写器的选项3、点击红色椭圆形的按钮下载程序到stm8单片机Workspace聒Workspa1+ 罰 stmE期 Disassenn蓟 RegistersTicryAlt+4!TJ Instruction BreakpointsAlt+5AI12345678Xlt+6lt+Jt+區Locaf VariablSymbols Bro凸!1皿畑臼13 t-4TMkn! HbABj "J海Ef i母2 i : Pr n-' ft

5、* 0mfc?T" jEwT * 口世厦.吊舉 m m、/!Pi WorkspaceAlt+Oout Outout WindowAlt+1上图中红圈的部分是在仿真调试的时候会使用的快捷键Iq open die W->teh window, select 他理鼻册*皿TliB Wtch windowthe Cl>rwntofprpgrflmwhen theh ?lsppd- Enter thethflt "ant R monibgr h the ieFt-tiind CXlUnn qF the wndnw. Thflb updc-Ad udi tiiu tha迪I

6、p 口讯戸孔 0 bye>r ih白柑AN 甲诒in 由p wjiirh fantaacud 曲站u_7hs ab45- il叩arihtd -ars: c1>«a in 叶 conun oT 也p cur-Gnt Prugraa CixiTwr K) pooan. Yw cart cfwA 由吃 co>nlj«MC bytha C&U 滋IM血总仙 n Eh« Cal Suck Hirtiaw -eaaSkCiw?峥 Iflr Cj? $tKt iwndaw). The Watdi wixfcw <s nefrwli«l

7、 to day Manrible v#ue弘 #t ihe- pwibw E Hie Fr-me md«:3tcr.Yiyy 肆n,女i prngrm 科71>打 irpm 加q CEFG, 斤导却 t*9> 叶h? Wljh Mwiaw riwy:v flun>n-A Met ba typd drAUy TLb U*» lft 疋皿皿(doubJadidc dh Eli A fiiAC AnfiCy fw 討 Eha 34* M 曲占点 Cb kAbcfd AhMinawlv. a iaba may “ s4hccAd n iht Editcr w>

8、;nd4>A< jnd dr-aqad and dropped fit。did Wjnch window. T»w QwckW-stch w*ndm« JhD pravidH the button op bon *阴 tx? tVstrfPi In ind-ude the QuckW-vtch van«IWe n the- CLTTWit W-Mch 中 wfew.Fig w 1 n 7. WntrJi winriow4、点击Watch选项,调出查看窗口4+11 Local variables windowThe Lcc«i V9«

9、1a&*M-slw即& iMbno 时 pror-am对lat -are Ik# tn <he hMicbww Mw -xe 献切眉-at any givtr> b«e. w 出 » thw 胡uh at jpvbwkr pwits (s>ch as-"趣袖brufcixirk'l irt Bhn rurnngi of tfin projm.Td opffl th? LhpcoI回4口出.wthCT d«k 眄 the lo-ral isrlflNn 申ndw cm«n Sw (softer w. |r

10、gr» 也t rrne«xj. select Wewt-w 畑小磁巧Jh thfi «的剧心bdQw, liu vaiid dr 由之 varikl i d dQuJl tii 皿阳 Xw 叩町皿 A 呻 Mi d han Ad M abrakpMC.斛就r*i牛 in 说 El Nt mt 讯P nf 时VarldblES wifWtew ftfj 31比网丫 cirnent c-eii -stKlf n the Gall Stu A &nd 砂,id the iHt a? v-ansWw应 current ca* st act. nw cwrent c

11、al rtjetcan bs-Bw Htrlqwft l3fa. IL Deal V-ariablA£ aiid Call Mack wlii-duirf5、可以查看局部变量的数值Fiqure H6. Peripheral reqlstcrs windowFiqure 136. Local Variables and Call Stack windows! #D glop 0=52) at 8amplc1x:99J»1i 至 NO glop (i-52Jsamplel. c: 99Variable| Vlue| TypeAddicsstfl 0xf253 in_Utlr7(

12、) atsannpte2.s21#2 0xf260 in tstti? 0 at sampte2.s:26i| 52ir«0hIj3#3 OxfQbB in main () at mplel c:133tt4 Owflae in stext ()Local Variables windowCall Stack window丄| Locals 人 Parameters /4<16 Peripheral registers window可以查看外设寄存器的数值4.10 Call stack windowTn Qprwi th Call 54wii i¥WirRriM1 f

13、iffrifr cCk E Htf GsM 甘window “n 晒 rn th? tf lew B間*r gr tnm H"< mirn mTM 爭科ett 14piv>GvB'-N'4C*T&5 Gnll 牺阳屯戟負Ip. 3hws the tmctKn cdfa; stored cn the- "iKrwwtrolei CM Stack frwi Vie mast recent hjnctnn cal. traced &S?k tirttr5tfles£c->l. Fw 亡kmt口匕 Ux Frwam C-W

14、irtcr 中 n ai'iVirptMWliF ttw mniJIimAry wi Hvi C«fl Klarilc mindaiM'Ttw tuck iuiu nxk ar all iti« varublH mnd parHutE bead » Am gurc of Eh* 白吟> wiwa nhw ftjflfuui ii mad« ac itHb uafvunc af ch* hihcBz cd. _ _ _ _If vcallicadi if atacEd vd d«jbl«-dkkbd. cha so

15、jca codM carTMpooding ed diac addrMt vpaars highlighted)n ilia Edrtar nMaw. Prdm vvibtes dnd parjnHrs ar4 shn in if*) IbcBl Vuriabics: /,#»* wrth thehad "hen the 心ttam cal ww mad匕_二in Ehij! etxk pi?mHl prcjrjm3grrqpp<inftaig Bp qpifK 'fTTtniif m thn 右鼻1 耳上聲匕 g b* HYJunnFd nrnrraing

16、thp Pmgrjim 匚quh亦.2 直/iorV IM- dUMa A liuplhai: ar EtM pMrafti dE ChA euiTMEpaiilidr _h LuloI VadoMn nrdJM hliunk I?h vJihI 吩 * MMWr "i'. dud Elm2 Eiw PL ilihDivn booh rt Ectrs or if电 imaucbHi lt>4 hi Edor rdon, and p ttnns- of iti4 3dm旷rTShi- Oh-b5-Knrt>hT-nBvr -.FHjwe 134i Gall wind

17、ow «nd TterDctteP with vlher debugj windows-洱皿卩田R+机 xf 31 - <tr pCSP+i-'S,.yuuuncr l+|“F1 阴临 n iwi.ta甲| 扌 iiwu 丨 ±212 MN小4川*>:'畀1-3 UIlQn <nd|c l»e .c : B7rKtmn;uLecaiiO? iorik"bj i.v 壽Mxf“ <HK3T ng_Jcap IQxmC- <wait l口 flMiOl* hoit lifig-*00-1 -j4H±m_

18、jCH.i*E ing_Jsdp+G nxRJi|< 4mT3;t hELQ J«p4-9电口 ar_k%fiInoarri-1 STT| a itm : ICC4、T ai1 1 i可以查看变量堆栈的使用情况。注意:在查看变量的时候,不能运行程序,才能把变量拖放到Watch窗口,然后运行程序。就会看到变量在程序运行过程中的变化情况!4,11 Local variables windowFlnure k>6. LdcbI V-&rt«blcx-eindi Call 5tack wlndsisTd opendttwrdid; onBnohtmwhjawVi

19、tw tnabw <k, Iran the nuin irnnbn jddibQn B thcr deenptn OF皈 Pef1phw«l Registers wn* *)w thn ecban ccntarH mronnabMi-abn/t: 利0崛皿 网苫i:視rj OMnxkMf* Rerv帕E ncfl'scrT 咖哪 optwis RVCfflJ rwd Df JtdtUS nrT->?r5The Per1p*terBi PieH-ters:旳ndu» hpprs a 1st 亦 Hie penpherjh KMble m 宙e twK-t MCll, a? wel as the vjhie nf each penfwrars- snegHte< -at a parbcuLw value cf ths pnsgr-Bm counter pc).Th« sIdhis you to check tfie v-atub ar the ponpHral reHtons jc jny bakpwt n tftt dQbuogng 出 宙® progm.TKis¥

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论