瑞薩所有培訓userdefined_第1頁
瑞薩所有培訓userdefined_第2頁
瑞薩所有培訓userdefined_第3頁
瑞薩所有培訓userdefined_第4頁
瑞薩所有培訓userdefined_第5頁
已閱讀5頁,還剩6頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、2013 培訓CubeSuite+ V.1.03.002013. RESG Ptd.,s.練習 5a:CubeSuite+ -如何配置用戶定義的啟動文件應用說明R20AN0203CS0100Rev.1.00 Sep 15, 2012簡介在 CubeSuite+ IDE 中針對 RL78 和 RX MCU 的工程生成 (PG) 過程中,默認情況下,系統(tǒng)會指定標準啟動例程(以庫的形式)。本應用說明介紹了默認啟動例程,以及如何將用戶定義的啟動例程添加到 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 并創(chuàng)建示例工程“RL78_G13_Tutorial_Basic_Operation”雙擊 CA78K0R (Build Tool)(CA78K0R(創(chuàng)建工具)打開 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 頁在相同的“l(fā)ib”文件夾中(取決于所選的目標 RL78 器件),系統(tǒng)會將不同的預編譯目標文件用于 RL78 啟動例程(如表 1 中所示)。表 1 針對 RL78 啟動例程的 Lib 文件夾內容R20AN0203CS0100 Rev.1.00Sep 15, 2012第 3 頁,共 7 頁文件名文件角色普通引導區(qū)閃存區(qū)s0rm.rels0rmb.rels0rme.rel用于啟動例程的目標文件s0rml.rels0rmlb.rels0rmle.rels0rl.rels0r

5、lb.rels0rle.rels0rll.rels0rllb.rels0rlle.rels0r.relm: 小或中模型l: 大模型none: 未使用標準庫l: 使用的是標準庫none: 普通b: 針對引導區(qū)e: 針對閃存區(qū)2.用戶定義的啟動例程1.進行以下設置Startup(啟動)Use standard startup routine(使用標準啟動例程)=“No”(否)“Using standard routine = S0rll rel”(使用標準例程 = S0rll rel)選項變?yōu)殡[藏。圖 2 CA78K0R 屬性面板(未使用標準啟動例程)2.找到“cstart.asm”并將其添加到

6、CubeSuite+ 工程工作空間。此匯編啟動例程可在以下路徑中找到:C:Program FilesRenesas ElectronicsCubeSuite+CA78K0RV1.40Srccc78k0rsrc(默認安裝目錄)R20AN0203CS0100 Rev.1.00Sep 15, 2012第 4 頁,共 7 頁“src”文件夾中包含針對普通區(qū)、引導區(qū)或閃存區(qū)的不同匯編源文件,均用于 RL78 啟動例程(如表 2 中所示)。表 2 針對 RL78 啟動例程的 Src 文件夾內容R20AN0203CS0100 Rev.1.00Sep 15, 2012第 5 頁,共 7 頁啟動例程源文件名解釋

7、使用標準庫未使用標準庫cstart.asmcstartn.asm用于啟動例程的源文件(普通區(qū))cstartb.asmcstartbn.asm用于啟動例程的源文件(引導區(qū))cstarte.asmcstarten.asm用于啟動例程的源文件(閃存區(qū))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 產品。對于有關本手冊的產品的詳細使用說明,請查閱本手冊的相關章節(jié)。如果“處理 MPU/MCU 產品時的通用預防措施”下的說明和本手冊正文中的說明不相同,則本手冊正文中的說明優(yōu)先。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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論