Home
R8C Tiny Series E8a Emulator Application Note Write Facility of the
Contents
1. REJ06J0069 0100 Rev 1 00 2009 2 Page 1 of31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 1 Specification Broadly classified the E8a emulator has two operation modes a debug mode and a writer mode in which the E8a emulator is used as a flash writer If the user program is downloaded in debug mode the emulator control program also not just the user program alone is written into the microcomputer Therefore the program cannot be run with the MCU alone without using the E8a emulator by removing it after debugging lf the E8a emulator is used as a writer it must be started in writer mode When the E8a emulator is started in writer mode the user program data only can be written into the microcomputer s internal flash memory after being erased In this case since there are no E8a emulator programs in the flash memory it is impossible to debug the user program using the E8a emulator but it is possible to run the program with the MCU alone after a write The load module to be downloaded must be registered in the workspace 2 Facilities Used 2 1 Outline of the E8a Emulator s Writer Facility The E8a emulator s writer mode may be used for such purposes as to write the user program into the microcomputer s internal flash memory singly and then verify how it actually behaves In this case since there are no E8a emulator programs in the flash memory program behaviors are
2. Hes Specify ID code by hexadecimal 14 digits C ASCII Specify ID code by ASCII character within 7 letters cancel Shown in the above example is the ID code confirmation screen that is displayed when the E8a emulator is connected to a microcomputer that has had ID code written in it following the procedure in Section 4 3 of this document Unless the correct ID code is supplied in the ID code confirmation dialog box you cannot proceed to the next step Therefore the ID code that you set needs to be managed carefully If the ID code is FFFFFFFFFFFFFF in hexadecimal the ID code confirmation dialog box is not displayed and you are brought to the next screen 10 When the E8a emulator is successfully connected a message Connected is displayed on the Debug tab of the output window 33 p1 High performance Embedded Workshop File Edit View Project Debug Setup Tools Test Window Help M bos e annn En gne HPO Ss alala le 3 Download modu 3 Dependencies 4 o1 ot al at U 2 2 Boot version VER O 90 2 e version 1 00 00 000 Riiconnectea A gt f Build Debug Findin Files 1 FindinFiles2 Macro Test Version Control _ Ready Ft E4 E 4 Defaultt desktop INS NUM 4 REJ06J0069 0100 Rev 1 00 2009 2 Page 19 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 11 Choose Debug Setting from t
3. 10 Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products
4. pl aa Download modu Tutorial mot 3 Dependencies 20 To continue to write click the Connect HEW button in the toolbar and repeat steps 6 9 16 17 19 and 20 REJ06J0069 0100 Rev 1 00 2009 2 Page 23 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 6 Connecting to the E8a emulator 9 Entering ID code 16 Writing downloading program 17 When a write is completed normally 19 Severing the connection 20 20 Continuing to write 21 To write the same file launch the workspace you ve created above by opening it the next time you start the HEW Welcome OF Cancel Sel C Create a new project workspace oS abs C Browse to another project workspace The rest is the same as described in paragraph 6 of Section 4 5 Workspaces can also be restarted by double clicking a workspace file for the HEW extension hws directly from Windows Explorer etc Here weve presented the method for writing to the flash memory using the E8a and the High performance Embedded Workshop To write a large amount of data as in a mass production process we recommend using the dedicated flash write software Flash Development Toolkit instead of the High performance Embedded Workshop The Flash Development Toolkit comes with the facility to read out flash memory contents the facility to erase the flash memory one blo
5. or if you have any other inquiries 2009 Renesas Technology Corp All rights reserved REJ06J0069 0100 Rev 1 00 2009 2 Page 31 of 31
6. 7 Jomes 2 EH E THORP D gt EAn ew a Aa E zi GY Tutorial Plies Stet uaa Mma E Tutorial 4 2 3 C source file El Linker section setting Paj f gm 000400 data_NE 000400 00040F 00000010 3 heap c E data_SE bss_SE data_50 bss_350 data_N bss_NE 000410 000415 00000006 E rains oocooo stack 000416 000495 oo000080 intprg c B Cates H rom NE rom NO data SEI data SOI data istack 000496 000515 ooooooso A sorte gh OOFEDC 000516 000595 oo000080 B talc an ee i oocooo OocOOoF 00000010 Ey Download modu o0co010 OOCSAF 00000540 0 Tutorial 30 interrupt OOCSBO o0c65 O00000a4D QQ Dependencies fvector OOFFDC OOFFFF 00000024 cstartdef h initsct h resetprg h sorth typedefine h fit sf fvector c Map Section 4 o of al at 21 21 7 S E Boot version VER O 90 E8a firmware version 1 00 00 000 Connected Build A Debug FindinFiles1 A FindinFiles2 A Macro A Test A Version Control Ready Fz Z2 E E4 Default1 desktop Read write 46 53 31 INS NUM 4 Sorting the displayed Start Address in ascending order we know that the data with ROM attribute to be stored in the flash memory area is present in a location from the address C000 to the address FFFF Note that the map window displayed in this example has its docking view turned off REJO6J0069 0100 Rev 1
7. Internal Flash Memory 15 The file to download is added to the list in the workspace window 3 p1 High performance Embedded Workshop File Edit Yiew Project Debug Setup Tools Test Window Help jemen s 22 B Ge NeOPe So gt Ealar E H 01 ot al at 2121 7 8 2 Boot version VER O 90 E8a firmware version 1 00 00 000 42 Build A Debug 4 FindinFiles 1 A FindinFiles2 A Macro A Test A Yersion Control Ready Ft Fe Fel FA Default desktop z INS MM 4 16 Right click the filename part of the file in the workspace window and select Download from the context menu 3 p1 High performance Embedded Workshop File Edit Yiew Project Debug Setup Tools Test Window Help jOM bo es 2 le THE ePeS gt Flaw e er ae pl pl H E Download modu bo he Tutor 0a E Depen ncies ownload Debug Data Onl Download 4 New Module Remove Debug Settings Configure View ov Allow Docking Hide Relocate Module Properties le i aM o1 ot al at 21 21 7 2 9 Boot version VER O 90 E8a firmware version 1 00 00 000 Connected Debug FindinFiles1 A FindinFiles2 Macro A Test A Version Control Download the selected module s E E E E Default1 desktop za INS NUM In the Flash Memory Data Write mode only the download facility works The other facilities do not show the correct value REJ06J0069 0100 Rev 1 00 2
8. aaen E asmeaenednoeiedsavansened A E E EES 2 EAn es fe gE o PE E E A E E E E E eee meee ere 2 Installing the Software Supplied with the E8a Emulator ccccccceseeccceeceeseeceeccaeeeeeeeeeeeeeeeeessaeees 3 Installing Other Necessary SOMW ANC iscissi ai eae aa a a CEE aa a 3 Operational SSC DMO I eeii T EA O E 3 Starting the High performance Embedded Workshop ccccccsseseeeeeeeeeseeeeecaeeseeeeesaeeeeeeesaaeeeeess 4 Opening a VV OFKSD ACS i casincciinswosins cnssnsineanneninmdenmnsionainigaatnnsibdainn eantielibainwaanehtieaesmatineaasinetogenieensenseentanetnesialnnunnens 4 EM MED OS ar carcat assis E E EAE E 9 Writing Data into the Flash MOMOPy cccccccssseeecseeeeeeeeeeeecseeeeeaeaseeeseaeeesaaeeeessaseeessaneeessaeeeessees 13 Using the Ega AS a Write Toolsin A EAEE ESENE ETEA 15 Frequently Asked Questions sa cesescaten cocedcnccineetes cltuietasduincstaiec dinnetee adie dasdeineneweddeentaeidbtediaadisle deco cgnatbendeneeee 26 Are there any precautions to take when verifying the program behavior with a microcomputer alone after debugging IS complete cccccccccseesceccceeeeeeecceaueececceaueeceesseaueeeeeseeaeeeeessaaseeeeessaaeeess 26 When a dialog box is displayed asking for ID code what should be Input ccceeeceeeeseeeeeees 27 Frequency Encountered Errors and the Corrective Actions to Take cccccceeccceceseeeeeeeeeeeseeeees 28 Paned DOCM eaea ne tet ees E E eee een eee E 29
9. download into the flash memory Here select No or No for All Confirmation Request 1 OF to download module CYW ork Spaces Tutoria E Sas A SCT utora Tutoria Debug _R8C_E8a SY STEMSAT utorial x30 Don t ask this question again i Yes to all Mo to all Cancel In the example presented in this document data is written into the flash memory after checking map information so that automatic download is canceled here In cases where it is known beforehand that data can be written in correctly you might select Yes or Yes for All and proceed to perform a download into the flash memory 6 Choose Map from the View menu amp 3 Tutorial High performance Embedded Wor ote File Edit BAER Project Build Debug Setup Tool Ci ce r Differences Command Line Ctrl L E Tutori gg aT Toolkit Ctrl Shift k i y Ep l Hy E Status Bar Alta is j Disassembly Chri D T DD o REJ06J0069 0100 Rev 1 00 2009 2 Page 11 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 7 The Select Type of Map dialog box will be displayed In this dialog box select Map Section Information and click the OK button Select Map Window Type 7f E Cancel lt gt File Edit View Project Build Debug Setup Tools Test Window Help 0X Denga e 2 JA E D Bi e Debug Rec Esa SYS z Sessionn8C_Esa_sYST x
10. each product are described in the related documents listed below Please see these manuals along with this document E8a emulator related documents e E8a Emulator User s Manual e E8a Emulator User s Manual Separate Volume Supplementary explanation about the R8C and the precautions to take when connecting it High performance Embedded Workshop related documents e High performance Embedded Workshop User s Manual e High performance Embedded Workshop Release Notes CPU related documents e R8C Family Hardware Manual e R8C Family Software Manual M16C series C compiler related documents e M3T NC30WA C Compiler Guidebook C Compiler Package for the M16C Series e M3T NC30WA Assembler User s Manual C Compiler Package for the M16C Series To see more information on the E8a emulator please visit the Renesas websites given below Japan site http japan renesas com e8a Global site http www renesas com e8a REJ06J0069 0100 Rev 1 00 2009 2 Page 29 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory Home Page and Where to Contact for Support Renesas Technology home page http www renesas com Where to contact http www renesas com inquiry Revision Record Contents of revision Rev Issue date Page Points 2009 2 13 __ First edition issued a a a REJ06J0069 0100 Rev 1 00 2009 2 Page 30 of 31 R8C Tiny Series E8a Emulator a
11. or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges
12. sessions proceed to step 6 i High performance Embedded Workshop File Edit View Project Build Debug Setup Tools Test Window Help Welcome ororarar U 7 BM Lit 4 h Build debug Findin Files 1 Findin Files 2 Macro Test Version Control 7 Ready Ins NUM 4 oS oS ees SSS SSS SSS OY 2 The New Project Workspace dialog box will be displayed Select M16C for CPU Type and None for Toolchain For Project Type select Debugger Only R8C E8a SYSTEM type a name in the Workspace Name text box and then click the OK button New Project Workspace Projects Workspace Name Project Types 3 Ae Debugger only M16C ESa 5 pt teil Project Name Fg Debugger only RBC EBa S Y pl Directory C AWorkS pace Browse MTEC Properties In the example here the workspace name p1 is set REJ06J0069 0100 Rev 1 00 2009 2 Page 15 of 31 R8C Tiny Series E8a Emulator al LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 3 Select the target concerned and click Next Setting the Target System for Debugging Targets Baie oa SaS 4M PASC Ea SYSTEM In the example here R amp C E8a SYSTEM is selected 4 The Debugger Options dialog box will be displayed Leaving the default intact simply click Finish Setting the Debugger Options Target name RSC Eda SYSTEM Configuration name D ebug_ASC_ESa SYSTEM De
13. start fm Renesas fag High performance Embedded Workshop gt IE Setup Tool For E104 USE Emulator T Multiple Install Manager gmg High performance Embedded Workshop Ei Renesas Tools HomePage A High performance Embedded Workshop Help 2 High performance Embedded Workshop Read Me BS manual Navigator All Programs B JA Log Ff Turn OFF Computer 4 2 Opening a Workspace 1 The welcome dialog box will be displayed in the High performance Embedded Workshop M High performance Embedded Workshop Welcome e Create a new project workspace Ok Cancel as Openarecent project workspace Ey Administration e C Browse to another project workspace 1 Debug A Find in Files 1 Findin Files2 Macro A Test A Version Control Ready foo INS NUM REJO6J0069 0100 Rev 1 00 2009 2 Page 4 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory Select the Browse Another Project Space radio button in the welcome dialog box and click the OK button Welcome Sel C Create anew project workspace Cancel Pe Administration vat File name Tutorial Select J Files of type HEW Workspaces hws Cancel If the installation of the CD ROM of this product is complete the workspace Tutorial hws is stored as standard in the folder position shown below Check folder po
14. 00 2009 2 Page 12 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 4 4 Writing Data into the Flash Memory 1 Select the Debug tab of the output window Next right click the load module filename displayed in the Download Modules part of the workspace display column and then choose Download from the context menu Or aload module can be downloaded directly by double clicking its filename 3 Tutorial High performance Embedded Workshop Map Section Information lt 0 File Edit View Project Build Debug Setup Tools Test Window Help o xX Dbd it Seles C ae 3 k 2S Debug_R8C_E8a_sys SessionR8C_E8a_SYST v At RG wg 2 PN ETE EFR E N PD Bik A A a x Tutorial EY e ot Pe e ot tS E utoria SEa C source fie Linker section setting Name Start Address End Address size B fvector c au 000400 data_NE 000400 OO040F 00000010 5 heap c Gu data SE bss SE data 0 bss 30 data N bss NE 000410 000415 00000006 E T amp oocooo stack 000416 000495 ooo00080 intprg c te Fe eai rom NE rom NO data_SEI data SOI data istack 000496 000515 00000080 E ate A OOFEDC heap NE 000516 000595 oo000080 Tutorial data NEI 00C00O 0000F 00000010 24 Download geste program o0co010 OOcSAF 00000520 Bi 7 interrupt 00C5B0 ooce6s oooo00aD 38 Depertly fvector OOFFD C OOFFFF 00000024 cstartdef h initsct h resetprg h sort
15. 009 2 Page 22 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 17 When a flash memory data write is complete a message box Flash Memory Writing OK is displayed along with Sum Data and ID Code After confirming the content click the OK button High oars omanoe Embedded Wer miler Pie oae biei Too eo iM OCS DABRE FlSsh Wemori Writing Flash memory urie ene Bud Debug A Finda Pies 1 A Fid in Piles 2 Se ATA Se a 2 ee O e O N e When a flash memory write begins a message Flash Memory Writing is decayed on the Debug tab of the output window When the write is complete a message Flash Memory Write End is displayed 18 The message box Please Reset or Exit follows Click the OK button debugger This completes writing to the flash memory In the Flash Memory Data Write mode no programs can be debugged using the E8a emulator Restart or close the E8a emulator 19 Click the Disconnect HEW button in the toolbar to sever a connection with the E8a emulator before removing the user system To terminate a write close the HEW here too To continue to write proceed to the next step Even when you continue to write be sure to disconnect the E8a once 3 p1 High performance Embedded Workshop File Edit View Project Debug Setup Tools Test window em lene 2 st a Ee pi
16. AS Write Facility of the Microcomputer s Internal Flash Memory 6 Frequency Encountered Errors and the Corrective Actions to Take 1 Driver Error Illegal driver inter face select Unable to communicate with the E8a Unplug the USB cable from the PC briefly and plug it back into position 2 Driver Error No available communication devices found The E8a is not connected Check the USB cable 3 Connector disconnected Please connect and press lt Enter gt key The user board and the E8a are not connected Connect the user board and the E8a and then press the Enter key 4 Flash memory erase error Change device Failed to erase the flash memory Replace the microcomputer with another 5 Flash memory write error Failed to write to the flash memory This error often occurs in cases where the microcomputer is operating with a voltage lower than the guaranteed write voltage 6 Communication timeout error No responses are received from the microcomputer Visit the Renesas website and see the Frequently Asked Questions regarding the E8a REJ06J0069 0100 Rev 1 00 2009 2 Page 28 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 7 Related Documents The E8a emulator and the HEW have numerous other convenient facilities and features not discussed in this document Detailed specification technical information limitations and other useful information on
17. Files 2 version Control Ready Ft E3 Ee FA Default desktop Read write 1 53 ft INS NUM In this state you cannot debug yet because there are no E8a emulator programs in the flash memory The values displayed in the memory window etc are dummy If any debug operation is attempted an error message is displayed on the Debug tab of the output window eS it Aili 4 lo wh re E H Gi S Log en 55 Flash memory writing Flash memory write end Ready Shown above is an example of an error display that appears when program execution is specified Here close the E8a emulator The next section describes the procedure for making use of the E8a emulator s writer facility to write existing data into the flash memory REJO6J0069 0100 Rev 1 00 2009 2 Page 14 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 4 5 Using the E8a As a Write Tool So far we ve explained how to write into the flash memory in an environment where there is already a workspace available for debugging use From now we ll explain the method for using the E8a as and only as a write tool to write existing data into the flash memory 1 In the welcome dialog box of High performance Embedded Workshop displayed on startup select Create New Project Workspace and click the OK button If you already have a project created for development use download it and after switching
18. LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory Notes regarding these materials 1 This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to chan
19. Please select communication baud rate between Emulator and MCU 500000 bps v lt Back C Frish G Cancel T Do not show this dialog box again 8 When a connection of the E8a emulator is in progress the Connecting dialog box shown below is displayed Connecting Downloading Flash memory write program Flash memory erasing e When a connection in the Write to Flash Memory mode is complete the entire area of the microcomputer s internal flash memory is erased blanked to get it prepared for a write The R8C family microcomputer is provided with the ID code check facility to prevent the flash memory from being read or rewritten easily by a third party This ID code check facility ensures that unless the ID code sent from the E8a matches the 7 byte ID code written in the flash memory the E8a can neither read out nor erase the flash memory Each byte of the ID code consists of 8 bit data located at the addresses OOFFDFh OOFFESh OOFFEBh OOFFEFh OOFFF3h OOFFF7h and OOFFFBh beginning with the first byte Before the ID code check facility can be used a program that has had an ID code set in it must be written into the flash memory at these addresses If any value other than FF is written at the ID code store address of the microcomputer used a dialog box is displayed prompting for the confirmation of the ID code before a connection of the E8a emulator begins If this dialog box is displayed enter the ID writte
20. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http Awww renesas com Send any inquiries to hitp www renesas com inquiry CENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted
21. agma interrupt y dummy int reserved 3T pragqma interrupt y dummy int reserved 36 pragma interrupt v start 45 pragma interrupt dummy int 49 oid dummy int vwoidj i In the example here a hexadecimal value 123456789ABCDE is used For details on how to set the ID code see the relevant sections in the assembler user s manual of the C compiler package where In30 Imc30 and directive commands are described REJ06J0069 0100 Rev 1 00 2009 2 Page 10 of 31 R8C Tiny Series E8a Emulator ai gE NI ESAS Write Facility of the Microcomputer s Internal Flash Memory 4 Choose Build from the Build menu 3 Tutorial High performance Embedded Workshop fvector c gt File Edit View Project alii Debug Setup Tools Test Window Help Renesas MIEC Standard Toolchain Build E Build J ies Tutorial Build Multiple Ser C SOUICE file Clean Current Project Eg RESURS EF Clean all Projects E H heap c Vv Dy Update All Dependencies Initect c 2P p i intprg X o E resetprg c ry oo E sote Include Exclude Build w Tutorial c H Download mo Build Phases I iL Tutorial x3 EH 5 3 Dependencies Build Configurations cstartdet ie Intech A HAAR OIER u resetprg h Generate Makefile 23 sort h La aq 5 When a build is complete the dialog box shown below is displayed asking for your confirmation of whether to proceed to perform a
22. ain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the 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 malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronic
23. cases involving the use of the R8C family microcomputer where problems occurred in verifying the program behavior with a microcomputer alone specifically for reasons of functional specifications of the E8a In the Flash Memory Data Write mode data can be written to the entire ROM area as possible with an ordinary ROM writer To verify the program behavior with the actual chip alone pay attention to the following 1 When the E8a is unconnected whether the RESET and NMI pins are processed correctly There was a case in which when the E8a was removed the RESET or NMI pin was stuck in the low state making the microcomputer unable to operate normally Example Unless there is a pullup resistor for the NMI pin on the board side the pin may mistakenly be processed as NC when the E8a is removed 2 Whether the E8a occupied area is taken into account in a sum check Some ROM area is occupied the E8a as stated in the manual of each device If all of ROM areas are sum checked in the initialize part of the user program as the memory contents of these areas differ between the Flash Memory Erase Before Start and the Flash Memory Data Write modes so does the SUM value To sum check the ROM take this difference into account when you create a program 3 About WDT settings The E8a for reasons of emulator specifications sometimes turns the WDT off during debug Therefore a reset may happen to occur while operating with the actual chip alone ev
24. ck at a time and the facility to perform a series of write operations with the press of a button the facilities that are not available in the High performance Embedded Workshop REJO6J0069 0100 Rev 1 00 2009 2 Page 24 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 22 You might want to register multiple files in advance and select one of those files when writing to the flash memory In that case register two or more files as you wish in the Debug Setting dialog box Debug Settings SessionAel Esa SYSTEM Y Target Options Target Rec Eda SYSTEM Default debug format B Record Modify Remove e Down O a 4 ootaiat 21 21 7 e 9 Boot version VER O 90 E8a firmware version 1 00 00 000 Connected Debug FindinFiles1 A FindinFiles2 Macro A Test A Version Control Ready E E3 Ee FR Default desktop C re al a A In the Flash Memory Data Write mode only one file can be downloaded written in at a time You cannot write multiple files one appended to the other REJ06J0069 0100 Rev 1 00 2009 2 Page 25 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 5 Frequently Asked Questions 5 1 Are there any precautions to take when verifying the program behavior with a microcomputer alone after debugging is complete The following presents the
25. ck the file name fvector c in the workspace window to open the source file i Tutorial High performance Embedded Workshop fvector c lt gt File Edit Yiew Project Build Debug Setup Tools Test Window Help jO sea a 2a e JARA em eos 22 Slee E BiR E t PPD RRA ee ee x GY Tutorial a alal PE i Line E4 S Some UUU O T E vector c 1 LRT TAK TATA A TATA ATTA ATTA T ATTA AAT A ATTA TAHA A AAT AAA ATTA TAHT AAAS TAHA HHT Pr aaan G 2 i tf initsct c S FILE fivector c intpra c 4 Date Mon Oct 23 2006 wf resetprg c 5 DESCRIPTION define the fixed vector table ty sort c 6 CPU GROUP Other Tutorial c 7 Z t7 Download modu 8 This file is generated by Renesas Project Generator Ver 4 8 wf 0 Tutorial x30 9 amp Dependencies 10 PRRTEKTTAKTATAAT ATT E KTR EAT TATE A TAK TAKA AKER TEA T TATA ATE A ATE A TAHT AAT A AEE cstartdef h 11 5 initsct h 12 PRRTKATTAT TATA ATA TAHT ATTA TAA TA ATE T ATTA TATA SATA AAT TATA ATTA ASAT A TET T 5 resetprg h 13 COMPILER for R8C Tiny 5 sort h 14 Copyright c 2004 Renesas Technology Corp B typedefine h 1S And Renesas Solutions Corp amp All Rights Reserved 16 17 FTeserprae c startup file 18 19 t Function initialize each function x of fvector c 01 ot al at 21 2t 2 2 2 Boot version VER O 90 Esa firmware version 1 00 00 000 Connected Build 4 Debug 4 Find in F
26. egory selection in which select Free Evaluation Edition and search for the product you want Links to the Renesas website are given in the last section of this document Information about the limitations of and the method for installing the free evaluation edition may be obtained from the download page 3 If you ve selected the auto update utility when installing the software it is possible to confirm via the Internet whether the latest version of each product is available 4 Operational Description This section describes the procedure for operating in flash memory writer mode after starting the High performance Embedded Workshop HEW The procedure is shown below Start of operation Starting the HEW Opening a workspace Setting the ID code Writing data to the flash memory Using E8a as a write tool End Figure 4 1 Example Program Execution Procedure REJ06J0069 0100 Rev 1 00 2009 2 Page 3 of 31 R8C Tiny Series E8a Emulator a EN ESAS Write Facility of the Microcomputer s Internal Flash Memory 4 1 starting the High performance Embedded Workshop To begin with first connect the E8a emulator that has the user system connected to it and the host computer with USB cable and check to see that everything is ready to debug Next start the High performance Embedded Workshop From All Programs on the Start menu choose Renesas High performance Embedded Workshop gt High performance Embedded Workshop to
27. en when no resets are generated 4 Whether the stack pointer is initialized in the user program When debugged with the E8a emulator the debugger initializes the stack pointer Unless the stack pointer is initialized a symptom will occur that the program although it operated normally when debugged with the E8a does not operate normally when run singly Always be sure that the stack pointer is initialized in the user program REJ06J0069 0100 Rev 1 00 2009 2 Page 26 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 5 2 When a dialog box is displayed asking for ID code what should be input When the E8a emulator starts up it compares the ID code written in the microcomputer s internal flash memory and the ID code supplied by the user in the ID code confirmation dialog box The ID code value written in the microcomputer s internal flash memory differs depending on the ID set in the source file or option specification by the user or whether the ID option or the fixed interrupt vector is set Note 1 See the table below to ensure that the correct ID code is set The ID code in a blank state microcomputer is FFFFFFFFFFFFFF in hexadecimal ID or ID specification ID code value Note Specified Values set by user Nia tieg Note 3 Fixed interrupt vector set 00000000000000 in hex ot specifie Fixed interrupt vector not set FFFFFFFFFFFFFF in hex Note 1 There are followin
28. esas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application 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 intended without the prior written consent of Renesas Electronics 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 Specific or for which the product is not intended where you have failed to obtain the prior written 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 equ
29. g methods to set ID code e Use the assembler directive ID recommended Example To set ID code to 1234567890abcd 1 For the assembler source id 1234567890abcd 2 For the C source asm id 1234567890abcd e Use the ID option of the load module converter LMC30 ID is an optional facility of the LMC30 If the assembler directive ID OFSREG or PROTECT is written in the file this option has no effect Note 2 Be aware that the values set using the directive command ID of the assembler and the ID option of the LMC30 command are reflected differently in x30 and mot files Therefore we recommend using the assembler directive ID When specified by ID The value is reflected in both x30 and mot files When specified by ID gt The value is reflected in only mot file Due to this difference if the ID option and a x30 file are used when writing data to the flash a problem will occur that the ID code set in the user program is not reflected in the actual chip Note 3 If no ID codes are specified by the user ID code normally is 00000000000000 in hex because the top address of the fixed interrupt vector is assigned to the ID Furthermore if the vector that contains ID code is not written in the user program the initial value of the flash or FFFFFFFFFFFFFF in hex is assumed REJO6J0069 0100 Rev 1 00 2009 2 Page 27 of 31 R8C Tiny Series E8a Emulator a LEN ES
30. ge without any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products 7 With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems
31. h Download 4 New Module Z typedefine t Remove Debug Settings Configure View lt gt Allow Docking Hide Properties Boot version VER O 90 Es8a firmware version 1 00 00 000 Connected Build A Debug ind in Files 1 Find in Files 2 A Macro A Test A Version Control Download the selected meuule s FL E2 E3 E4 Default1 desktop Read write 46 53 31 INS NUM 2 When a download to the flash memory is complete the Sum Data value and ID Code to check are displayed After confirming the displayed contents click the OK button debugger Flash memory writing OK Sum data H 00446670 ID code H 1234567894ECDE Shown for ID Code here is the user set value that is specified in the source file This completes writing data into the flash memory When the message box shown below is displayed click the OK button debugger No ID codes are reflected by simply writing one in the program An ID code is written into the flash memory only when it is downloaded Note also that in other than writer mode the ID code is always FFFFFFFFFFFFFF in hexadecimal for convenience s sake no matter what value is set in the user program In other words it is in only writer mode that ID codes are reflected by downloading REJ06J0069 0100 Rev 1 00 2009 2 Page 13 of 31 R8C Tiny Series E8a Emulator al cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 3 While a write to the flash memory is under
32. he Debug menu 33 p1 High performance Embedded Workshop File Edit view Project eEciy Setup Tools Test Window Help HPP PT Ae a a pi Download El Go E Depender ZI Reset Go Shift F5 Br Free Go At lt 6 Ta iver 7 GO To Cursor Isc Set PC To Cursor Run sc Display PC Ctrl Shift Step In Fil TP step Over F10 P Step Out Shift F11 Step Step Mode gt sTo Halt Program Initialize Connect ka Disconnect IF Gq a Save Memory Verify Memory Download Modules Unload Modules Boot version 4 E8a firmware virs Connected Lolo Build A Debug A Findin Files 1 A Findin Files 2 A Macro Test _ _Version Control FE FSS E Defaut desktop m mM Edit debug settings 12 The Debug Setting dialog box will be displayed Specify the file format to download write for Format To Debug and click the Add button This setting is saved in the project so there is no need to set from the next time on Debug Settings SessionR8C_E8a_5YSTEM Target Options Target Rec E a SYSTEM BREMS augi Format p Modit Remove Up Down Cancel The selectable formats are listed below e IEEE 695 RENESAS Renesas object format x30 files e Intel Hex Intel HEX format hex files e S Record Motorola S format mot files s files In the example
33. here Motorola S format is selected as the format to debug 13 The ate a Module dialog box will be displayed Click the Browse button and select a file from the ensuing list REJ06J0069 0100 Rev 1 00 2009 2 Page 20 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory Download Module Offset NONO0000 gl Format Record Cancel Filename a ACCESS FIZE fi F Download debug information only Perform memory verify during download Download automatically on target connection 14 After confirming the file to download click the OK button for each Download Module fx Offset oooo0000 O l Format SRecrd 2 20 Cancel Filename C workSpace TutoraMEBa ABC Tutori gt i Browse ACCESS iZE hoo Download debug information only Perform memory verify during download Download automatically on target connection Debug Settings SessionR C_E a_SVSTEM x Target Options Re is pi Target REC Esa SYSTEM Default debug format Record r Download modules Filename CAWworkSpacesTutor OOOQ0000 Record Cancel Here an output file in Motorola S format of the sample program tutorial workspace used in this document is specified to be the file to debug REJO6J0069 0100 Rev 1 00 2009 2 Page 21 of 31 R8C Tiny Series E8a Emulator ai g NI ESAS Write Facility of the Microcomputer s
34. hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes 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 in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into 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 in this document but Ren
35. iles 1 Find in Files 2 Macro A Test Version Control Ready Fz 4 E 4 Default desktop Read write 1 53 1 INS NUM y7 If the file fvector c is one of the source files automatically generated by the project generator it should contain the assembler directive ID that sets an ID code This assembler directive ID permits you to set an ID code easily 2 Scroll the source file fvector c until the 46th line where the directive ID is written appears REJ06J0069 0100 Rev 1 00 2009 2 Page 9 of 31 R8C Tiny Series E8a Emulator E LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory Line E 5 Source 33 Hpragqma interrupt y dummy int address match 34 Hpragqma interrupt y dummy int single step 35 Hpragma interrupt y dummy int wdt 36 Hpragqma interrupt y dummy int reserved a7 Hpragqna interrupt y dummy int reserved 36 f praqma interrupt v start 39 40 if WATCH DOG 0 41 sem g otsreg OUFEH 42 else 43 asmi otfsregq OFFH 44 endif Cael asm g id FFFFFFFFFFFFFF 46 pragma interrupt dummy int i 49 oid dummy int voidji Initially the ID begins with and consists of a 14 digit hexadecimal value FFFFFFFFFFFFFF 3 Edit the ID code part to set your desired value Line E 5 Source 33 pramia interrupt y dummy int address match 34 pragma interrupt y dummy int single step 35 fpragma interrupt y dummy int wdt 36 fpr
36. ipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under cert
37. n into the flash memory Unless the correct ID code value is supplied next operations cannot be performed Therefore the ID codes set by the user need to be managed carefully In this document explanation is made on condition that when the E8a emulator is connected for the first time the microcomputer in a blank state where the ID code value consists entirely of FF is used REJ06J0069 0100 Rev 1 00 2009 2 Page 8 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 9 When the E8a emulator is successfully connected a message Connected is displayed on the Debug tab of the output window 3 Tutorial High performance Embedded Workshop File Edit Yiew Project Build Debug Setup Tools Test Window Help Cee 4 t e e ol Ja SB a g Debug R8C_E8s SVS x SessionneC_E8a_sYST v At Om le 08 228 G ERER t Tte lmam laala EE Tutorial E C source file o A fvector c E heap c initsct c E intprg c E resetprg c E sort c Tutorial c E Download modu 0 Tutorial x30 Dependencies cstartdef h initsct h B resetprg h Z sort h B typedefine h 01 ot al at 2121 7 8 2 Boot version VER O 90 poe version 1 00 00 000 4 gt Build A Debug A FindinFiles1 A FindinFiles2 A Macro A Test Version Control Ready FE E2 Ee FA Default desktop ms MM Z 4 3 Setting the ID Code 1 Double cli
38. nect C Keep Flash and Connect Program Flash Debugging of CRU rewrite mode Power supply power Target from Emulator MAs 300m Caters D ee O Do not show this dialog bos again Select the microcomputer name incorporated in the user system from the Device menu of the dialog box In the example here R5F211B4 is selected For Mode select Write to Flash Memory This is the mode in which the E8a is used as a writer Furthermore select options in the Power Supply column according to the user system s power supply condition In the example here because the power is fed from the E8a to the user system select Power Supply from Emulator and then 5 0V Finally click the Next button 6 The Firmware Location dialog box will be displayed Since this setting has no effect in writer mode simply click Next leaving default settings intact Firmware Location m Please select firmware location i Data Flash Area Enable advanced setting ee lt Back Next gt Cancel ee T Do not show this dialog box again REJO6J0069 0100 Rev 1 00 2009 2 Page 7 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 7 The Communication Baud Rate dialog box will be displayed There is specifically no need to change the communication baud rate from the default 500000 bps Click the Finish button Communication Baud Rate
39. o be installed in a PC that has had the High performance Embedded Workshop already installed In this case part of the dialogs displayed during the installation work will be omitted REJO6J0069 0100 Rev 1 00 2009 2 Page 2 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 3 2 Installing the Software Supplied with the E8a Emulator Execute HewlnstMan exe present in the CD ROM supplied with the E8a emulator For details on how to install see the guide to E8a emulator introduction published at the Renesas website During installation work follow the instructions displayed on the screen The installation procedure is omitted here 3 3 Installing Other Necessary Software 1 In this document part of the sample program is modified with which to verify the program behavior For this reason we ll use the C C compiler package for the M16C series If you ve already purchased a product edition compiler package install the product edition compiler package 2 If you ve not purchased a product edition compiler package yet the free evaluation edition compiler package included in the CD ROM that is supplied with the E8a emulator A free evaluation edition compiler package may also be downloaded from the Renesas website To find a free evaluation edition of the M16C series C C compiler package choose Support Download gt Download Search from Renesas Top Page and then open cat
40. ormance Embedded Workshop Change sessions to connect the E8a emulator To do it change DefaultSession in the toolbar to SessionR8C_E8a_ SYSTEM 33 Tutorial High performance Embedded Workshop File Edit Yiew Project Build Debug Setup Tools Test Window Help Dee Gilt telo a JA g D amp 1 By Debug _R8C_E8a_SYS x DefautSession 2 o zixl Eraut esson rer SessionA SC Esa SYSTEM 2j es Tutorial lt q C source file fyector c heap c initsct c intpra c B resetprg c sort c Tutorial c 4 Dependencies cstartdef h Z initsct h resetprg h sort h typedefine h 1 Gj aJi ol of al at 21 21 7 S 9 ill gt Build Debug A FindinFiles1 A FindinFiles2 Macro A Test A Version Control Ready Ft E2 zS EA Default1 desktop T INS NUM A If the dialog box shown below is displayed prompting for your confirmation of whether to save the previous session click the Yes button High performance Embedded Workshop Session DefaultSession in project Tutorial has been modified Do vou want to save ik REJ06J0069 0100 Rev 1 00 2009 2 Page 6 of 31 R8C Tiny Series E8a Emulator a LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 5 When a connection of the E8a emulation begins the Emulator Mode dialog box is opened Emulator mode MCU Group RECAE Group r Device R5F211B4 Mode Erase Flash and Con
41. s products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics CENESAS Application Note R8C Tiny Series E8a Emulator Write Facility of the Microcomputer s Internal Flash Memory Summary The E8a emulator not only usable as a debugger for the user system can also be used as a writer or programmer for the microcomputer s internal flash memory This document describes the procedure for writing load module data into the flash memory after starting the E8a emulator in writer mode Explained in this document is for the case where the user system incorporating an R8C family microcomputer and the E8a emulator are used in combination The content of this document may be used in common for even a different target microcomputer providing it is one of the R8C family microcomputers Table of Contents S Eee i EON PAE E E E E atura pose varcs E ata cene sa ennutnna a A E E E E E 2 Fao 14S oye USG e a nen er eee ee eee 2 Outline of the E8a Emulator S Writer Facility siniasecaiasaswadssteanesardanentocassnasahcanneiaedsuensaamunedoeumunieelaecars 2 Outline of the ID Code Check Facility 0 0 0 0 cccccccccsssscceeeceeecceeeeeseeceeeseeeeceeeteeeeeeeeeseeaeeeessaaeeeeeeeas 2 Fepam the SOMWAN E
42. sitions in order while you locate When the workspace Tutorial nhws is found specify it and click the Select button C WorkSpace Tutorial E8 R8C Tutorial Tutorial hws C WorkSpace Tutorial L Ega L R8C _ Tutorial L Tutorial hws Note Depending on the software version used it will occur that the above directory cannot be specified In such a case select the directory given below lt Directory in which the High performance Embedded Workshop is installed gt Tools Renesas DebugComp Platform E8a R8C Tutorial Examples of directory C new3 Tools Renesas DebugComp Platform E8a R8C T utorial C new2 Tools Renesas DebugComp Platform E8a R8C T utorial REJ06J0069 0100 Rev 1 00 2009 2 Page 5 of 31 R8C Tiny Series E8a Emulator a gE NI ESAS Write Facility of the Microcomputer s Internal Flash Memory 3 If the workspace version is old the dialog box shown below is displayed To update it to a new version click the OK button High performance Embedded Workshop The Workspace you are about to open was created with an earlier version of HEW The data files For the workspace projects and sessions will be updated Once updated this workspace cannot be opened by an older wersion of HEW Backup versions of your old Files will be created in the workspace and project directories with the prefix old_version_xxx Do you wish to continue 7 il Cancel 4 When the workspace is opened you are ready to use the High perf
43. tail options Walue Modify Cancel REJ06J0069 0100 Rev 1 00 2009 2 Page 16 of 31 R8C Tiny Series E8a Emulator i LEN ESAS Write Facility of the Microcomputer s Internal Flash Memory 5 Outline of Project will be displayed Click the OK button summary Project Summary PROJECT GENERATOR pl CAWWorkSpace p Spl Rac Ega SYSTEM DATE amp TIME 8 22 2008 4 51 46 PM Click OF to generate the project or Cancel to abort W Generate Readme tet at a summar file in the project directory Cancel 6 The dialog box for connection to the E8a will be displayed Select the microcomputer s type name to be written into Device and select Flash Memory Data Write for Mode Select options in the Power Supply column according to the user system s power supply condition Finally click the OK button Before performing this work be sure that the E8a and the user system are connected Emulator mode RSC 1B Group Device A5F211B4 Mode f Erase Flash and Connect f Keep Flash and Connect Ofer Flash Debugging of CPU rewrite mode Power supply Ere Target from Emulator MAS 200m C D cs M Do not show this dialog box again If the dialog box for connection to the E8a is not displayed choose Connect from the Debug menu If a write with higher reliability is required e g as used for mass production writes supply the power from the user system without using the power s
44. upply facility of the E8a Since the voltage fed from the E8a depends on the PC s USB power supply performance the accuracy of the supplied voltage cannot be guaranteed REJO6J0069 0100 Rev 1 00 2009 2 Page 17 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 7 The Firmware Location dialog box will be displayed Leaving the default intact simply click the Next button In writer mode settings made here have no effect Firmware Location r Please select firmware location f Data Flash Area Enable advanced setting Back Next gt D Cancel Do not show this dialog box again 8 The Communication Baud Rate dialog box will be displayed Leaving the default intact simply click the Finish button Communication Baud Rate lt Back C Finish G Cancel Do not show this dialog box again REJ06J0069 0100 Rev 1 00 2009 2 Page 18 of 31 R8C Tiny Series E8a Emulator a cE N ESAS Write Facility of the Microcomputer s Internal Flash Memory 9 If the microcomputer s internal flash memory has had any user set value other than FFFFFFFFFFFFFF in hexadecimal written into its ID code part the ID Code Confirmation dialog box is displayed Enter the value that you set when specifying ID code and click the OK button ID Code verification Please input the ID code being written in the flash memory ID CoGe 1 234567 894BCDE Input Mode
45. verified without the intervention of the E8a emulator In this document a range of operations up to writing into the flash memory is described using the sample program included in the CD ROM supplied with the E8a emulator or the downloaded package from the Renesas website The versions of respective tools used here are given below Integrated development environment High performance Embedded Workshop Version 4 03 00 Compiler package Free evaluation edition for the M16C series Compiler Package Version 5 43 00 Emulator software E8a Emulator Software Version 1 01 Release 00 2 2 Outline of the ID Code Check Facility The ID code check facility of the R8C family is the facility to prohibit reading out or erasing the microcomputer s internal flash memory The ID code is the one written into the internal flash memory by the user and has such a characteristic that unless a matching ID code for it is supplied when using the debugger or flash programmer the internal flash memory can neither be read out nor erased at all This is a security facility of the microcomputer so that should the ID code be forgotten Renesas cannot do anything about it 3 Preparing the Software 3 1 Getting Started Install the software included in the CD ROM that is supplied with the E8a emulator The sample program tutorial workspace used in this document will be expanded in your PC The software included in the CD ROM that is supplied with the E8a emulator may als
46. way a message Flash Memory Writing is displayed on the Debug tab of the output window When the write is complete Flash Memory Write End is displayed and the icon representing the load module file in the workspace is marked with a down arrow i Tutorial High performance Embedded Workshop Map Section Information J Eile Edit View Project Build Debug Setup Tools Test Window Help Et Dee l Gls B S lg m4 E Ey Debug R8C_E8a_sYS SessionR8C_E8a_SYST At WE e 08 2 Pe BHA NTD S HAM FP eB A a xx GY Tutorial Ar es hs a E Tutorial Ba Conn il Linker section setting Name Start Address End Address size B fvector c d 000400 data_NE 000400 00040F 00000010 heap c Ga data SE bss SE data 0 bss 30 data_N bss NE 000410 000415 00000006 ae aa S a a z E figs 2 oocooo stack 000416 000495 oo000080 intpra c oper Ga rom NE rom NO data SEI data SOI data istack 000496 000515 00000080 D ate A OOFEDC heap NE 000516 000595 00000080 FS Titoa i data NEI oocood 00c00F 00000010 Eas rogram 00 010 OOCSAF 00000540 prog MT interrupt 00CSB0 o0c65s ooo0o00aD a i fvector DOFFDC OOFFFF 00000024 cstartdef h E initsct h resetpra h E sort h typedefine h 4 gt lt gt 3 fvecto c Map Section x oh si Flash memory writing Flash memory write end Can not use GO function Find in
Download Pdf Manuals
Related Search
Related Contents
Mode d`emploi - Batman: Arkham Origins Le nouveau Conseil Municipal Texte intégral PDF (872 ko) Manual de Serviço Suporte de parede Manning Systems by Honeywell GM-JR Gas Monitor User manual for the CB25 Copyright © All rights reserved.
Failed to retrieve file