Home
E1 On-Chip Debugging Emulator
Contents
1. 9 Download a program 47 Downloading a Program 13 Refer to or modify C language 4 11 Referring to or Modifying C Language Variables variables 14 Refer to or modify data through the 4 12 Referring to or Modifying Data through the Memory momoy window i Window ee trong e amen 15 Refer to or modify registers 4 13 Referring to or Modifying Register Values through TS qnte mew most iejtegete Wind ae anO Vanes OWN 16 Refer to or modify I O registers 4 14 Referring to or Modifying I O Register Values TS a _ tougntne vO window Analyze the performance 4 15 Analyzing Performance 4 16 Trace Function Terminate debugging 4 17 Terminating Debugging 20 Operate the user board as a 4 18 Operating the User Board as a Stand Alone Unit stand alone unit R20AN0022EJ0100 Rev 1 00 Page 18 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 2 Connecting the Emulator Figure 4 1 shows the configuration of the E1 emulator system User system interface cable USB interface cable with 14 pins E1 emulator Host computer User system CPU board Figure 4 1 System Configuration with the Emulator Connect the E1 emulator system through the following steps 1 Connect the E1 emulator to the host computer through the USB interface cable 2 Connect the E1 emulator to the user system CPU board through the user system interface cable Note When using a separate power supply for the user system be
2. Figure 3 17 System Properties Dialog Box R20AN0022EJ0100 Rev 1 00 Sep 07 2010 Qe Page 16 of 66 lt ENESAS Introductory Guide for the RX610 Group 3 Check that Renesas E Series USB Driver is shown under the Renesas Emulator category Figure 3 18 Device Manager File Action View Help amp R A RENESAS LSELZKF d Computer See Disk drives P E Display adapters 7 Ports ia amp LPT 1 DVD CD ROM drives i 4 Floppy disk controllers 43 Floppy disk drives 9 IDE ATAJATAPI controllers Renesas miar gt Keyboards Mice and other pointing devices V Renesas E Series LISE Driver 9 Monitors a e Mas DS i 4 System devices x n paih Processors lt Renesas Emulator i f S Renesas E Series USB Driver ze Universal Serial Bus controllers 3 Sound video and game controllers System devices Universal Serial Bus controllers Check that the USB driver has been installed Figure 3 18 Device Manager Some drivers under the Renesas Emulator category may have a or mark attached to the icon These drivers may not have been successfully installed so delete and then re install them by following the procedure given in section 3 1 Before Installation e Renesas Emulator er USB Device Figure 3 19 Display Indicating Failed Instllation of a USB Driver If you cannot find any driver under the Renesas Emulator category check that th
3. R20AN0022EJ0100 Rev 1 00 Page 30 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 11 Referring to or Modifying C Language Variables The emulator provides the following functions for referring to or modifying C language variables 1 Watch window for referring to or modifying variables The values of any variables used in a program can be referred to or modified through this function This function is available while program execution is in progress as well as when execution is stopped 2 Local window for referring to or modifying variables The local variables used in the function pointed to by the current PC value are automatically displayed and can be modified 3 Tooltip watch function for referring to variables The value of a variable in the source file displayed in a window can be easily checked by simply placing the cursor on the displayed variable name 4 11 1 Using the Watch Window to Refer to or Modify Variables The E1 emulator provides the Watch window through which the values of any variables used in a program can be monitored This section describes how to use the watch function to check the changes in the value of global variable int type g_IntBuf used in sample program sort c Note When a local variable is specified to be watched its value can be referred to only while the current PC address is within the function that has declared the local variable 1 Use the Watch window to refer t
4. High performance Embedded Work z File Edit View Project Build Debug Setup Tool D B g amp eme mI e BE E aeri Figure 4 6 Session Switching and Connect Button While the connection processing is in progress the Connecting dialog box shown in Figure 4 7 is displayed Connecting E1 Rev 02 FPGA Info FPGA Status CONFIGURED FPGA Version 08 Communication FPGA Version 08 User VCC 3 289 V Target Board CONNECTED Setting of debugging information Setting of JTAG clock Connecting to MCU v v Close the dialog box when the connection is completed Figure 4 7 Dialog Box Shown during Emulator Connection Page 22 of 66 R20AN0022EJ0100 Rev 1 00 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 The Configuration Properties dialog box shown in Figure 4 8 will appear Check that the options in the MCU and System tabs are set as shown in Figure 4 8 and click on the OK button Configuration Properties Ej Internal Hash memory overnite External Hash memory eee r Mode Single chip mode Endian Eig endian Input clock Ee TALI 12 5000 MHz External memory areas Endian BUS Width T work AAM start address O 400 3000 bytes used IVIA OI IU transfer Sout yr destination Do not show this dialog box again Configuration Properties E Internal flash memory overwrite External flash memory System Switching Functi
5. Detail Please choose from the list it will installed one by one by this order Please click Install after choosing software to install S Figure 3 11 Selecting Software Products to be Installed R20AN0022EJ0100 Rev 1 00 Page 12 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 Installation of the C C compiler package starts Follow the procedure shown in Figure 3 12 C C compiler package for RX family V 1 00 Release 00 C C compiler package for RX family V 1 00 Release 00 License Agreement Ple read the foll ng license agreement carefully Press the PAGE DOWN key to see the rest of the agreement Licensed Copy Number Software User License The customer hereafter Welcome to the InstallShield Wizard for C C compiler package for RX family ARTICLE 1 Definition 1 1 Licensed Software tools and related executable programs the Library as defined in Section 1 4 below and documentation such as explanatory manuals and all other related materials 1 2 Designated System shall mean the computer system to which Licensed Software be installed In case of Network environment system Designated System shall mean the computer system to which Licensed Software be executed Wizard will install C C compiler package for Rx family on your computer To Do you accept all the terms of the preceding License amp greement If you select No the setup will close To install C C compi
6. RENESAS APPLICATION NOTE E1 On Chip Debugging Emulator R20AN0022EJ0100 Rev 1 00 Introductory Guide for the RX610 Group Sep 07 2010 Outline This introductory guide is intended for first time users of the E1 emulator It provides simple instructions to help the user along the path from unpacking the E1 emulator to running and stopping a program without getting lost along the way Contents Dix MIMO CU COVA e E E 2 2 Produc 2 11 21 81 21 d eee en eee ee ieee Oe ene ee nee eee ee eee eee 3 2 1 Items Included in the E1 Emulator Package cccccccsseeeeeeceeeeeeeeeeseeeeeeeeesaeeseeeeesaeaeeeeessaaeeeeeesaees 3 2 2 Items That Must be Prepared by the User sese 4 SEE i re u cs Aesi oendadeenerne 6 3 1 Before WMS TUN el UO Maced T E mme 6 3 2 Installing The Emulator SOMW ANC usscscever sas unqecinecugpe uc Sasen Pateat olas aa aN Ta aE 6 3 3 Installing the RX Family C C Compiler Package eeeeeseseeeeeereeennn 11 2A installing ne USB CM NOT m mem 14 3 5 Checking That the Emulator Debugger and Compiler Have been Installed 15 3 6 Checking That the USB Driver Has been Installed eeseeeeeeeeeeesscrreeeee 16 A Lers Bry WS e ET mtb 18 4 1 Emulator Operating Procedure seoseis a aaa nnne nennen nnne REA nna 18 4 2 Connecting the E
7. Table 3 1 ACT States and Meanings ACT LED Communication between the Host Checkpoint Computer and Emulator Illuminated The E1 emulator is usable Blinking The E1 emulator is not usable yet because the USB driver has not been recognized Not illuminated Communication has not been The USB driver has correctly been installed Check whether the USB driver has correctly been installed by following the procedure below Check whether the USB interface cable is established correctly connected the host computer and emulator are supplied with power and no items are damaged Follow the procedures below to check whether the USB driver has successfully been installed 1 Open the properties window for My Computer System Properties dialog box 2 Open the Hardware tabbed page and click on the Add Hardware Wizard button as shown in Figure 3 17 System Properties System Restore Automatic Updates Remote General Computer Mame i Hardware Advanced Add Hardware Wizard The amp dd Hardware wizard helps you install hardware f Add Hardware Wizard gt ee Device Manager The Device Manager lists all the hardware devices installed on your computer Use the Device Manager to change the properties of any device DiverSianing ___Device Manage Hardware Profiles Ha Hardware profiles provide a way for you to set up and stare E different hardware configurations Hardware Profiles aK menn
8. The dialog box shown in Figure 3 8 appears when the installation of all software products has been completed Click on the Exit button to finish this process 23 High performance Embedded Workshop Install Manager Installation has completed stENESAS Everywhere you imagine Multi installation Active Switch over t avum Embedded Wortsnor wy pertormance Bu Non active Figure 3 8 Installation Completed R20AN0022EJ0100 Rev 1 00 Page 10 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 0 Installing the RX Family C C Compiler Package 1 To install the evaluation version of the compiler download the executable file e g ccrxv100r00_ev exe and double click on the filename or icon In the dialog box shown in Figure 3 9 click on the Next button To install an official product version compiler insert the CD into the computer drive The installation process starts with the screen shown in Figure 3 10 For details on downloading of the evaluation version of the compiler refer to section 5 2 2 Downloading the Evaluation Version C Compiler lt j Renesas C C Compiler Package for RX family V 1 00 Release 00 In Welcome to the InstallShield Wizard for Renesas C C Compiler Package for RX family V 1 00 Release 00 The InstallShield Wizard TM will help install Renesas C C Compiler Package For RX Family 1 00 Release 00 on your computer To continue click Next
9. dbsct c OWN CN ON CN A 8 AKA T 8 A 8 UN S s NS T ETAT TE WONCAChCACKCA Ch AONCACh A OACN Ch Ch AONCh Ch A ON Ch Ch ACA UN A S A S S NS NS S NN NS intprg c resetprg c sbrk c sort c Ea Tutorial c FILE Tutorial c DATE Fri Apr 17 DESCRIPTION Main Program CPU TYPE Other oO Jo OWN eH This file is generated byf Renesas Project Generator Ver 42 13 PEXXRXEXAZLALLLLLILILILLILALLLLL WORNCKCRCHCACHCA COACH ACA ACA ACA Ch ACA ACA Ch A Ch TK A B A A Ch A CR A Ch 8 A 8 A 8 A 8 f sbrk h sort h stackscth Nothing to do skipping Phase RX C C Compiler finished Phase OptLinker starting Nothing to do skipping Phase OptLinker finished The compilation results will be displayed in the Build tab of the output window Build Dlbug Find in Files 1 Find in Files 2 Macro A Test Version Control Mormal 00 00 00 000 000 A Ready E 3 4 Default2 desktop Read write 1 79 Figure 4 11 Build Execution and Results The workspace for the tutorial program is set up so that the program is automatically downloaded after the build process When the dialog box shown in Figure 4 12 appears click on the Yes button to start downloading the program Confirmation Request 1 OF to download module C WwforkS pace TutoralkE TEZONAXM BOOS Tutorial LittheE ndian Tutorial Debug Tutorial abs Dont ask this question again No Yes to all Ma to all Cancel Figure 4 12 Confirmation o
10. 600 Mbytes or more Prepare a swap area taking up at least double the memory capacity four times or more is recommended Pointing device such as Connectable to the host computer compatible with Windows 2000 mouse Windows XP or Windows Vista Display Monitor resolution 1024 x 768 or higher CD ROM drive Required to install the emulator software or refer to the emulator user s manual Note Although the emulators are also connectable to a host computer with USB 1 1 we recommend USB 2 0 High Speed as more suitable in terms of emulator performance R20AN0022EJ0100 Rev 1 00 Page 4 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 2 2 User System The E1 emulator must always be used with a user system on which an MCU has been installed The user system must have a connector for the E1 In this guide the CPU board ROK556100COOOBE included in the Renesas Starter Kit for the RX610 R0K5561005000BE is used instead of a user system The same procedures as are given in this guide apply to any CPU board on which a RX610 group MCU has been installed 2 2 3 RX Family C C Compiler Package The compiler is not included in the E1 emulator package To compile source files prepare the RX family C C compiler package The RX family C C compiler package is capable of generating debugging information files from C and assembly language programs R20AN0022EJ0100 Rev 1 00 Page 5 of 66 Sep 07 2010 R
11. Group 4 9 Starting and Stopping Program Execution Click on the Go button shown in Figure 4 16 to start program execution The Reset Go button is also available to start program execution after resetting the CPU Go button Reset Go button mt Gy s Oa EL x Tala Line Source d 0 5 Source 63 fendif 64 65 pragma section ResetPRG 66 a pragma entry Power M Reset PC 68 69 FFFFsooo n FO 71 FFFFSoor set intb sectop C VECT Ye FFFFGU17 set fpswiFPSW init Ta 74 FFFFSUI1E _INITSCT mS 76 INIT IOLIB Use SIM I TT 78 errno U Remove the 79 srandi UINT 1 ff Remove an aintr NIILT ff Rewewe the 4 1 Tutanalc resetprg c Figure 4 16 Go Buttons The Halt button shown in Figure 4 17 is active during program execution Click on this button to stop program execution Figure 4 17 Halt Button Figure 4 18 shows the editor window after program execution stops The line highlighted in yellow corresponds to the program counter address when execution stops R20AN0022EJ0100 Rev 1 00 Page 27 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group long t int i Jj K gap FFFF85EC gap 5 FFFFS85F1 while gap gt O FFFFSSFB for k O k lt gap k FFFF860C for i k gap i lt 10 i it gap j FFFF8620 FFFF8633 g IntBuf j FFFF8640 if a j a j gap t FFFF865F t a j3 FFFF866C a 3 a 3 dap FFFF8687 a
12. RX series C compiler package or purchased the compiler package along with the E1 emulator 3 2 Installing the Emulator Software 1 Insert the CD ROM included in the E1 emulator package into the host computer An HTML file giving instructions will automatically be opened if this does not happen open README E HTM on the CD ROM Click on the Install link shown in Figure 3 1 2 The contents of a folder are displayed as shown in Figure 3 1 Execute HewlnstMan exe OM Microsoft Internet xplarer Be pi Yew Fgewebes ech Hee Figure 3 1 Introductory Screen for Installation R20AN0022EJ0100 Rev 1 00 Page 6 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 Executing HewlnstMan exe opens the High performance Embedded Workshop Install Manager window shown in Figure 3 2 On the first installation Install Manager Help is also displayed so confirm its content After that click on Standard Install Recommendedg ES High performance Embedded Workshop Install Manager tENESAS Standard Install Recommended Everywhere you imagine Multi Install Maintenance Multi installation Active High performance Embedded Workshop Detail The Install Manager is the utility that guides you Switch over through steps as you install the integrated development environment High performance Embedded Workshop It permits you to install two or more instances of the High performance Embedded W
13. a Stand Alone Unit cc eecccccceeeeeeeseeeeeeeeeesaeeeeeeeeeeseaeaseeeeeeeeeseaas 55 o wuppl mentary IMIGIMGUOMN ssrin E ceduanarancncuceauddecannaduessasenaesxan vo 56 5 1 Emulator Related Documents cccccsssseeeeccceseeeecceeuseeecceauseeeecssauseceecseaaseeeessaaeeeeesseaeeesssaaaes 56 5 2 Evaluation Version of the RX Family C C Compiler Package cccccccseeececeeeeeeeseeeeeesaeeeees 58 5 9 Information On the E20 Emulator sidecsscsiccedhcaninancanatenmmnclasavetnbanaet onaienecondrntausnieenivadasmencisaarundnasianae 59 6 Frequently Asked Questions ccccccccccseesseeceeeeeeeeaeeseceeeeeaeeasseceeeeeessueeseceeeeessaaaaseseeeeeeesaaseeeeeeees 60 R20ANO0022EJ0100 Rev 1 00 Page 1 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 1 Introduction This guide assumes that the user who purchased the E1 emulator as a unit is using a CPU board on which an RX610 group MCU has been installed as the user system However the same operating procedures for the E1 emulator can also be used with systems which incorporate other RX610 group MCUs By following the procedures in this guide you can get some practical experience of installing the program and simple usage of the E1 emulator This guide assumes that the machines and tools in use are as follows 1 Host computer 2 E1 emulator 3 CPU board on which an RX610 group MCU has been installed R0K556100CO000BE This CPU board is
14. 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 equipment 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
15. j gap t else break m w Tutonalc 2 resetprg c sort c Figure 4 18 Editor Window after Program Execution Stops 4 10 Break Functions The E1 emulator provides two types of break function software break function and on chip break function Table 4 2 shows the characteristics of the software break and on chip break functions Please refer to the table to choose break functions suitable for each debugging purpose Table 4 2 Break Function Specifications opecifiable Flash Memory Availability During Program Break Function Points Break Condition Overwriting Execution Software break 256 points Specified address Overwritten Specifiable only in the on chip RAM area On chip break Pre PC break Specified address Specifiable Event break opecified address None Specifiable execution address Event break 4 points Data access None Specifiable data access Trace full break Trace buffer None Not specifiable eem I eene 0 Software break can be specified at many points but this function is implemented by modifying the contents of the specified addresses to dedicated break instructions extra time is needed to modify the contents during program execution after breakpoints are specified Accordingly the on chip break function is recommended in most cases and the software break function should be used only for the addresses where breakpoints will not be deleted and reset repeatedly This s
16. page of the Configuration Properties dialog box If the selections do not match modify either of them r Configuration Properties RX Standard Toolchain B p Configuration Assembly Link Library Standard Libra CPU holc gt Debug R00 E1 E20 SYSTE v cpu m All Loaded Projects Rx6O0 X Details C source file Endian Internal flash memory overwrite External flash memory MCU System Operating mode Saas aT Mode Single chip mode Ig C source file Little The two must T Linkage symbol file o 1m match Input clock EXTAL 12 5000 Base register External memory areas ROM None BUS Width lt v Tutorial High performance Embedded Workshop Tutorial c 2 File Edit View Project Bei Debug Setup Tools Test Window Help Dg a amp RX Standard Toolchain r N 6 10 8 2 Build Eile cur ksm p F STE ie All Tutorial Build Multiple c 23 C source file Clean Current Project me Work RAM start address 0400 fao 5 ia Clean All Projects bytes used m ul intprg c Update All Dependencies f resetpra c Compiler settings MCU settings oem it show this dialog box again gt Figure 6 4 Checking That the Endians Match 5 What is the procedure when try to execute a debugging command but it is not accepted Check whether you have selected the flash programmer mode in the Initial Settings dialog box If the message shown below
17. performance Embedded Workshop Tutorial c zz File Edit View Project Build Debug Setup Tools Test Window Help omen g 2a Sethe NGM OS SSS EI xil eB Sn2 cow Bas a C source file Line Of 3 3 urce dbact c PRR K hh Ah ck kh Ck hh ch hok kh ck hok ck EET intprg c reselprg c FILE Tutorial c sbrk c DATE Fri Amr 17 DESCRIPTION Main Program CPU TYPE Other ee ed hy Vel IV MA sx 10 hcc AA C C C UU EEE 11 12 2 13 ne E n Ap Figure 4 10 Opening a Source File R20AN0022EJ0100 Rev 1 00 Page 24 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 6 Building a Program Compiling and Linking To build a program click on the Build button on the toolbar When the build process has been completed the build results are displayed in the output window In this tutorial program some warning messages will appear but ignore them Note When the build process is done for the first time the standard library is also compiled and the process takes some time In the second or later time compiling the standard library is not necessary and the processing time will be reduced unless any option is modified 3 Tutorial High performance Embedded Workshop Tutorial c zi File Edit View Project Build Debug Setup Tools Test Window Help 9 gt fy 2 Debug v SessionP amp 00 E1 E20 TEL Ei LEO DUO c Click on the Build button Tutorial m z SE C source file
18. ra i a Mevo2 PC Address FFFF87E4 FFFFS8813 iei a FFFFS881B FFFF8823 Delete Add event from Function information File name v Browse nction name 4 Add to start stop eve Event Type Execution address Event Comment v Measure the performance only once Use 64 bit counter PC 6 OA 4 Save Load apos PC 2 Event used OA D Free Re istered events Figure 4 55 Specifying Performance Conditions R20AN0022EJ0100 Rev 1 00 Page 47 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group Note This example assumes that the sort and change functions are called only from these addresses 5 Check that the settings are reflected in the Performance Analysis window as shown in Figure 4 56 No Condition Timei h m s mas us ns i1 Execution cycle 00 00 00 000 000 000 2 Not use Figure 4 56 Performance Analysis Window after Conditions are Specified 6 After checking that the window reflects the settings click on the Reset Go button to start program execution When the specified measurement section has been passed the Performance Analysis window will be updated as shown in Figure 4 57 No condition Time h m s ms us ns 1 Execution cycle O0 00 00 000 098 280 Z Mot use cx xx x rir iC IE Results Count 2457 times Time 98 28 us Figure 4 57 Performance Analysis Results 7 To clear the measured results wait until execu
19. sure to check that the power is not supplied before connecting the E1 emulator 4 3 Activating the High performance Embedded Workshop and Loading the Tutorial Activate the High performance Embedded Workshop and open the tutorial workspace through the following steps 1 From All Programs in the Start menu select Renesas gt High performance Embedded Workshop gt High performance Embedded Workshop as shown in Figure 4 2 to activate the High performance Embedded Workshop d fm Renesas High performance Embedded Workshop ts Call Walker ATES Hao 300 Simulator Debugger Help m H8 C Compiler V 6 02 Release 01 der High performance Embedded Workshop m M16C 60 30 Tiny 20 10 R8C Tiny Series C Compiler 5 44 Relea m M32C 90 80 M16C 80 70 Series C Compiler 5 41 Release 01 E High performance Embedded Workshop Read Me Fi R32C 100 Series C Compiler V 1 01 Release 00 Manual Navigator l an Renesas High performance Embedded Workshop Mapview Multiple Install Manager EY RX Family Simulator Debugger Help X Renesas AutoLlpdate ah E1E20 Self Check Program Renesas AutoUpdate Manual p SS Renesas Tools HomePage All Programs Figure 4 2 Activating the High performance Embedded Workshop R20AN0022EJ0100 Rev 1 00 Page 19 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 The Welcome dialog box will appear on the High performance Embedded Workshop screen as shown in Figu
20. 000 TT Figure 4 47 Modifying Register Values 4 14 Referring to or Modifying I O Register Values through the I O Window Use the I O window to refer to or modify the values of I O registers 1 Select View gt CPU gt I O as shown in Figure 4 48 to open the I O window roject Build Debug Setup Tools Test Window Help Differences EN Et eh Ee d mar Map Command Line CEria L l d 0 S Source lt p TCL Toolkit Ctrl Shift k Ed workspace Alt E ud Pl Output Alt4 o long t E status Bar AltA int i d Disassembly Ctrl D gap 5 og o coc a R1 Registers CErH R H lad Memory Ctrl M Symbol Eie Ctrl I Ctrl I Performance H Rl RamMonitor EJ DebugConsole Figure 4 48 Opening the I O Window R20AN0022EJ0100 Rev 1 00 Page 43 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 Let s try referring to the compare match timer control register CMCR in compare match timer 0 CMTO As shown in Figure 4 49 select CMTO and expand the module display to see the register values This window shows the values acquired when a break occurred To see the current value right click on the window to open the menu and select Refresh from the menu 2 B IR d Name 1 Address SYSTEM pMACO pmaci pmac2 pmac3 pDMAC COMMON E Bsc spe ca CMT Icu D i feai k a CMER 000880
21. 02 cmMrE 00088002 El CES 10 E cxs 10 cMeNT 00088004 cmcnt 00088004 00088006 Chyc op OOO8so0e cMT UNITi a CMT2 4 All Register Selected Register j Figure 4 49 Referring to Register Values in the I O Window Lock Rerres Load IO File Select IO Register Print Save To File Find Ctrl F Toolbar display Customize toolbar Allow Docking Hide Figure 4 50 Refresh Menu R20AN0022EJ0100 Rev 1 00 Page 44 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 I O register values can be modified by double clicking on the displayed I O register value eo Ee R d Name Address Value Access E OO082010 JB53CEEA 00082014 00082018 ooogzoic D00822 10 Edit DMCSA at 00082010 00082214 nnnas240 Current value 3853CEE A hi IG All Register Selected Register JES3CEEA Cancel New value Figure 4 51 Modifying Register Values in the I O Window 4 To see only the desired registers use the Selected Register tab gt Ex RI d i re pee dP Refresh Lack Refresh Load IO File Select IO Register Print Save To File al SC DS ANEI AlRegster Selected Register Em Ctrl Find Mex F3 Select IO Register v Toolbar display Available Registers Customize toolbar SYSTEM v Allow Docking D ALT m l Hide DMACT DMALZ DMACS DMAC
22. 08 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario LaY 909 Canada Tal 41 80 5 892 5441 Fax 4 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Milboard Hoad Boume End Buckinghamshire SL8 SFH UK Tal 44 1628 585 100 Fax 44 1628 885 900 Renesas Electronics Europe GmbH Armadiastrasse 10 40472 D sseldarl Gemary T l 49 211 82020 Fax 49 2171 6503 1527 Renesas Electronics China Co Lid Tih Floor Quantum Plaza No 27 ZhiCchunbu Hadian Disiriot Eeigmg 100083 FF China Tel 486 10 8235 1155 Fax 436 10 82356 7678 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Ad Pudong District Shanghai 200120 China Tal 4 B868 21 5877 1948 Fax 4d6 2 1 5887 785B 7043 Renesas Electronics Hong Kong Limited Unit 1601 1813 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tal 062 2086 9318 Fax 852 2086 9022 9044 Renesas Electronics Taiwan Co Ltd TF Mo 363 Fu Shing North Road Taipei Tawan Tal 866 2 0175 9600 Fax 4 6 2 8175 8870 Renesas Electronics Singapore Pte Ltd 1 hambiaurF ront Avenue f amp 10 keppel Bay Tower Singapore 096532 Tel 65 6213 0200 Fax 466 52 8 8001 Renesas Electronics Malaysia Sdn Bhd http www renesas com Unit 906 Block B Menara Amcorp Ameorp Trade Centre No 18 Jin P ersiaran Barat 46060 Petaling Jaya Selangor Darul Ehsan Mala
23. 1 3 Components EHD Section 2 Debugging DA 2 1 Overview EHD 2 2 Trace Functions DS 2 2 1 Internal Trac 2 2 2 External Tra TA 2 2 3 Useful Funct EHA 2 3 Break Functions D 2 3 1 Software Bre T 2 3 2 On Chip Bre TA 2 3 3 Forced Brea 2 4 Performance Me DA 2 4 1 Performance 282 5 Memory Access D 2 B Stack Trace Fun DA 2 7 Start Stop Functi D nanam s RX Family C C Compiler Package RX Family C C Compiler Package 1 0 RX Family C C Compiler Package 1 0 RX Family Simulator Debugger 1 00 Use RX Family C C Compiler Package 1 0 rR UU series for compiler package 1 C M32C 90 M32C 80 M16C 80 M16C 70 serie M16C 60 M16C 30 M16C Tiny M16C 20 M E8a Emulator Emulator Software For the M16C 60 M16C 3 Emulator Software For the M32C 90 M32C 8 Emulator Software For the R32C Series RX Family E1 E20 Emulator User s Manual ROEO000200KCTOOE Documents common to the E1 E20 emulator RX Family E1 E20 Emulator User Ofs Man Supplementary information on the E1 E20 em Renesas Microcomputer Development Environment System Pages E Layers Y Signatures E Bookmarks Comments B e z0x854n id 4 10230 gt AMIO O Figure 5 2 Manual Navigator Screen Also see the following pages for other useful information such as technical updates and restrictions http www renesas com e1 On chip debugging emulator E1 http www renesas com hew High performance Embedde
24. 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 5 Supplementary Information 5 1 Emulator Related Documents The E1 emulator and High performance Embedded Workshop also have a variety of useful features other than those introduced in this guide For details on the specifications of these products refer to the documents given below 1 2 4 High performance Embedded Workshop User s Manual This document describes the functions of the High performance Embedded Workshop building file handling common debugging functions and so on RX Family E1 E20 Emulator User s Manual This document describes procedures and usage notes that are common to the E1 and E20 emulators For debugging functions specific to the E1 or E20 refer to E1 E20 Emulator User s Manual Additional Document for User s Manual E1 E20 Emulator User s Manual Additional Document for User s Manual Supplementary Information on Using the RX610 Group This document contains notes on usage of the E1 or E20 emulator in combination with RX610 group MCUs A separate document is provided for each group of MCUs RX Family C C Compiler Package User s Manual This document contains descriptions of the C C compiler assembler and linkage editor To refer to these documents open the Start menu and select All Programs gt Renesas gt High performance Embedded Workshop gt Manual Navigator This invokes the Manual Navigato
25. 7075077 Scb 78A71 24231104 20 18D2F1 42 6F2455 374cCZ2A1 STFFD471 04004244 E4872282 Figure 4 41 Changing Data Display Size in Memory Window Notes 1 In principle data is accessed in the specified display size in the Memory window 2 When the Memory window is used in the I O register area the access size allowed for the target register should always be selected as the display size To refer to or modify the I O register area use the I O window instead of the Memory window because data is accessed in the correct access size automatically in the I O window 4 Memory data can be modified in two ways x T is re ge J U Lb In 16 32 place editing by single clicking Address 0 1 2 3 4 5 6 7 85 9 4 5 00001000 os 4c 72 19 19 F3 42 F2 12 05 BS 00001010 B6 16 44 cp BC 98 7C 41 BZ CF OE amp F 00001020 31 26 86 1E 54 32 EE B4 93 50 61 00001030 30 3p B5 F7 5B E9 25 04 8A 00001040 1B az 6E B3 74 F5 6B 2C 4C 00001050 4c BF SF 3c C2 77 1B 39 00001060 33 40 ZE 84 A3 3C 4c 00001070 17 c2 ca pi F 06 ES 00001080 8A OA F7 B8 F6 fx Address 00001033 D ata FC Edit through the dialog box opened by double clicking Data Type f Value Length t String 1 Byte Verify Cancel Figure 4 42 Modifying Memory Data R20AN0022EJ0100 Rev 1 00 Sep 07 2010 Qe Page 40 of 66 lt ENESAS Introductory Guide for the RX610 Group 5 The Memory window shows the va
26. COMMON Check Al BSC J ICU Uncheck Al DTE LIT LINITU J CMTO J CMT CMT_UNITI CMT 2 DE n Fc WwInT Figure 4 52 Selected Register Tab R20AN0022EJ0100 Rev 1 00 Page 45 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 15 Analyzing Performance The E1 emulator can measure the elapsed cycles processing time the interrupt or exception processing cycles processing time or the number of accepted interrupts or exceptions in up to two user specified sections 1 Open the Performance Analysis window Select View gt Performance gt Performance Analysis as shown in Figure 4 53 to open the Performance Analysis window m Build Debug Setup Tools Test Window Help if Ditferences ETEL Ei LEP R Pe Select Performance Analysis Type g mn Map Performance Analysis Performance ri T Command Line Ckri L i Cancel z Ad 0J 5 Source Sm TCL Toolkit Ctrleshift K a0rt long alj i long t E status Bar Alt A int i j K ga Condition Time him s ms us ns 1 Not use SS mm d Disassembly Ctrl D diis oe in 4 Not use p p 2 whilet gap gt CPU 7 fort kz2 fori ijf Event f Symbol Code a _t Performance d Ea Performance Analysis Ctrl Shift P RTOS Figure 4 53 Opening the Performance Analysis Window 2 As shown in Figure 4 54 select No 1 Not use in the Performance Analysis win
27. E Cancel Figure 3 9 Starting to Install the Evaluation Version C Compiler 2 The dialog box shown in Figure 3 10 appears Select Standard Install Recommendedg gt High performance Embedded Workshop Install Manager Standard Install Recommended Multi Install Maintenance 434 NESAS Everywhere you imagine Multi installation w Detail AT orkshop The Install Manager is the utility that guides you Switch over y through steps as you install the integrated development environment High performance Embedded Workshop It permits you to install two or more instances of the High performance Embedded Workshop in a single PC Non active Exit Figure 3 10 High performance Embedded Workshop Installation Manager R20AN0022EJ0100 Rev 1 00 Sep 07 2010 Qe Page 11 of 66 lt ENESAS Introductory Guide for the RX610 Group 3 Select the software products that you wish to install and click on the Install button At least C C Compiler Package for RX family must be selected Installation of the auto update utility is optional Although there is no need to select the auto update utility if it has already been installed on the host computer selecting it causes no problems since the newer version of the auto update utility will then be on the host computer Choose software Please choose software to install v C C Compiler Package for RX family V 1 00 Release 00 v AutoUpdate
28. ENESAS Introductory Guide for the RX610 Group 3 Installation The following products must be installed if the E1 emulator is to be used e 1 E20 emulator software install this from the CD included in the E1 emulator package This product includes the E1 emulator debugger integrated development environment High performance Embedded Workshop and auto update utility e RX family C C compiler package This product includes the C C compiler suite simulator debugger integrated development environment High performance Embedded Workshop and auto update utility 3 1 Before Installation 1 Do not connect the E1 emulator to the host computer before the emulator software is installed Installing the emulator software involves installation of the E1 specific USB driver on the host computer This automatically provides guidance when new hardware is detected If the E1 emulator is connected to the host computer before the emulator software is installed the host computer will not be able to recognize the E1 emulator because the E1 specific USB driver is not present In such cases use the Windows Device Manager to delete the unidentified USB device set up in response to the connection After that install the emulator software and reconnect the E1 emulator 2 If you have both the official product and evaluation version of the software use the product version Also use the product version if you have installed the product version of the
29. L T t dl kl len Renesas High performance Embedded Workshop ue Multiple Install Manager Ay Renesas AutoUpdate Fj Renesas AutoUpdate Manual f 2 Renesas Tools HomePage 3 g REMESA 1 Renesas AutoUpdate Manual H Figure 2 2 Opening the Renesas AutoUpdate Manual 2 2 Items That Must be Prepared by the User The following items must be prepared by the user e Host computer e User system CPU board e RX family C C compiler package Note There are two versions of the RX family C C compiler package official product and free evaluation software For details on the evaluation version of the C compiler refer to section 5 2 Evaluation Version of the RX Family C C 2 2 1 Host Computer The versions of OS and host computer we recommend for running the software products included in the E1 emulator package are given in Table 2 1 Table 2 1 Operating Environments Operating Environments ltem Windows 2000 or 32 Bit Editions of Windows Vista 32 Bit Editions of Windows XP IBM PC AT compatible machine with USB 2 0 Full Speed High Speed CPU At least a 1 GHz Pentium III is At least a 3 GHz Pentium 4 or recommended 1 GHz Core 2 Duo is recommended Minimum memory 1 Gbyte or more is recommended 1 5 Gbyte or more is recommended Capacity at least 10 times the size of the at least 10 times the size of the load module file load module file Hard disk capacity Installation disk capacity
30. RAM monitoring which utilizes the acquired trace data to provide reference to the contents of memory in realtime Table 5 1 Differences between the E1 and E20 Emulator Functions E1 ROE000010KCE00 E20 ROE000200KCTO0 Address execution Operand access 4 channels in total on the CPU bus 3 channels Address data masking is possible 1 channel Address or range data masking is possible The unit 1 2 or 4 bytes and type R W R W of access are specifiable Event combination OR AND cumulative or sequential An 8 bit pass counter is specifiable for a single event Break Software break 256 channels On chip break Events are used Capacity 256 branches or cycles Minimum of 2 M branches or cycles Data type for tracing Branch or operand access on the CPU bus Data trace conditions onditions to start or stop Occurrence of a specified event or stopping the program Mao cete ora specon ovont rmm fmm o Display of trace data Disassembly and C source modes are available Backward stepping is also possible in C source mode RAM Auto updating of the Possible using a cycle stealing transfer mode execution stops for monitoring display in the Memory several cycles every time one word of data is read or written window Realtime RAM monitoring Not possible Maximum of 4 Kbytes still under development Data and most recent access Access by the DMAC or DTC is not detectable Performance measurement Two 32 bit counters or on
31. Setup 2 Tool Help iar dJa g a mm m a ma te E eu Debug THEO P ec da m Apc z SessionRx600_ 1_ 20 AtA E Tutorial E C source file 3 dbsctc intprg c resetprg c sbrk c sort c 3 Tutorial c vecttbl c FFFFS7D8 FFFF8S7DE FFFFS7E4 Line Source Ad D S Source sort a change a p_sam gt sl a 1 p_sam gt s2 a 2 e Bg R oh Nare f Address C3 DMAC1 E pwcsa E pmepa E pscBc 00082010 00082014 00082018 o008201c x xd ae pal Download module 1 Tutorial abs 00082210 Dependencies X 00082214 amp sbrk h 00082218 sort h 00082408 E starkert h Session SessionRX600_E1_E20_ SYSTEM in project Tutorial has been modified L Do you want to save it nnna anre p sam s3 a 3 p sam s4 a 4 d noun zo 016 10 10 Address 0 00001000 06 00001010 00 00001020 oo Cycle 00000013 Label Size R W BUS Mas Ty CPU BC FFFF871E v Js i a H ww IS a H EET r Fm 10 B Name Value Name alum ES RO QO00016Dc R1 00000009 O000016DC R2 D00016Dc H 000020da 0 R3 ooo0o0000 H O000000a 0 R4 o0o001i6pe M a n E lt Nu 00 00 00 000 100 E1 F2 F2 FA Default2 desktop 5 m Time h m s DO0 00 00 0C us Condition Reset CPU Reset CPU Before break 1 E
32. Software and Tools 2 Provide feedback y nm Print this page Evaluation Software Text size GIMIL The following page content comesponds to the products tonmeny marketed by Renesas Technology Development Tools Home Evaluation Software Evaluation Version Software Downloads is Evaluation version software is provided free of charge for en eae customers to evaluate product functions and performance Downloads Documentation Discontinued Info Introduction Renesas makes available free of charge evaluation versions of software far you to download This will enable you to examine the function and performance before purchasing the product Trial usage period functions performance and related services may differ from those of official product versions For more details please refer to Evaluation Version Software Information below Evaluation version software does not include bug fixes Technical Support or notification of new versions Evaluation Version Software Information C C Compilers and Assemblers Figure 5 3 Downloading the Evaluation Version Software R20AN0022EJ0100 Rev 1 00 Page 58 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 5 3 Information on the E20 Emulator The E20 emulator has broader functionality than the E1 The large capacity trace memory in the E20 allows tracing of up to 2 M branches or cycles The E20 also provides various powerful debugging functions including realtime
33. Value Map DODD1 amp cO oo000002 T Command Line Ckri4 L aoagaadienc DODODODT DODDB5F45 whilei c 00004242D fori Dopnonan ooooooo0 E status Bar AA 5 SOHO Odd nononano Dononan Ctrl F oooo0o0d ooooooo0 Ctr Dononano 00000005 Symbol IO Ctrl I eee DODO16cO 00001818 Ferformance d ooo0000000001 L x su gt RTOS ps xm TCL Toolkit Chrl Shift k E Disassembly Ctrl D Code H EH Status Ctr Figure 4 45 Opening the Register Window 2 After the Register window opens click on the Reset button As shown in Figure 4 46 the program counter is set to the value FFFF 8000H stored in the reset vector after a CPU reset Value OOOO0000 OOOO0000 OOOO0000 OOOO0000 OOOO0000 OOOO0000 OOOO0004 OOOO0000 OOOO0000 OOOO0000 pnagapaagaaaagagapaagaaaau FFFFs 140 OOOUO000 OOOUO000 OOOUO000 poaait OOOUOO0000000000 Figure 4 46 Referring to the Register Window Note The register values during execution cannot be referred to R20AN0022EJ0100 Rev 1 00 Page 42 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 Register values can be modified by double clicking or single clicking on the displayed register value in anoaooaa R14 Oooooo04 R15 anoaooaa USP Oooog000 ISP OOOoo000 Poll OOOO oOOOOOO000000 PG FFFFSOOO INTE FFFFS140 pPsw 00000000 Set As whole Register BPC oooo0000 FINTY 00000000 Cancel PPSW 00000100 Acc goo0000000000
34. ale resetprg c Figure 4 62 Setting a Breakpoint 5 Click on the Reset Go button to start program execution When execution is temporarily stopped at the specified breakpoint the Trace window will be updated The Trace window shows the track of program execution 6 Click on the display mode switching button to change from the bus display mode Figure 4 63 to the source display mode Figure 4 64 dle Xr m Zw V B Range 00000255 OO000000 File Cycle 00000012 Address Cycle Address Source Destina Data BUS Mas Type 00000012 CPU BCND 00000011 CPU BCND 000000 10 CPU BCND oo000009 CPU BCND oo0000008 CPU BCND 00000007F CPU BCND 00000000E CPU BCND o0000005 CPU BCND 00000004 CPU BCND oo0000003 CPU BCND 00000002 CPU BCND o0000001 CPU BCND b0000000 FFFFB7EJ CPU DESTINA S Figure 4 63 Trace Window after a Break Bus Display Mode R20AN0022EJ0100 Rev 1 00 Sep 07 2010 e Page 51 of 66 lt ENESAS Introductory Guide for the RX610 Group vazze Faaa joan File sort c Cycle 00000012 Address FFFF874U Wi dress Now Source _ a OO0053 FFFFo7OD change long a 000054 E OOO05S long tmp 10 Dnus int i pa DOS OO00568 FFFF871Z for i O i lt l0 itt OO0059 FFFFS71E E tmp i a i OO0060 ooggel FFFFo 740 gt gt Tera s ce lea DOnaez FFFFS874C ali tmp 9 i ooed OO0064 l l Figure 4 64 Sou
35. are User License O n Yes E The customer hereaft Ue rte EDIBXDEI uoo rua ART agree to the terms and conditions as specified in this Software Everywhere you imagine User License amp greement hereafter referred to as Agreement concerning the enclosed software and its explanatory manuals Weloveer to the InetallStield Wizard tor AXG00 E 17E 70 Emulate Software bore y mere yone manm The Intai akd Weard val natal FAOBDO E 1720 Eradalor Sofie m ARTICLE 1 Definition corte cack New 1 1 Licensed Software shall mean the main unit of the software tools and related executable programs the Library as defined in Section 1 4 below and documentation such as explanatory manuals and all other related materials High performance 1 2 Designated System shall mean the computer system to which Embedded ee oftware Erden Incas kp ished environment 4 system Designated System shall mean the computer system to Workshop which Licensed Software be executed E C ck O n N ext Do you accept all the terms of the preceding License Agreement If you select No the setup will close To install RX600 E 1 E 20 Emulator Software you must accept this agreement RX600 E1 E20 Emulator Software V 1 00 00 RX600 E1 E20 Emulator Software V 1 00 00 Start Copying Files R settings before copying files Setup has enough information to s wing the program files If you want to review or change A any settings click Back If you are ed w
36. d Workshop http www renesas com rx c RX family C C compiler package R20AN0022EJ0100 Rev 1 00 Page 57 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 5 2 Evaluation Version of the RX Family C C Compiler Package 5 2 1 Conditions on Usage of the Evaluation Version C Compiler A free evaluation version of the C compiler is available so that you can evaluate the performance of the compiler before purchasing the official product Note that the following conditions apply e After the evaluation version software has been installed there are no functional restrictions within 60 days from the day of the first building e From the 61st day the maximum linkage size is limited to 128 Kbytes The following message appears in the output window once 60 days have elapsed Software license problem Duration of Trial License of UNKNOWN is exhausted Maximum link size limited to 128KB codet data 5 2 2 Downloading the Evaluation Version C Compiler The evaluation version C compiler can be downloaded from the following Web page http www renesas com tool evaluation To evaluate the compiler for RX MCUs download the RX family C C compiler package About Renesas Press Center Events Inwestor Relations Contact Us Region Global v EE 220 Atte gtt E 2EN ESAS search by keyword or Parts E Advanced Search Products Applications Development Tools FAD Support Bun Samples k Technology Home Products
37. dow and double click on it the Performance dialog box will appear 3 The measurement items can be selected from the pull down menu in the Performance dialog box ll Performance Double click Time h m s ms us ns Exception and interrupt cycle Exception cycle Interrupt cycle Execution count Exception and interrupt count Exception count Interrupt count Event match count Add Delete Browse Add event From Function information File name Browse Function name Add to start stop event Display the cycle as time span MHz Measure the performance only once Use 64 bit counter Event used ane Free ae Registered events Save Load Figure 4 54 Opening the Performance Dialog Box R20AN0022EJ0100 Rev 1 00 Page 46 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 Let s try measuring the execution time of the sort and change functions Specify the performance conditions as follows The count start and end events can be specified by dragging and dropping the target function names 1 Select Execution cycle for the Condition box in the Performance dialog box 2 Select sort in the editor window and then drag and drop it into the Count Start Event box in the performance condition setting dialog box 3 Click on the Add button for the Count Stop Event box in the dialog box to open the Event dialog box 4 Inthe ev
38. e 64 bit counter to count the number of cycles that have elapsed number of cycles of processing for interrupts or other exceptions number of interrupts and other exceptions accepted number of valid instructions issued or number of event condition matches For details on the E20 emulator refer to the RX Family E1 E20 Emulator User s Manual R20AN0022EJ0100 Rev 1 00 Page 59 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 6 Frequently Asked Questions 1 Why does the warning message Toolchain Renesas RX Standard Toolchain version x xx x is missing shown in Figure 6 1 appear after load a workspace This message indicates that a compatible compiler has not been installed or the compiler version that was used to create the workspace is not present on the host computer High performance Embedded Workshop Toolchain Renesas Rx Standard Toolchain version 1 0 0 0 is missing From the Following projects A Tutorial There is no compatible toolchain Build Functionality will nat be available Figure 6 1 Warning Message 2 Why does the warning message The device ID code does not match the one for the selected device name shown in Figure 6 2 appear when start up the debugger This message indicates that the device selected in the Initial Settings dialog box does not match the actual device on the user system connected to the E1 emulator Select the correct device nam
39. e emulator software has been installed and repeat the procedure given in section 3 4 Installing the USB Driver If you have found Renesas E Series USB Driver under the Renesas Emulator category but the ACT LED is blinking i e the E1 emulator is not usable delete Renesas E Series USB Driver and then re install it R20AN0022EJ0100 Rev 1 00 Page 17 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 Let s Try Using the E1 Emulator This section describes the basic usage of the E1 emulator with regard to the tutorial program installed in the host computer during installation of the E1 emulator software 4 1 Emulator Operating Procedure This section describes the emulator operations High performance Embedded Workshop activation tutorial program downloading and program execution and usage of the main debugging functions of the E1 emulator Table 4 1 shows the operating procedures this assumes that the necessary installation is completed Table 4 1 Tutorial Program Execution Procedure Reference Section in This Guide 1 Connect the E1 emulator to the host 4 2 Connecting the Emulator computer through the USB interface cable 4 3 Activating the High performance Embedded Embedded Workshop Workshop and Loading the Tutorial Set up the E1 emulator during booting 4 4 Setting up the E1 Emulator up 6 Configuration propery 8 Buid compleandink 46 Building a Program Compiling and Linking
40. e in the Initial Settings dialog box The device ID code does not match the one For the selected device Please check the device name Figure 6 2 Warning Message 3 Why does the Confirm Firmware dialog box shown in Figure 6 3 appear when start up the debugger This message indicates that the firmware version corresponding to the emulator software and the firmware version in the E1 emulator are not the same Click on the Yes button regardless of the version numbers shown in the dialog box Confirm Firmware It is necessary to download the emulator firmware Do vou wish to download it now Current version Expected version Figure 6 3 Confirm Firmware Dialog Box R20AN0022EJ0100 Rev 1 00 Page 60 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 What is the procedure when the downloaded program is not displayed correctly after start up the debugger The endian is selectable for a RX600 family MCU If the endian selected for the MCU does not match that selected when the program was created the debugger cannot recognize the reset vector value of the downloaded program To check the endian selected when the program was created select Build gt RX Standard Toolchain in the High performance Embedded Workshop to open the RX Standard Toolchain dialog box and see the CPU page which shows compiler settings To check the endian selected for the MCU see Endian on the MCU
41. ection describes the procedure for specifying the on chip break function which does not require flash memory overwriting R20AN0022EJ0100 Rev 1 00 Page 28 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 1 Set a breakpoint Double click on the on chip break column shown in Figure 4 19 and a blue filled circle will appear A breakpoint can be specified only for a line where an address is shown in the Source Address column e alo Une Source Ad 0 5 Source 4 38 Eu 40 gil az 2m 44 45 46 47 Eis ipe 50 a IL 5z 53 ot 55 56 a7 55 FFFFG785 FFFF5759 FFFFG2 7295 FFFFSG79EB FFFFSTAT FFFFG7BU FFFFGTB FFFFG BF oid tutorial woid 1 long a i 4 int i On Chip Break column struct sample far p sam p sam malloc sizeof struct Sample init p san fori i O ifi0 i jf j randi iti Of Jeej I oe ali 3 Double click sort al c Tutoriale p gt os change a reselprg c Figure 4 19 Setting a Breakpoint R20AN0022bEJ0100 Rev 1 00 Sep 07 2010 2 CENESAS Page 29 of 66 Introductory Guide for the RX610 Group 2 Click the Reset Go button as shown in Figure 4 20 to start program execution Program execution will stop at the breakpoint specified in the previous step The line corresponding to the program counter address where execution stops is highlighted in yellow as shown in Figure 4 20 and Be
42. ent setting dialog box enter address FFFF87E4 as the measurement end event which is the address of line 59 in Tutorial c Click on the OK button in the the Event dialog box 6 Choose Display the cycle as time span in the Performance dialog box enter 25 in the frequency box and choose Measure the performance only once Choosing Display the cycle as time span causes the measured number of elapsed cycles to be converted into time As the tutorial program is set up so that the CPU operates with a 25 MHz clock enter 25 as the frequency Choosing Measure the performance only once means that only the first execution can be measured even if the specified conditions are satisfied repeatedly When this option is not chosen the cumulative time will be measured 7 Check the specified conditions and click on the Apply button in the Performance dialog box to complete condition setting C1 a amp amp l E Performance Line Source d O S Source FFFF8795 init p sam 1 2 FFFF879B for i20 i lt 10 Condition FFFFS7a7 j rand FFFF87BO if j O FFFF87B7 j j Execution cycle Count Start Event OR FFFF87BF l 3 FFFF87D8 sort PC Address sort FFFFS7DE Fr Browse FFFF87E4 p_sam gt s0 a 0 iaig r Drop here FFFF87EB p sam s1 a 1 j FFFF87F3 p_ am gt s2 a 2 Count Stop Event OR FFFFS7FB 1 a ALD FFFF8803 d a Event Type Contents Count C c l FFFF880B
43. esignated System shall mean the computer system to which Licensed Software be executed shield wizard will install High performance Embedded Workshop on your computer Do you accept all the terms of the preceding Lic e Agreement If you select No the setup will se To install High performance Embedded Workshop you must accept this agreement Cancel High performance Embedded Workshop 4 07 00 High performance Embedded Workshop 4 07 00 Start Copying Files Rev settings before copying files Setup h nough information to start copying the program files If you want to review or change InstallShield Wizard Complete any settings click Back If you are satisfied with the setting k Install to begin copying files Current inas IS hield Vizard has sfully installed High performan it the wizard Component High performance Embedded workshop C Program Files Hienesas sHevs O04 Everywhere you imagine Everywhere you imagine Make sure that the installation is complete Click on Install and click on Finish Cancel Figure 3 5 Installing the High performance Embedded Workshop 7 Installation of the E1 E20 emulator software starts Follow the procedure shown in Figure 3 6 RX600 E1 E70 Emulator Software V 1 00 00 RX600 E1 E20 Emulator Software V 1 00 00 License Agreement PI ei ne 1g license agreement carefully Read the license Press the PAGE DOW agreement and click Licensed Copy Numbe Softw
44. f Downloading R20AN0022EJ0100 Rev 1 00 Page 25 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 7 Downloading a Program In addition to using the automatic downloading function after a build process a program can be downloaded through the following procedure 1 Double click on the load module file name Tutorial abs in this example displayed under Download module in the workspace window as shown in Figure 4 13 ay ITE Tutorial EC source file 4 dbsct c 2 intprg c s resetprg c 3 sbrk c i surt c 3 Tutorial c vecttbl c Double click on the file name stackscth B typedefine h Figure 4 13 Downloading a Program 2 When loading is completed a down arrow is added on the file icon as shown in Figure 4 14 wnload modu Tutorial abs Figure 4 14 Program Downloading Completed 4 8 Resetting the CPU To reset the CPU select Reset CPU from the Debug menu or click on the Reset CPU button on the toolbar This will reset the registers to the initial values and set the program counter to the reset vector address Build Debug Setup Tools Test Window Help B hy M at GE EL ER t mi Zl xl Reset CPU CPL zi fm ssl Line O 5 Source KONCRCRCACA ACH A Ch Ch A h ch ck kOK Ch ch ch ck Wh EEA e EG 1 JG Figure 4 15 Reset CPU Button R20AN0022EJ0100 Rev 1 00 Page 26 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610
45. f Value after Several Breaks R20AN0022EJ0100 Rev 1 00 Page 33 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 7 The Watch window has four tabs and four combinations of variables can be monitored by switching the tabs Watch RE o EJ 7 Hex BB Pee Nome value Address Rog IntBuf H UODO00003 i OOOO1404 A different combination of variables can be i IN L LI Two f specified in each tab Watch i OOOO 1000 i QOOOLEDO Figure 4 27 Switching Tabs in Watch Window 8 Variable values can be modified in two ways as shown in Figure 4 28 One way is through in place editing by single clicking on the variable value Another is through the dialog box opened by double clicking on the variable Watch RR cer fy x f am up se acc gs Edit by single cli cKIng A g CharButf 1 char 3 gap H a o0 000 005 i Bn 0i16Dp 0 int Edit Value Expression gap Current Value H OOO00005 New Value Cancel Figure 4 28 Modifying Values R20AN0022EJ0100 Rev 1 00 Page 34 of 66 Sep 07 2010 2 CENESAS Introductory Guide for the RX610 Group 9 The changes of a value during program execution can be monitored also by enabling the automatic updating function for the Watch window To try the automatic updating function clear all breakpoints that have been specified After that select a variable in the Watch window and then enable the automatic updating
46. fore break is displayed in the output window which indicates that execution has stopped due to a break s Es m wo Ye EE J amp l Click the Reset Go button Tutorial 3 C source file Line SeuceAd 0 9 Source Ad f dbsct c 3 intprg c 38 FFFFB8786 tutorialivoid resetprg c 40 3 sbrk c 41 long a 10 B sorte 42 long j Tutorial c 43 int i T l 44 struct Sample far p sam Download modules 45 4 Tutarial abs O00 46 FFFFo 89 p sam malloc sizeof struct Sample Dependencies 47 FFFF8755 init p sam sbrk h 45 sorth 49 FFFFS79B fori i O i lt i0 i stackscth 50 FFFF87A7 tupedefine h 51 FFFF87B 0 vecth 5z j rand iffj 0 uj Se pem e a 56 FFFFS D6 Sort a 57 FFFFG DE change a 56 Before break Figure 4 20 Execution Stopped at a Breakpoint 3 To clear a breakpoint setting double click on the blue filled circle as shown in Figure 4 21 Sale Line Source Ad 0 5 Source IFFFF8786 oid tutorial void long a 10 long j int i struct Sample far p sam IFFFF8789 p sam malloc sizeof struct Sample FFFF8795 init p sam FFFF8S79B for i O i lt 10 i FFFF87 7 tible click to clea debbie Double click to clear FFFF87B7 p of FFFF87BE amp e IFFFF87D8 sort a FFFFG7 DE change a z5 Tutonalc f5 resetprgc Figure 4 21 Clearing a Breakpoint Setting
47. function by clicking on the Auto Update button as shown in Figure 4 29 For the variable for which the automatic updating function has been enabled the R mark color changes from white to black Click this button R o EA o fy x 0D Ae Ad G Fog IntBuf H oO0000000 l E c EA Joe X 05 R g IntBuf H o0000000 I i r Select a variable Figure 4 29 Enabling Automatic Updating for the Target Watch Item 10 After enabling the automatic updating function execute the program The changes of the g_IntBuf variable can be monitored Address R gq IntBuf H OOOOOO086 i O0001404 Check the changes of the value k Watchi Watch watcha Watch4 Figure 4 30 Watch Window with Automatic Updating Function Enabled 11 The changes of values can also be recorded Recording of the automatically updated values can be started only while program execution is stopped Stop program execution and then click on the record starting icon shown in Figure 4 31 recording of the automatically updated values will start Bl Ee e recording iii R g IntBuf H OOOOO000 Figure 4 31 Starting Recording of Automatically Updated Values R20AN0022EJ0100 Rev 1 00 Page 35 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 12 When recording is started the Record Settings dialog box shown in Figure 4 32 will appear Select the Watch window sheet that you want to record and enter a f
48. ile name with which the record is to be saved Record Settings Recording Sheet Cancel File name lest save gt Browse Append Timestamp Figure 4 32 Record Settings Dialog Box 13 After starting recording execute the program After checking that the value is automatically updated click on the Stop Recording button with the desired timing a text file with the file name specified in the Record Settings dialog box will be created in the specified folder Figure 4 33 shows an example of the created file B test WordPad File Edit view Insert Format Help D cx be ih ky Int But Hex 00000007 ooooo00z ooooo0d6 00000007 00000007 ooooo0001 ooooo00s oooooo00 ooooo0d6 ooooo0004 ooooo00s ooooo00s Figure 4 33 Result of Automatic Updated Value Recording 14 To stop recording automatically updated values click on the Stop Recording button OE R g_IntBuf o0000000 tiaan Figure 4 34 Stopping Recording of Automatically Updated Values R20AN0022EJ0100 Rev 1 00 Page 36 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 11 2 Using the Local Window to Refer to or Modify Variables Use the Local window to refer to local variables Unlike the Watch window the Local window automatically displays the local variables used in the function that is pointed to by the PC value when program execution is stopped and allows the values to be modified The loca
49. in the loop Jev ay a Check here when the Range 00000254 00000000 File sortd Cycle 00000002 Address FFFF874C current location Line Address How Source indication does not QOO05S FFFF87UD E changel lang aj Oo0054 i MUVE OO0055 long tmp 10 OO0056 int i 00057 nues 00058 FFFF8712 far iz ilo HOM otep backward 000053 FFFF871E tmp i a i to the past DODDBD a000i FFFFSy 40 forii z icl itt 000g FFFF8 4L oa ali tmp 3 i MILL i Current location Figure 4 66 Step Backward Range 00000254 OO0D00000 File sorte Cycle 00000023 Address FFFF8712 Line Address Now Source DLEE FFFF870D changet lonz Haj TIRE 00005 long tmp 10 MUST int is 00057 000058 FFFF8712 Cy for iz icl i Step forward to the 00059 FFFF871E tmp i aLi breakpoint 000060 000081 A Current location izo iet0 i ooie Peers ali pp 9 il 00063 s TIT bul Figure 4 67 Step Forward R20AN0022EJ0100 Rev 1 00 Page 53 of 66 Sep 07 2010 RENESAS 4 17 Terminating Debugging To terminate debugging click on the x mark in the top right of the window and a dialog box will open Click the Yes button to save the window status you can start debugging with the saved window status at the next time Introductory Guide for the RX610 Group v Tutorial High performance Embedded Workshop Tutorial c Edit View Daug a Project Build D ebug
50. included in the Renesas Starter Kit for the RX610 ROK556100SOOOBE R20AN0022EJ0100 Rev 1 00 Page 2 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 Product Overview Figure 2 1 shows the configuration of the E1 emulator system E1 E20 emulator software and RX family C C compiler these must be prepared by the user e USB interface cable User system interface cable with 14 pins E1 emulator Host computer User system CPU board must be this must be prepared by the user prepared by the user Figure 2 1 System Configuration with the Emulator 2 1 Items Included in the E1 Emulator Package 2 1 1 E1 Emulator The E1 is an on chip debugging emulator from Renesas that provides a highly efficient debugging environment in combination with the High performance Embedded Workshop and E1 E20 emulator debugger After debugging has been completed the E1 is also usable as a flash memory programmer in combination with the Flash Development Toolkit FDT 2 1 2 USB Interface Cable This cable is used to connect the emulator and host computer 2 1 3 User System Interface Cable This cable is used to connect the emulator and user system 2 1 4 E1 E20 Emulator Software The E1 E20 emulator software consists of the following items 1 High performance Embedded Workshop The High performance Embedded Workshop is a common GUI in which various tools such as a C compiler assembler emulator software a
51. is displayed in the output window the emulator is operating in the flash programmer mode To execute a debugging command select the debugging mode instead This operation is not supported in Flash Writer Mode Debug 4 Find in Files 1 FindinFiles 2 A Macro amp Test version Control Figure 6 5 Display in the Output Window R20AN0022bEJ0100 Rev 1 00 Page 61 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 6 Since installed the E1 E20 emulator software V 1 00 Release 00 on a host computer running Windows XP no other emulators are connectable to the host computer How do connect another emulator Follow the procedure below to check the operating state of USB driver Connect the emulator to the host computer and supply power to the emulator Start up the Windows Device Manager to see the list of devices Open the properties for the Renesas USB driver and click on the General tab If the The drivers for this device need to be reinstalled message is displayed in the Device status section take the following steps to reinstall the USB driver 1 Right click on Renesas E Series USB Driver under the Renesas Emulator category in the Device Manager and select Delete from the menu 2 Turn off power to the emulator 3 Turn on power to the emulator 4 Found New Hardware Wizard automatically starts Select Install the software automatically Recommended and click on the Next bu
52. ith the setting ick Install to begin copying files InstallShield Wizard Complete Current Settings Th S ee Wizard h uccessfully installed 00 E1 E20 Emulator Software Click Finish t wizar lt Component gt R600 E 1 E20 Emulator Debugger C Program Files Hienesas Hew OD4 ST oolssFienesassDebugComp Platform E 1E 20 Everywhere you imagine E1E20 Self Check Program C Program Files Renesas Hew_OO04 T oolssFienesas E 1E 20S CP Everywhere you imagine Make sure that the installation is complete cibus Usi and click on Finish Figure 3 6 Installing the E1 E20 Emulator Software R20AN0022EJ0100 Rev 1 00 Page 9 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 8 Installation of the auto update utility starts Follow the procedure shown in Figure 3 7 Renesas AutoUpdate Utility V 1 05 00 InstallShield Wizard Renesas AutoUpdate Utility V 1 05 00 InstallShield Wizard Welcome a Installation options Repair or remove the program i f Select the options you want Welcome to the Renesas AutoUpdate Utility 1 05 00 Setup Maintenance program This Select the options Click the Next to continue program lets you modify the current installation Click one of the options below InstallShield Cancel Cancel InstallShield Vizard has finished performing maintenance operations on Renesas AutoUpdate Utility sf 1 05 00 Figure 3 7 Installing the Auto Update Utility 9
53. l variables are stored in a stack and cannot be referred to during program execution 1 Select View gt Symbol gt Locals as shown in Figure 4 35 to open the Local window m Build Debug Setup Tools Test Window Help Differences zt zl i E m n i L len 1 EJ Command Line Ctrl L s Ad OL 5 Source extern woic CI wm TCL Toolkit Ckri Shift k E status Bar Alt A gd Disassembly Ctrl D J J Symbol CEri4 ShiFE A Code Fal watch Cr Performance Fal Locals Ctrl Shift RTOS Figure 4 35 Opening the Local Window 2 Execute the program and stop it with the desired timing The Local window will automatically display the variables used in the function that is pointed to by the PC value when execution is stopped as shown in Figure 4 36 eae Line Source Ad 0 5 Source Sg eu y sort long a ad 1 29 long t 30 int i j k gap 31 SEED ESEEREES US Bol gap 5 aa EPPPPSsk i while t gan O jt 34 FFFFGSFB fori k D03 k lt qap k i 35 FFFFS60C 36 FFFFG6z fo j 1l gap j k j73j uanp 37 FFFF8633 g IntBuf j 38 FFFF8640 piu uper a2 BRE Eo SE 40 FFFFO66C 41 FFFFoOoo y 4a 0x000 i 6de 43 H OOOO0030 i H ffffBa4tf Z5 Tutoriale resetptgc zorte H OOO00030 u aaaagaau H gaagagaads Figure 4 36 Referring to the Local Window R20AN0022EJ0100 Rev 1 00 Page 37 of 66 Sep 07 2010 RENESAS Introductory Guide for
54. ler package for RX family you must accept this agreement InstallShield C C compiler package for RX family V 1 00 Release 00 C C compiler package for RX family V 1 00 Release 00 Region Selection Start Copying Files Re e copying files Setup has enough information to start copying the program files If pou want to review or change any settings click Back If you are satisfied with the settings click Install to begin copying files Current Settings lt Component gt High performance Embedded Workshop C Program Files Fienesas Hevw 004 RX Toolchains C Program Files FienesassHew O04 sToolssFienesas RX Family Simulator Debugger C Program Files Renesas Hew_O04 T ools Renesas ei m emm m C C compiler package for RX family V 1 00 Release 00 InstallShield Wizard Complete The In Shield d has fully installed C C compiler package for RX family Cli Finish to exit the Figure 3 12 Installing the C C Compiler Package R20AN0022EJO0100 Rev 1 00 Page 13 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 5 The auto update utility is also automatically installed when it has been selected in the Choose software dialog box Follow the instructions shown on the screen Details on the installation process are omitted here 6 The dialog box shown in Figure 3 13 appears when the installation of the compiler package has been completed Click on the Exi
55. ll installed one by one by this order Please click Install after choosing software to install Install Exit Figure 3 4 Choose software R20AN0022EJ0100 Rev 1 00 Page 8 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 6 Installation of the High performance Embedded Workshop starts automatically Follow the procedures shown in Figure 3 5 High performance Embedded Workshop 4 07 00 High performance Embedded Workshop 4 07 00 License Agreement Please read the following license agreement carefully Read the license Press the PAGE DOW agreement and click Licensed Copy Numbe on Yes Software User License The customer hereaft s Technology Corp hereatter reterred to as Licensor do hereby Guacyudan vou Nuage Welcome to the InstallShield Wizard for High performance Embedded Workshop agree to the terms and conditions as specified in this Software Everywhere you imagine User License greement hereafter referred to as amp greement concerning the enclosed software and its explanatory manuals ARTICLE 1 Definition 1 1 Licensed Software shall mean the main unit of the software tools and related executable programs the Library as defined in Section 1 4 below and documentation such as explanatory manuals and all other related materials 1 2 Designated System shall mean the computer system to which Licensed Software be installed In case of Network environment system D
56. lues acquired when a break occurred Click on the Refresh button to check the latest values xj T l M iu zs Address oo0001000 00001010 sse Ay Se aagagainoz T2 a Fan 00001030 00001040 00001050 ooo001060 again i 00001080 Figure 4 43 Updating the Display 6 As with the Watch window the changes of values during program execution can be checked x T l M oW zs Seb Address 0 1 5 6 7 E 00001000 3c 08 4c 19 19 r3 42 Ri 00001010 B6 16 44 Be 98 7C 41 00001020 31 26 86 3 54 32 EE 000020 20 34nmn PE r n ne wt Gp ononioan Right click on the Memory T window to display the ee NE Save Memory contents 00001070 17 ca c8 pi 15 97 70 D5 00001080 84 OA F7 Be ci BO 4B BO Move Compare Search Address Scroll Area Register Set Start Up Symbol Refresh Lack Refresh Auto Refresh Refresh Interval Figure 4 44 Enabling Automatic Refresh Function R20AN0022EJ0100 Rev 1 00 Page 41 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 13 Referring to or Modifying Register Values through the Register Window Use the Register window to refer to or modify the values of general registers and control registers Let s try referring to the program counter PC value for example 1 Select View gt CPU gt Registers as shown in Figure 4 45 to open the Register window if Differences Name
57. mulators srein EA E e aata a aai Ea AEAEE AAAA 19 4 3 Activating the High performance Embedded Workshop and Loading the Tutorial 19 4 4 Setting up the E1 Emulator during Booting up eseeeeeeeesseeeee eere 21 Aa OPen aT o T e ml P TT T 24 4 6 Building a Program Compiling and LINKiNG cccccccesseeeseeceeeeeeaeeeeeeeeeeeaeeeeeeeeeeeessseeaeeeeeeeeeeeaas 25 4r Downloading a Progra csccnccacsesncencc a AETA nane Aa AE RAE nid bue desee 26 AG TASS NN Te CPU a E NE A EEN E ETE E E 26 4 9 Starting and Stopping Program Execution cccccccccececssssseeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseseeseeeeeeeeesaaas 27 BN PVC ONCOS T rT R H 28 4 11 Referring to or Modifying C Language Variables ccccccccssseeceeeceeeseceeeseeeseeesaeeeeeeeeeeaaeeeeeesaaaees 31 4 12 Referring to or Modifying Data through the Memory Window eeeeeeeeeee s 39 4 13 Referring to or Modifying Register Values through the Register Window 42 4 14 Referring to or Modifying I O Register Values through the I O Window 43 4 15 Analyzing PEMOrMANCG sarnastena vubien ER Yr Say nni Dk vaa ux ik a d Ea Y xw ada Ves RE Uv rei d EUN A 46 WS Te A Fe NG IOI cig sete arena orm ascot A N 49 ANd Terminating Debugging ERR T T M 54 4 18 Operating the User Board as
58. n 4 10 Break Functions FFFF85E7 sort long a long t int i j Kk gap FFFF85EC gap 5 FFFFG85F1 while gap gt O jf FFFFSSFB for k 0 k lt gap K FFFFS60C for i k gap i lt 10 i it gap FFFF862 for j i gap j k j j gap FFFFS63 g IntBuf j FFFF864 if a j a 3 gap i FFFF865F t a j3 FFFF866C a j a j gap FFFF8687 a jt gap t else break Figure 4 24 Setting a Breakpoint 4 After the above settings are completed click on the Reset Go button to start program execution R20AN0022EJ0100 Rev 1 00 Page 32 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group b At the first break the program will stop before the specified line is executed and g_IntBuf will hold 0 which is the initial value Watch R n CH z es X E p TA ED R g IntBuf H OOOO0000 i OOOO14O4 int d Watch Watcha A Watch4 j Figure 4 25 g_IntBuf Value after the First Break 6 Click on the Go button instead of the Reset Go button to start program execution again execution will break at the same point After the break check the change of the g IntBuf value through the Watch window Repeat these steps and check that the g IntBuf value is incremented from the initial value 0 gt 1 gt 2 gt 3 gt RR EXE f HX SO 6m R g IntBuf 00001404 Check the changes of the value A Watch2 A watcha Watch Figure 4 26 g IntBu
59. nd editor are integrated for the more efficient development of software Debugging with the E1 emulator is always controlled via this GUI 2 E1 E20 emulator debugger The E1 E20 emulator debugger runs on the host computer and communicates with the MCU via the E1 emulator providing an advanced debugging environment Users are not directly aware of the presence of the emulator debugger because it operates as part of the High performance Embedded Workshop The features of the E1 emulator debugger are given below e Basic debugging functions including running and stopping a program breaks in execution and watching e Acquiring trace information on 256 branches or cycles e Measuring performance between two points i e performance measurement facility e Automatic updating of the display of data in the Memory window by using a cycle stealing transfer mode These enhanced debugging functions facilitate the analysis of problems during debugging and evaluation greatly reducing times required for debugging R20AN0022EJ0100 Rev 1 00 Page 3 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 Auto update utility The auto update utility automatically acquires update information on Renesas microcomputer development tools via the Internet to ensure that required updates are applied to the tools For details see the Renesas AutoUpdate Manual which is opened from the corresponding menu item shown in Figure 2 2 Wea by Li
60. o variables Select View gt Symbol gt Watch as shown in Figure 4 22 to open the Watch window mect Build Debug Setup Tools Test Window Help Dirrerences gu ud A ume value address type Command Line Ctrl L X9 TCL Toolkit Ctrl Shift K E Status Bar gt Watchi A Watch2 A Watch3 A Watch4 Symbol i Labels Ctrl Shift 4 Code E Watch Ctrl Performance gt Fal Locals Ctrl Shift W RTOS gt Figure 4 22 Watch Window R20AN0022EJ0100 Rev 1 00 Page 31 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 2 Select g_IntBuf and then drag and drop it into the Watch window Check that g_IntBuf is added to the Watch window as shown in Figure 4 23 E intpra c FFFFS5c6 resetpra c FFFFS5cc E sbrk c FFFFSSD2 Raf ERIS FFFFB85D8 E Tutoriale FFFFB5DE 2 vecttbl c gt a eine modu Drag the variable name HS JJ Tutorial sort long tay i long t int i j E dap ecttbl c Jet Tutoriale Ox zort z gt reselprgc intprg c E EA 7 ty x um uc te RUND Um Drop here Name Yalue Address pc Z scope Connected R q Int Buf H OOOOO000 i 00001404 lint Current Scope Flash memo Flash rem Reset CPU User brea Before hr Figure 4 23 Watch Setting 3 As shown in Figure 4 24 set an on chip breakpoint at line 37 in sort c where g IntBuf j is written For details of the breakpoint setting procedure refer to sectio
61. on Realtime RAM monitor Debug function i Debugging the program re writing the internal flash The other options should be left as the default settings For details of the other options refer to the E1 E20 Emulator User s Manual Cancel Do not show this dialog box again Figure 4 8 Configuration Properties Dialog Box 3 The Connecting dialog box will appear R20AN0022EJ0100 Rev 1 00 Page 23 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 When the emulator has been connected successfully Connected will be displayed in the output window and the debugging related buttons in the upper toolbar will become active as shown in Figure 4 9 c Tuterlal High perfonnance Embodded Workahep Filo Edt Wew Project Dud Debug Setup Took Tek Widom Help Du Rid aeh UA A pb Debug Sesion E1 E20 A Fipopaz F aot KM ru uenmTopc c Debugging related buttons become active s Yii a e H P Connected is displayed n EM E E Dead desc m HM Figure 4 9 Confirming Emulator Connection 4 5 Opening a Source File To open a source fie double click on the source file name in the workspace window For example to open Tutorial c double click on the file name as shown in Figure 4 10 The window for displaying the source code will open it is called the editor window because the source code can be modified in this window 53 Tutorial High
62. or gt Henesas E Senes USB Driver Be sure to install the E1 E20 emulator software before connecting the E1 emulator to the host computer Figure 3 14 Found New Hardware Wizard R20AN0022EJ0100 Rev 1 00 Page 14 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 5 Checking That the Emulator Debugger and Compiler Have been Installed Follow the procedure below to check that the emulator debugger and compiler have successfully been installed 1 Select Multiple Install Manager from the start menu as shown in Figure 3 15 FT High performance Embedded Workshop Ej Flash Development Toolkit 4 05 T H8 C Compiler 6 02 Release 01 m M16C 60 30 Tiny 20 10 R8C Tiny Series C Compiler 5 44 Relea m M32C 90 80 M16C 80 70 Series C Compiler 5 41 Release 01 an R32C 100 Series C Compiler V 1 01 Release 00 m Renesas Hib el eo Morkshop E Multiple Install Manager Ay Renesas AutoUpdate Renesas AutoUpdate Manual ae E Renesas Tools HomePage Figure 3 15 Starting up the Multiple Install Manager 2 When Multiple Install Manager is started up the Maintenance dialog box appears Figure 3 16 Read the contents and check that all of the required products have been installed If anything is missing re install it Malntenance High peromnance Embedded Workshop ig already installed in this PC C h k 5 xia eck compilers Aiti Display Marne iLrireet ry p Acimn Highepes
63. orkshop in a single PC Non active Exit Figure 3 2 High performance Embedded Workshop Installation Manager Although this guide explains the standard installation you can alternatively select Multi Install to install multiple High performance Embedded Workshops on a single host computer Note 4 The Select destination folder dialog box appears Figure 3 3 To change the destination folder click on the Change button Check the folder name and click on the Next button The default destination folder is used in this guide Select destination folder Destination folder Click Next to install to this folder or click Change to install to a differnt folder Destination Folder C Program Files Renesas Hew Figure 3 8 Select destination folder R20AN0022EJ0100 Rev 1 00 Sep 07 2010 Qe Page 7 of 66 lt ENESAS Introductory Guide for the RX610 Group 5 The Choose software dialog box appears Figure 3 4 Select the software products that you wish to install and click on the Install button The auto update utility which automatically acquires update information on Renesas microcomputer development tools via the Internet to ensure that required updates are applied to the tools is selected in this guide Choose software Please choose software to install mance Embedded Workshop 100 E1 E20 Emulator Debugger Device Group Module Detail Please choose from the list it wi
64. quired Data access information is acquired Trace Capacity Cannot be specified Note For other trace conditions refer to the user s manual W Trace conditions Seles Trace condition and combination setting Trace Start Event in use 0 Trace Stop n Trace Event in use 0 Trigger Extract i Total O events Event in use Trace Setting Trace Mode MM Rus Trace Output Do not output Internal buffer used Trace Type lanh 0000 em Trace Capacity NEN Advanced Po 0 Pl S Event used OA D Free md Registered events Figure 4 61 Specifying Trace Conditions R20AN0022EJ0100 Rev 1 00 Page 50 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 To stop program execution specify an on chip breakpoint at line 59 which processes p sam s0 al 0 in Tutorial c as shown in Figure 4 62 For the breakpoint setting procedure refer to section 4 10 Break Functions s ejes Line Source Ad 50 FFFFG7 A 7 51 FFFFG 7BU 52 ICM 53 at IPI TITE ee 55 56 FEFFEGTDSGO 57 FFFFS7DE 58 SS EI tee pio 50 FFFFS7EB 61 FFFFG 7F3 ba FFFFOVFE 63 FFFFS605 64 FFFFGSGUB 65 FFFFSS13 66 FFFFGGI1B D 5 Source j rand iffy Of Tac i ali 3j l aort ial change a p_sam s0 a D sam gt si af i s2 a 2 p sam s3 a 3 p sam s4 a 1 p sam s5 a 5 p sam s6 a 65 p sam s7 a 7 4 zi Tutori
65. r fg Renesas fad High performance Embedded workshop B Call walker Flash Development Toolkit 4 05 t 2 H85 H8 300 Simulator Debugger Help m H8 C Compiler 6 02 Release 01 m High performance Embedded workshop m M16C 60 30 Tiny 20 10 RBC Tiny Series C Compiler V 5 44 Relea EY High performance Embedded Workshop Help m M32C 90 80 M16C 80 70 Series C Compiler V 5 41 Release 01 E High performance Embedded workshop Read Me m R32C 100 Series C Compiler V 1 01 Release 00 e Manual Navigator m Renesas High performance Embedded Workshop ag Mapview Multiple Install Manager 2 Ra Family Simulator Debugger Help Ay Renesas AutoUpdate Es E1E20 Self Check Program amp Renesas AutoUpdate Manual amp Renesas Tools HomePage AllPrograms M Figure 5 1 Invoking the Manual Navigator R20AN0022EJ0100 Rev 1 00 Page 56 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group Manual Navigator REJ10J2089 pdf File View Tool Window Help Navigator 0 x Mt REJ1052089 pdf Seles Save a Copy Print a Email i9 Search uu W gt gx wh Review amp Comment A Sign v High performance Embedded Workshop VII M TE Ea E IAJ L3 L3 Q 75 6 E Mm EN HEWTargetServer User s Manual xd TCL TK Additional document HS6400E WI Be Options v x gt s conten A REJ10J2089 0100 Everywhere you imagine CE NESAS n ontents EHPA Section 1 Overview 281 1 Warnings DA 1 2 Environmental C D5
66. rce Display Mode 7 The Trace window display modes are shown in Figure 4 65 Figure 4 65 also shows a window display example where the bus display disassembly display and source display modes are all enabled Use these trace display mode switching buttons to select the information displayed in the Trace window BUS button Bus display mode DIS button Disassembly display mode SRC button Source Display mode lg gt ee Cycle Label Address Source Destina Data 00000013 FFFF873B FFFF873 FFFF873B MOY HOH Ri4 Tutorial c 43 forg i 0 i lt 10 i j FFFF873D MV R14 2CH RU FFFF87 U MV 2 DH R R14 FFFAFA TAJ CHF 04H R14 FFFFey Ab BhE IIFFFF8 7D8H Figure 4 65 Trace Window Display Modes R20AN0022EJ0100 Rev 1 00 Page 52 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 8 In the source display mode you can use the Step Backward button which analyzes the trace information and tracks the program execution history in reverse as shown in Figure 4 66 and the Step Forward button which tracks forward as shown in Figure 4 67 In this tutorial example the current location may be in the loop in the change function and in some cases the indication of the current location will not move even when a step button is clicked In this case check the Cycle and Address in the top right of the window If these values change when a step button is clicked the current location is
67. re 4 3 Select the Browse to another project workspace radio button and click on the OK button 3 The Open Workspace dialog box shown in Figure 4 3 will appear Specify Tutorial hws and click on the Select button When the software of this product has been successfully installed workspace Tutorial hws is stored in the folder shown below Drive where the OS is installed WorkSpace Tutorial E1E20 RX600 Tutorial_LittleEndian C High partermance Umieeidded Wnrkahop Open Workspace Look in Tutorial LittleEndian e ex E3 Ae utorial Tutorial hws File name Tutorial hws Files of type HEW Workspaces hws Jaoua uir Se F Hi E Tos Ready Figure 4 3 Selecting a Workspace in the Welcome Dialog Box If the version of the High performance Embedded Workshop used for creating the installed tutorial workspace is older than what is currently used in your computer the dialog box shown in Figure 4 4 will appear In this case to update the workspace version to the current High performance Embedded Workshop version click on the OK button High performance Embedded Workshop The Workspace you are about to open was created with an earlier wersion of HEW The data Files Far the workspace projects and sessions will be updated Once updated this workspace cannot be opened by an older version of HEW Backup versions of your old Files will be c
68. reated in the workspace and project directories with the prefix Cancel Figure 4 4 Dialog Box Shown for Old Version Workspace old version xxx Do you wish to continue R20AN0022EJ0100 Rev 1 00 Page 20 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 4 Setting up the E1 Emulator during Booting up 1 The Initial Settings dialog box shown in Figure 4 5 will appear Make the necessary settings as shown in the figure and click on the OK button When the Initial Settings dialog box does not appear switch the session and click on the Connect button as shown in Figure 4 6 Initial Settings E3 Device f Communication MCU group RXET0 Group Device R5F56108 hi Mode Debugging made Hot plug in check that the emulator is disconnected from the user system and turn on power for the emulator C Whiting the on chip flash memory made Execute the user program after ending the debugger Communication ETSI Serial No E1 SIMDDODSS zl Refresh Donat show this dialog box again Initial Settings Device Communication JTAG JTAG Clock E MHz Cancel Do not show this dialog box again Figure 4 5 Initial Settings R20AN0022EJ0100 Rev 1 00 Page 21 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group Debug SessionRXBOO_E1_E20_ P efaultSessian SessionRHzb d E1 E20 S75 5 Tutorial
69. sibility 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 1n 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 Renesas 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 1n 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
70. 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 certain 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 evalua
71. t A Int d j d Disassembly Ctrl D mj gap 5 whilei g Performance eel Stack Trace Chrl k RTOS x eV Range File Cycle Address Address Source Destina Data iz BUS Mas Typ Branch Channel TimeSt Figure 4 59 Opening the Trace Window 2 Open the Trace conditions dialog box to specify the conditions for acquiring trace information Click the Acquisition button in the Trace window as shown in Figure 4 60 Figure 4 60 Acquisition Button R20AN0022EJ0100 Rev 1 00 Page 49 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 Specify desired conditions in the Trace conditions dialog box Table 4 3 shows the conditions that can be selected in the E1 emulator In this example specify conditions as shown in Figure 4 61 so that the trace function acquires the PC addresses for 256 branches immediately before the user program execution stops Table 4 3 Specifiable Trace Conditions for E1 Emulator Trace Tab Trace Mode Fill until stop The acquisition of trace data continues until the program stops or an event selected to stop tracing occurs Fill until full The acquisition of trace data stops when the trace buffer becomes full Trace Output Do not output The trace buffer in the MCU will be used The other options cannot be specified in the E1 emulator Trace Type Branch information is acquired Branch Data Branch and data access information is ac
72. t button to finish this process ES High performance Embedded Workshop Install Manager Installation has completed 434 NES AS Everywhere you imagine Multi installation Active E Embedded Switch over t Non active Figure 3 13 Installation Completed 3 4 Installing the USB Driver 1 Connect the E1 emulator and host computer via a USB interface cable When the dialog box shown in Figure 3 14 appears follow the instructions on the screen to install the USB driver The pictures below are from a computer running Windows XP The display varies with the operating system Found New Hardware Wizard Found New Hardware Wizard Welcome to the Found New Welcome to the Found New Hardware Wizard Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy This wizard helps you install software for Renesas E Series USB Driver Can Windows connect to Windows Update to search for C If your hardware came with an installation CD software ZE or floppy disk insert it now CO Yes this time only Yes now and every time connect a device What do you want the wizard to do D Install trom a list or specific location Ad Click Next to continue Bock fL news Completing the Found New Hardware Wizard The wizard has finished installing the software F
73. te 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 1n whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office 1f you have any questions regarding the information contained in this document or Renesas Electronics 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 RENESAS SALES OFFICES Renesas Electronics Corporation Refer ta hiipvawww renesas comi for ihe latest and detailed information Renesas Electronics America Inc f 2980 Seott Boulevard Santa Clara CA 95050 25654 U 3 4 Tal 1 408 586 6000 Fax 1 408 6
74. termancse Embedded Workshop CP ragram FilessEtenesassdmw LO Hij petema Erabedded Workshop Prajan Filesktenesaskime Sh PER High pesteraanze Embedded Workshop Yee 0 Progam Filesenesaseww 1652 CoProgram Files RenesasdHaw OG Display Mari High perfanmances Fribedded Workshop if Vergine v d 07 OULUN To B H d i n Package TankCh in Ex Toolchains 1 0 0 0 Evaluation Version HX fgolchsms TU Evaluation version Simulator Debugger i simulator Debugger RX Family zurmulatar Dibui 1 00 00 Emulalor Qebugger Misc Dehor Ra Family Simulator Debugger RXBOO ET E20 Emulator Debugger 1 00 00 You can r far to the detas when you click lire Wwhan you click switch active anrironrment switch over the active mu at OF L Bou t E EF High performance Embedded Workshop which you chase When you click LIninstall uninstall the High performance Erntueducd Woekshop which you chase HAB E EZL E mu at orf D h under 1 E 00 A l Sir t fle Check emulator software Figure 3 16 Checking the Products That Have been Installed R20AN0022EJ0100 Rev 1 00 Page 15 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 6 Checking That the USB Driver Has been Installed To check that the USB driver is working correctly see the state of the ACT LED on the E1 emulator after connecting the emulator and host computer via a USB interface cable Table 3 1 shows the states of the ACT LED and their meanings
75. the RX610 Group 4 11 3 Using the Tooltip Watch Function to Refer to Variables The tooltip watch function watch by mouse pointing is available either during program execution or while execution is stopped Place the mouse cursor on the variable that you want to check and the value of the variable will be displayed as shown in Figure 4 37 EET Line Source d O S Source FFFF85E7 port long taj 7 va NR Place the mouse cursor on variable m NEN g IntBuf and a pop up will appear FFFF85F1 while gap gt O jf prm a FFFFSSFB for k O k lt gap k Move the mouse FFFFa60C for i k gap i lt 10 i i gap j FFFF8620 j j MOS forij i gqap j k j j gap cursor here rrrrass e FFFF8640 ifta np OxOO000008 00001 404 FFFFS65F e FFFF685C a 3 a j gap a j gap t Figure 4 37 Tooltip Watch R20AN0022EJ0100 Rev 1 00 Page 38 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 12 Referring to or Modifying Data through the Memory Window The watch function allows reference to the variables that have been declared but use the Memory window to refer to or modify data in a desired address area 1 Select View gt CPU gt Memory as shown in Figure 4 38 to open the Memory window Differences p ar Map Command Line Ctrl L i n TCL Toolkit Ctrl ShiFk k long t E status Bar int i gap 5 CHR Event Memor
76. tion stops and then click on the Clear All Data button When the measured results are not cleared the results of the next measurement will be accumulated on the current results No Condition Time h m s ms us nsa 1 Execution cycle OO 00 00 000 000 000 b Not use nee ee Lei Figure 4 58 Clearing the Performance Analysis Results R20AN0022EJ0100 Rev 1 00 Page 48 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 4 16 Trace Function The trace function acquires information such as PC values at branches or data access information during user program execution and stores the information in trace memory By using the trace information you can track the flow of application execution and examine the points where problems arise The E1 emulator provides the internal trace function which uses the trace buffer in the MCU Execution address and operand access events can be used to acquire CPU bus trace information on branches origin and destination addresses and data access The acquired trace information is displayed in the Trace window as bus information disassembled code or source code 1 Select View gt Code gt Trace as shown in Figure 4 59 to open the Trace window Mroject Build Debug Setup Tools Test Window Help if Differences SR EL EE EL EE mtt rae Map iri T Command Line Ckri L z 0 5 Source we TCL Toolkit CErl ShiFt k sort long a long t E status Bar Al
77. tton 5 Found New Hardware Wizard shows the Please select the best match for your hardware from the list below message 6 When two or more inf files are displayed select one and click on the Next button 7 Check that Found New Hardware Wizard shows the The wizard has finished installing the software for Renesas E Series USB Driver message Click on the Finish button Note Turning power to the emulator on and off Most on chip emulators can only be supplied with power while they are connected to the host computer via a USB interface cable To turn power to such emulators on or off connect or disconnect the USB interface cable This note applies to the emulators given below That is the only exception is the E8a E10A USB E1 E20 E8 E7 E10T USB E100 E30A E200F 7 Other Questions The most common questions and answers about Renesas products including the E1 are given as FAQs on the Renesas Web site Enter the E1 emulator page and click on FAQs R20AN0022EJ0100 Rev 1 00 Page 62 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group Homepage and Contact Information Renesas Electronics Homepage http www renesas com Contact http www renesas com contact All trademarks and registered trademarks belong to their respective owners R20AN0022EJ0100 Rev 1 00 Page 63 of 66 Sep 07 2010 RENESAS Revision History Description Re
78. v Date Summary Sep 07 2010 First edition issued 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 Electromes such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property nghts 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 1s granted hereby under any patents copynghts or other intellectual property nghts 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 respon
79. xecution cycle 2 Not use lt ll gt Debug Fir Before break Read write 59 79 NUM Figure 4 68 Terminating Debugging R20AN0022EJ0100 Rev 1 00 Sep 07 2010 Qe Page 54 of 66 lt ENESAS Introductory Guide for the RX610 Group 4 18 Operating the User Board as a Stand Alone Unit When operating the user board as a stand alone unit after completing debugging download the program by using the flash memory programmer mode as shown in the following figure the steps described in the above sections are omitted Initial Settings E Device Communication MCU group Goan Group da Device H5F5B1 08 v zx Tutorial El iy Tutorial H 2 C source file EE dbsct c Intprg c LA Mode riting tn Debugging mode memorv moc Hot plug in check th sess discannected trom the user system and turn an EEJ j Wha Tutorial c vecttbl c Execute the user program after ending the debugger Power supply Power target from the emulator MAX 200me 33V C Soy Communication Emulator Serial Mn E1 AJMOOO035 Refresh Cancel Do not show this dialog box again Flash memory writing OK ID code FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Checksum INT H DD24DDA OK Figure 4 69 Procedure for Operating the User Board as a Stand Alone Unit R20AN0022EJ0100 Rev 1 00 Page 55 of
80. y CEri4 M Symbol H E 10 Ctrl I Code H EH Status Ctrl U Performance RTOS k DebugConsole Figure 4 38 Opening the Memory Window 2 The Display Address dialog box shown in Figure 4 39 will appear Enter 1000H as the display start address and the Memory window will open as shown in Figure 4 40 Display Address Display Address 1000 Fl Scroll Start Address ooooooo0 Fl Scroll End Address FFFFFFFF gl Cancel Figure 4 39 Display Address Dialog Box x mms 16 du 8 2 gt j Ib Wt O be Address 00001000 00001010 Oo001020 OOO001030 OOO01040 OOO01050 oo001060 oo001070 OOO01080 Figure 4 40 Memory Window R20AN0022EJ0100 Rev 1 00 Page 39 of 66 Sep 07 2010 RENESAS Introductory Guide for the RX610 Group 3 The data display size can be changed See Figure 4 41 for the access size change 1 byte display Address 00001000 00001010 00001020 00001030 00001040 abe f d 46 2 byte display Address ooo0 1000 00001010 agagigasu OO001030 4 byte display Address opgooit 00001010 ooo0 1020 00001030 ooo001040 00001050 Ooo001060 agagig7 agaagidsu 24CcD083cC CD44 1656 LEG 62631 FCB53D3L B36EAZIB 3JCSOFBF4AC 042 E4033 D1C8C217 BSF7DUASA 4 42F31919 2117cC88BC EE3Z2543cC SBFTOBB2 F5741499 c2D029958 gGcBBS4icz p57 08715 BO4BBOCL 8 BSOS1z2F2 BF ECFBZ 61509354 540425E9 4cZCoBDA 381B7755 4c 3CA366 E506aF44 FEODOFZS 3
81. ysia Tal 60 3 7955 93990 Fax 60 3 7955 0510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tal 482 2 558 3737 Fax 82 2 558 5141 amp 2010 Renesas Electronics Corporation All rights reserved Colophon 1 0
Download Pdf Manuals
Related Search
Related Contents
I GB GPLK USO E MANUTENZIONE GPLK USE AND MAINTENANCE User Guide - B&H Photo Video Digital Cameras, Photography Version imprimable en pdf avec résumés Pre-Installation スライド タイトルなし Trimble 5700-5800 - Al POS - Comune di Afragola Manuales Reglas Vibrantes 8778 - manual aquecedor eletronico v2_12032009 Copyright © All rights reserved.
Failed to retrieve file