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

付费下载

下载本文档

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

文档简介

1、2013 培训CubeSuite+ V.1.03.002013. RESG Ptd.,s.练习 5a:CubeSuite+ -如何配置用户定义的启动文件应用说明R20AN0203CS0100Rev.1.00 Sep 15, 2012简介在 CubeSuite+ IDE 中针对 RL78 和 RX MCU 的工程生成 (PG) 过程中,默认情况下,系统会指定标准启动例程(以库的形式)。本应用说明介绍了默认启动例程,以及如何将用户定义的启动例程添加到 CubeSuite+ 工作空间中。用于 RL78、78K V1.02.00 或更高版本的 CubeSuite+ 套件用于 RX V1.02.00 或

2、更高版本的 CubeSuite+ 套件目标器件RL78,RX 族系列目录1.默认启动例程22.用户定义的启动例程43.结论6R20AN0203CS0100 Rev.1.00Sep 15, 2012第 1 页,共 7 页1.默认启动例程1.2.调用 CubeSuite+ IDE 并创建示例工程“RL78_G13_Tutorial_Basic_Operation”双击 CA78K0R (Build Tool)(CA78K0R(创建工具)打开 CA78K0R Property(CA78K0R 属性)面板3.查看 Compile Options(编译选项)选项卡中的默认设置 Memory M(器模型)

3、Output objects for flash(为闪存输出目标)= No(否)Startup(启动)Use standard startup routine(使用标准启动例程)= Yes(Normal)(是(普通)Using standard routine(使用标准例程)=“S0rll rel”图 1 CA78K0R 属性面板(使用标准启动例程)“S0rll.rel” 是预编译目标文件,用于启动例程。该文件可在以下路径中找到C:Program FilesRenesas ElectronicsCubeSuite+CA78K0RV1.40Srccc78k0rlib (default insta

4、llation directory)R20AN0203CS0100 Rev.1.00Sep 15, 2012第 2 页,共 7 页在相同的“lib”文件夹中(取决于所选的目标 RL78 器件),系统会将不同的预编译目标文件用于 RL78 启动例程(如表 1 中所示)。表 1 针对 RL78 启动例程的 Lib 文件夹内容R20AN0203CS0100 Rev.1.00Sep 15, 2012第 3 页,共 7 页文件名文件角色普通引导区闪存区s0rm.rels0rmb.rels0rme.rel用于启动例程的目标文件s0rml.rels0rmlb.rels0rmle.rels0rl.rels0r

5、lb.rels0rle.rels0rll.rels0rllb.rels0rlle.rels0r.relm: 小或中模型l: 大模型none: 未使用标准库l: 使用的是标准库none: 普通b: 针对引导区e: 针对闪存区2.用户定义的启动例程1.进行以下设置Startup(启动)Use standard startup routine(使用标准启动例程)=“No”(否)“Using standard routine = S0rll rel”(使用标准例程 = S0rll rel)选项变为隐藏。图 2 CA78K0R 属性面板(未使用标准启动例程)2.找到“cstart.asm”并将其添加到

6、CubeSuite+ 工程工作空间。此汇编启动例程可在以下路径中找到:C:Program FilesRenesas ElectronicsCubeSuite+CA78K0RV1.40Srccc78k0rsrc(默认安装目录)R20AN0203CS0100 Rev.1.00Sep 15, 2012第 4 页,共 7 页“src”文件夹中包含针对普通区、引导区或闪存区的不同汇编源文件,均用于 RL78 启动例程(如表 2 中所示)。表 2 针对 RL78 启动例程的 Src 文件夹内容R20AN0203CS0100 Rev.1.00Sep 15, 2012第 5 页,共 7 页启动例程源文件名解释

7、使用标准库未使用标准库cstart.asmcstartn.asm用于启动例程的源文件(普通区)cstartb.asmcstartbn.asm用于启动例程的源文件(引导区)cstarte.asmcstarten.asm用于启动例程的源文件(闪存区)3.结论默认情况下,在 CubeSuite+ IDE 中,预编译的目标文件会用于 PG 生成的工作空间的启动例程。要使用用户定义的启动例程,需要将编译器选项“Use standard startup routine”(使用标准启动例程)配置为“No”(否)并将“cstart.asm”添加到 CubeSuite+ 工程工作空间。R20AN0203CS01

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

9、ed 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 shoot-through curren

10、t 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 circuitshe LSI are in

11、determinate 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 similar way, the ses

12、 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 thesible future expanof fu

13、nctions. 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 theclock signal has

14、 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 (or by an external o

15、scillator) 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 buving different type num

16、bers 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.httpSALES OFFIRefer to http/ for the latest and detailed information.Renesas Electronics America Inc.288

17、0 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 Electronics Europe GmbHAr

18、cadiastrasse 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 Lujiazui Ring Rd., Pudon

19、g 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,: +886-2-8175-9600, Fa

20、x: +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 Darul Ehsan, Malaysia:

21、 +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 current as of the date

22、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 attention to addition

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

24、ts or technical information described his. No 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 no er, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether

25、 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 he design of your equi

26、pment. 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 described his, you should comply with the applicable export control laws and regulations and f

27、ollow 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 destruction. Renesas Elec

28、tronics 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 included his, but Renesas

29、 Electronics does not warrant such information is error free. Renesas Electronics a mes no liability 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 following three quality

30、 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 t in a particular application. You may not use any Re

31、nesas 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 Electronics. Renesas Ele

32、ctronics 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 Specific or for which the product is not ended where you have failed to obta he prior written consent of Renesa

33、s 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 and visual equipment; ho

34、me 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 designed for life suppor

35、t.Spec ficAircraft; 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. exc , etc.), and any other applications or pur es t e a direc

36、t threat to human life.You should use the Renesas Electronics products described hiswith he range specified by Renesas Electronics, espe ly with respect to theum rating, operating supply voltage range, movement er voltage range, heat radiation characteristics, installation and oth roduct characteris

37、tics. Renesas Electronics shall 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 ts products, semiconductor products have specific characteristic

38、ch as the occurrence o ilureertain rate and malfunctions 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 malfu

温馨提示

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

评论

0/150

提交评论