瑞萨所有培训event break_第1页
瑞萨所有培训event break_第2页
瑞萨所有培训event break_第3页
瑞萨所有培训event break_第4页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

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

文档简介

1、瑞萨工具培训 2013CubeSuite+ V.1.03.002013. RESG Ptd.,s.练习 3:E1 仿真器 -应用说明E1 Emulator简介On-chip 调试器 (OCD),即 E1 仿真器支持两 (2) 种基本的断点:用于调试的断点和硬件断点。断点通过地址匹配暂停代码执行,而硬件断点则通过条件匹配(即数据和地址、读/写存取等)暂停代码执行。CubeSuite+ IDE 支持组合断点,即允许将多个断点事件组合在一起进行设置。此应用说明介绍了如何在配备RX610 RSK MCU 板的 E1 仿真器中使用组合断点。CubeSuite+ IDE V1.02.01 和更高版本目标器

2、件RL78,RX 族系列目录1.组合断点概览22.设置 E1 仿真器中的事件组合条件33.执行组合断点74.结论8R20AN0205CS0100 Rev.1.00Sep 15, 2012第 1 页,共 9 页E1 Emulator1.组合断点概览组合断点是指在 E1 仿真器中将多个断点事件(即执行类事件断点和存取类事件断点)组合在一起进行设置,合条件(即 OR(或)、AND(与)、Sequential(顺序)时暂停程序。以便在表 1 组合断点条件最多可以为组合断点设置 8 个事件(从 8 个执行地址类事件和 4 个数据存取类事件中选择并组合)。R20AN0205CS0100 Rev.1.00S

3、ep 15, 2012第 2 页,共 9 页组合条件说明OR(或)只要满足任何一个断点事件条件便会发生中断。AND(与)当满足所有事件条件(不考虑时间轴)时将发生中断。Sequential(顺序)当按指定顺序满足断点事件条件时将发生中断。合断点中只有 1 个断点事件可被为复位事件(R 事件)。E1 Emulator2.设置 E1 仿真器中的事件组合条件准备示例工程工作空间的步骤:1. 调用 CubeSuite+ IDE 并创建示例工程“RX610_Tutorial_Basic_Operation”2. 单击 Debug(调试) Build & Download(创建并 MCU 板。),以便将

4、E1 仿真器连接到 RX610 RSK此示例工程演示了 LED2(由端口 36 控制)和 LED3(由端口 33 控制)之间的 LED 闪烁。下面介绍了配置断点事件(条件为函数 Cmt0Func() 中的“count1”等于 0 x10)的步骤。3.将鼠标光标放到代码行“count1+”(地址:0 xF856B,行号:34)。右键单击以选择 Break Settings(断点设置) Set Combination Break(设置组合断点)图 1 设置组合断点R20AN0205CS0100 Rev.1.00Sep 15, 2012第 3 页,共 9 页E1 Emulator图 2 显示第 34

5、 行设置了组合断点。图 2 组合断点4.单击 View(视图) Event(事件)以调用 Events(事件)面板,然后右键单击 Edit Condition.(编辑条件.)图 3 编辑组合断点条件R20AN0205CS0100 Rev.1.00Sep 15, 2012第 4 页,共 9 页E1 Emulator5.将“Combination”(组合)设置为“Sequential”(顺序)(默认为“OR”(或),然后单击 OK(确定)按钮继续。图 4 将组合条件设置为 Sequential(顺序)6.在 Watch1(监视 1)面板中“count1”(地址:0 x1000)和“count2”(

6、地址:0 x1404)。图 5 Watch1(监视 1)面板中的变量R20AN0205CS0100 Rev.1.00Sep 15, 2012第 5 页,共 9 页E1 Emulator7.右键单击 Watch1(监视 1)面板中的变量“count1+”以选择 Ac s Break(存取断点) Set Write Combination Break to(将写入组合断点设置为),并将值设为“10”。此操作旨在允许当 “count1”等于 0 xA 时设置硬件断点。图 6 设置组合断点条件R20AN0205CS0100 Rev.1.00Sep 15, 2012第 6 页,共 9 页E1 Emula

7、tor3.执行组合断点在 CPU 复位时,“count1”将初始化为“0”。当满足以下条件时,程序将在顺序组合断点处暂停count 1(地址:0 x1000)的值变成 0 xA地址 0 xF856B 处出现硬件断点图 7 显示组合断点的执行结果图 7 组合断点的执行结果R20AN0205CS0100 Rev.1.00Sep 15, 2012第 7 页,共 9 页E1 Emulator4.结论组合断点是一种高级调试功能,可让用户基于某些事件条件暂停程序。只有支持 RX 族系列的 E1 仿真器(或 E20 仿真器)具备该功能。此应用说明中介绍的典型用法与基于匹配的数据和地址捕捉断点事件有关。R20

8、AN0205CS0100 Rev.1.00Sep 15, 2012第 8 页,共 9 页E1 Emulator和支持站/瑞萨查询/inquiry所有商标和商标都是其各自所有者的。R20AN0205CS0100 Rev.1.00Sep 15, 2012第 9 页,共 9 页修订说明修订版日期页面摘要1.002012 年 9 月 15 日初版已A-1处理 MPU/MCU 产品时的通用预防措施以下使用说明适用的所有 MPU/MCU 产品。对于有关本手册的产品的详细使用说明,请查阅本手册的相关章节。如果“处理 MPU/MCU 产品时的通用预防措施”下的说明和本手册正文中的说明不相同,则本手册正文中的说

9、明优先。Handling of Unused PinsHandle unused pins in accord with the directions given under Handling of Unused Pinshe manual.The input pins of CMOS products are generallyhe high-impedane. In operation win unused pinhe open-circuit se, extra electromagnetic noise is inducedhe vicinity of LSI, an assoted

10、shoot-through current flowsernally, and malfunctions occur due to the false recognition of thn se as an input signalesible. Unused pins should be handled as described under Handling of Unused Pinshe manual.Prosing ater-onThe se of the product is undefined at the moment whener ipp d.The ses ofernal c

11、ircuitshe LSI are indeterminate and the ses of register settings and pins are undefined at the moment whener ipp d.In a finished product where the reset signal is app d to the external reset pin, the ses of pins are not guaranteed from the moment whener ipp d until the reset pros is completed. In a

12、similar way, the ses of pins in a productt is reset by an on-chiper-on reset function are not guaranteed from the moment whener ipp d until theer reaches the level at which resetting has been specified.Prohibition of Ac s toAddresses Acs toaddresses is prohibited.Theaddresses are provided for thesib

13、le future expanof functions. Do notacs these addresses; the correct operation of LSI is not guaranteed if they are acsed.Clock SignalsAfter applying a reset, only release the reset line after the operating clock signal hase stable. When switching the clock signal during program execution, wait until

14、 theclock signal has stabilized.When the clock signal is generated win external resonator (or from an external oscillator) during a reset, ensuret the reset line is only released after full stabilization of the clock signal. Moreover, when switching to a clock signal produced win external resonator

15、(or by an external oscillator) while program execution is in progress, wait until theclock signal is stable.Differenbetn ProductsBefore changing from one product to another, i.e. toidifferent type number, confirmt the change will not lead to problems.The characteristics of MPU/MCUhe same group buvin

16、g different type numbers may differ because of the differeninernal memory capacity and layout pattern. When changing to products of different type numbers, implement a system-evaluation test for each of the products.SALES OFFIhttpRefer to http/ for the latest and detailed information.Renesas Electro

17、nics America Inc.2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A.:, Fax:Renesas Electronics Canada Limited1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada:, Fax:Renesas Electronics Europe LimitedDukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K:, Fax:Renesas Elect

18、ronics Europe GmbHArcadiastrasse 10, 40472 D dorf, Germany:, Fax:Renesas Electronics (China) Co., .7th Floor, Quantum Plaza, No.27 ZhiC Lu Haidian District, Beijing 100083, P.R.China: +86-10-8235-1155, Fax: +86-10-8235-7679Renesas Electronics (Shanghai) Co.,Unit 204, 205, AZIA Center, No.1233 Lujiaz

19、ui Ring Rd., Pudong District, Shanghai 200120, China: +86-21-5877-1818, Fax: +86-21-6887-7858 / -7898Renesas ElectronicsLimitedUnit 1601-1613, 16/F., Tower 2, Grand Century Place, 193 Prince Edward Road West, Mongkok,:, Fax:/9044Renesas ElectronicsCo., .13F, No. 363, Fu Shing North Road, Taipei,: +8

20、86-2-8175-9600, Fax: +886 2-8175-9670Renesas Electronics Singapore Pte. .1 harbourFront Avenue, #06-10, keppel Bay Tower, Singapore 098632:, Fax:Renesas Electronics Malaysia Sdn.Bhd.Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No. 18, Jln Persiaran Barat, 46050 Petaling Jaya, Selangor Daru

21、l Ehsan, Malaysia: +60-3-7955-9390, Fax: +60-3-7955-9510Renesas Electronics Korea Co., .11F., Samik Lavied or Bldg., 720-2 Yeoksam-Dong, Kangnam-Ku, Seoul 135-080, Korea: +82-2-558-3737, Fax: +82-2-558-5141 2012 Renesas Electronics Corporation.s.Colophon 1.1NoticeAll information included hisis curre

22、nt as of the date thisis i ed. Such information, however, i bject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information wi Renesas Electronics sales office. Also, please pay regular and careful att

23、ention to additional and different information to be disclosed by Renesas Electronic ch as t disclosed through our website.Renesas Electronics does not a me any liability for infringement of patents, copyrights, or other ellectual property rights of third parties by or arising from the use of Renesa

24、s Electronics products or technical information described hisNo license, express, imp d or otherwise, is granted hereby under any patents, copyrights or other ellectual property rights of Renesas Electronics or others.You should not alter, modify, copy, or otherwise misappropriate any Renesas Electr

25、onics product, whether in whole or in part.Descriptions of circuits, software and other related information hisare provided only to illustrate the operation of semiconductor products and application ex les. You are fully responsible for the incorporation of these circuits, software, and information

26、he design of your equipment. Renesas Electronics a mes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.When exporting the products or technology descr bed hisyou should comply with the applicable export control laws a

27、nd regulations and follow the procedures required by such laws and regulations. You should not use Renesas Electronics products or the technology described hisfor any pur e relating to military applications or use by the military, including but not limited to the development of weapons of mass destr

28、uction. Renesas Electronics products and technology may not be used for or incorporated o any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.Renesas Electronics has used reasonable care in preparing the information inclu

29、ded his, but Renesas Electronics does not warrant t such information is error free. Renesas Electronics a mes no liab lity whatsoever for any damages incurred by you resulting from errors in or omis s from the information included herein.Renesas Electronics products are classified according to the f

30、ollowing three quality grades Standard, High Quality, and Specific. Themended applications for each Renesas Electronics product depends on the products quality grade, as indicated below. You must check the qua ity grade of each Renesas Electronics product before using it in a particular application.

31、 You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for which it is not ended without the prior written consent of Renesas E

32、lectronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Spec fic or for which the product is not ended where you have failed to obta he prior wr

33、 tten consent of Renesas Electronics. The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books, etc.Standard Computers; office equipment; communications equipment; test and measurement equipment; audio a

34、nd visual equipment; home electronic applian machine tools; al electronic equipment; and industrial robots.High Quality Transpor ion equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems;rime systems; safety equipment; and medical equipment not specifically des

35、igned for life support.SpecificAircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or systems for life support (e.g. artifi l life support dev or systems), surgical implan ons, or healthcare ervention (e.g. excietc.), and any other applications or

36、 pur ese a direct threat to human l fe.You should use the Renesas Electronics products described hiswith he range specified by Renesas Electronics, espe lly with respect to theum rating, operating supply voltage range, movement er vo tage range, heat radiation characteristics, installation and oth r

37、oduct characteristics. Renesas Electronics sha l have no liability for malfunctions or damages arising out of the use of Renesas Electronics productssuch specified ranges.Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have specif

38、ic characteristic ch as the occurrence o lureertain rate and ma functions under certain use conditions. Further, Renesas Electronics products are not subject to radiationdesign. Please be sure to implement safety measures to guard them against thesibility of physical injury, and injury or damage caused by fire he event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and m

温馨提示

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

评论

0/150

提交评论