Home

E30A Emulator User`s Manual

image

Contents

1. Table 4 3 lists the signal assignments of the oscillator circuit board connector Table 4 3 Signal assignments of the oscillator circuit board connector Signal Description V50 5 0 V power supply GND OSCCLK Oscillator circuit input amplitude 5 0 V GND 4 5 3 Option Connector Table 4 4 lists the signal assignments of the option connector Table 4 4 Signal assignments of the option connector Signal Description UVccl Vccl power supply UVccl Vccl power supply GND RST Reset signal GND RSTMSK Reset mask signal GND UVcc2 Vcc2 power supply 1 2 3 4 5 6 7 8 9 UVccl Vccl power supply UCON REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 48 of 54 24 NC S AS 4 Hardware Specifications E30A Emulator User s Manual 4 Hardware Specifications 4 6 External Dimensions 4 6 1 E30A Emulator Figure 4 2 shows external dimensions of the E30A emulator X oO 2B o8 sKENESAS s 8 O D gt JOA ma O3 0 02090 EMULATOR i OGO O62 a O I OKOROKO OKOKO 6 O OG0 O ote z gt 1 c z o o ul m 208 OOO O Y 136 3 DOO OOo EF TI EI ll eo OOo0o000o0o000 co 0000000000 eo Unit mm Figure 4 2 External dimensions of the E30A emulator RE
2. creer te ae a eaae EEEa EEEE ONE aA e RE nu tede E MERE ERE RR E RHEK E nexu RR EUER Ka 10 BE ullo Me 11 JO EEUU 12 1 1 Applicable MU ueteri tee teet pace tbt ge eerta crab ue dd Rod rel aaa iaaa die andata 12 1 2 Prod ct O tline irre tardan escalated e eO M a EE EP eR dE iude dup Re Po PUR esa aede aes 12 1 3 System Bees I RET E 12 1 4 Package Components 2 1 erit recipiet cede Fla eae p Aen dae La E indi doo ea pav Ra deed avid ch dnt de edge aed 13 tS Operating Environment s inina te e eror reto bu cues eter daar re asa opa des Feste a xt 2 ede Ee BERE E EN 13 V6 utn beauees 13 17 SPOCHICALOMS ce 14 1 8 Names and Functions of Each Part of the Emulator sssssssssssesseeeee enne nnns 15 1 9 Operating ENVION ent sissien ia Pneterea eno aea een Po Etha deu o E edie aetna rona band 17 Peu 18 2 1 Flowchart of Starting Debugging merremi nnim nania entente entren tenen adana a aiaa 18 2 2 Installing the Emulator Debugger ssesssssssseseseseseeene ennemis trn et rene n rns etr ns en nene 19 2 3 Changing Hardware Setting Sinisira ean dati euet aa nde o ec dee nee enge eee Lie de LE qu Reed 20 2 4 Connecting the AC Adapter to the E30A Emulator ssssessssses eene 22 2 5 Connecting the E30A Emul
3. downloaded is written over it inside the PC before the block is erased and programmed When you deselect the check box the data to be downloaded is written to the block after being erased When E2 data flash is not embedded in the MCU this setting is invalid REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 38 of 54 7CENESAS E30A Emulator User s Manual 2 Setup 2 14 2 Ext Port Tab This tab permits you to set the extension port function to connect an option connector 1 Setting Extension Port Specify whether to disable the reset signal for the user system Unless the option board is connected this setting is not available to use When this check box is selected a high output to RSTMSK is generated to disable reset of the user system For details refer to 2 6 3 Using the Option Board ROE00030ACKZI0 on page 25 Emem m Setting of Extension Port r Only when the Extention Port is connected you can select this function Cancel Help Do not show this dialog box again REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 39 of 54 QEN ESAS E30A Emulator User s Manual 3 Functional Description 3 Functional Description 3 1 Break Function 3 1 1 Software Break If the breakpoint you set is a software breakpoint the program stops before executing the instruction at the set breakpoint Up to 64 break points can be set You can specify breakpoints in the internal RAM of the MCU the internal flash ROM of the MCU a
4. 2 3 Changing Hardware Settings 2 3 1 Selecting Clock Supply You need to choose the Xy clock supplied to the target MCU on the user system Table 2 1 shows the clock supply to the MCU For normal use select Generated in the Emulator tab of the Init dialog box of the emulator debugger and specify a frequency you like to use for this clock supplied to an MCU You can change a frequency between 2 0 and 32 0 MHz by 0 1 MHz Table 2 1 Clock supply to the MCU Emulator debugger display Xm Xour Generated Internal generator circuit 2 0 to 32 0 MHz Internal Oscillator circuit board OSC 3 or OSC 2 2 3 2 Using the Oscillator Circuit Board Even when you have selected Internal on the Emulator tab of the emulator debugger s Init dialog box to specify an oscillator circuit board you need to enter a clock frequency With this emulator no oscillator circuit board has been mounted when shipped from the factory If you use a special frequency attach the oscillator circuit board following the procedure described below 1 Unscrew the five screws securing the E30A emulator and remove the upper cover 2 The connector J1 for connecting an oscillator circuit board is in the corner of the board around the DC power input connector 3 Unscrew the screw which is used for securing an oscillator circuit board 4 Attach the oscillator circuit board you like to use and secure the oscillator circuit board with the screw 5 Attach t
5. 5 USB I F Connector This is a USB interface connector for connecting the host machine to this emulator For details on connecting the emulator and host machine refer to 2 5 Connecting the E30A Emulator and the Host Machine on page 22 REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 16 of 54 24 NE S AS E30A Emulator User s Manual 1 Outline 1 8 6 Maintenance Switch If this switch is pressed within 2 seconds after turning on the power the SAFE LED blinks and the emulator switches to maintenance mode for downloading firmware In maintenance mode you can download firmware forcibly For details refer to 2 10 Downloading Firmware on page 29 1 8 7 500 Coaxial Connector This included 50 coaxial cable gray connects this emulator to the user system For details on connecting the emulator and user system refer to 2 6 Connecting E30A Emulator and the User System on page 23 1 8 8 Option Connector This connector is provided for connecting to the user system via an option board using the 10 pin flat cable included with the product For details on connecting to the user system refer to 2 6 Connecting E30A Emulator and the User System on page 23 1 9 Operating Environment Be sure to use this emulator with the operating environment of the emulator and host machine listed in Table 1 7 Table 1 7 Operating environmental conditions Operating temperature 5 to 35 C no condensation Storage temperature 10 to 60 C no condensa
6. Rev 2 00 Jul 01 2008 Page 12 of 54 134 N S AS E30A Emulator User s Manual 1 4 Package Components Table 1 1 lists the package components of the E30A emulator Table 1 1 Package components E30A emulator main unit Description ROE00030AKCTOO 1 Outline Quantity AC adapter AC input 100 240 V 50 60Hz DC output 12V 3A AC power cable 1 5m UL PSE qualified USB I F cable A plug mini B plug 1 8 m long compliant with high speed standard Target I F cable 50Q coaxial cable gray 1 8 m long Coaxial connector HRM 300 126B 40 Hirose Electric Coaxial converter board ROEO0030ACKZO00 coaxial connector and 3 pin connector premounted Connector for coaxial converter board PIC FS03 G R Honda Tsushin Kogyo 2 54mm pitch 3 pin socket Option I F cable 10 pin flat cable 20cm long Option board ROE00030ACKZ10 10 pin connector and 3 pin socket premounted Option board connector FFC 8LAMEP1B Honda Tsushin Kogyo 2 54mm pitch 8 pin right angle PIC MSA08 2G Honda Tsushin Kogyo 2 54mm pitch 8 pin straight PIC FS08 G R Honda Tsushin Kogyo 2 54mm pitch 8 pin socket Integrated development environment High performance Embedded Workshop R32C 100 E30A emulator debugger E30A emulator user s manual 1 5 Operating Environment IBM PC AT compatibles Windows XP and Windows 2000 1 6 PC Interface USB interface USB 2 0 hig
7. conditional branches information on data accesses or mixed information of branch sources and destinations and data accesses Information on branch sources and destinations Branch source address and branch destination address are recorded as an event Conditional branch information This is a compressed branch information which records whether a conditional branch is effected or not To record conditional branch information cancel all event settings in the event setting window For tracing 512 evens with MCU execution priority branch information can be acquired up to 24 576 times Data access information Address data data size and read write information are recorded as an event IMPORTANT Note on Jump in Queue R32C 100 series has a function that branches to the instructions fetched into the prefetch queue to improve the processing performance but the branch source and destination information is not output 3 2 3 Extraction Trace An extraction trace with the start event EO and the end event E4 specified is possible The events E1 E3 or E5 E7 that occurred during an interval between EO to F4 are recorded in the trace RAM REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 41 of 54 24 NEC S AS E30A Emulator User s Manual 3 Functional Description 3 3 Time Measument Function 3 3 1 Execution Time Measurement You can measure a program execution time between Go and Stop The 32 bit CPU clock counter allows yo
8. during debugging in CPU rewrite mode Otherwise the emulator will be out of control Furthermore before executing a user program be sure to disable automatic updating of the windows to ensure that no memory accesses will occur during execution of the user program To inspect data after CPU rewrite operation stop the program after exiting CPU rewrite mode and inspect the data in the memory window or another appropriate window REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 46 of 54 24 NEC S AS E30A Emulator User s Manual 4 Hardware Specifications 4 4 Connection Diagram Figure 4 1 shows a connection diagram of the E30A emulator This connection diagram shows the interface section E30A emulator 1 UVcc1 OND UVcc1 Tooga 1kQ 500 OPTION UVcc1 GRAY 100k 1kQ 8 UVcc2 External View of Connector 100k 1kQ RST 100k 2 2 pu 1kQ 6 2 RSTMS 100k 3 3V 100k UCON Regul GND egulator GND Z3 ae Pu pe 100kQ Figure 4 1 Connection diagram of the E30A emulator s interface section REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 47 of 54 7PENESAS E30A Emulator User s Manual 4 5 Signal Assignments of the Connectors 4 5 1 USB I F Connector Table 4 2 lists the signal assignments of the USB I F connector Table 4 2 Signal assignments of the USB I F connector Description 5 0 V power supply unused Unused 4 5 2 Oscillator Circuit Board Connector
9. event specifiable Time measurement Execution time between Go Stop 32 bit CPU clock counter in MCU Interval time 3 points between data access 40 bit counter in E30A RAM monitor Specifiable in byte or word units pseudo RAM monitor realized by software one event used Coverage Not available Simultaneously usable functions by operation mode Trace Trace priority Trace MCU execution priority Time Measurement RAM Monitor Writer Break Time RAM Address Range Data Comparison Data Access Execution Address Measurement Monitor Yes Host machine I F USB 2 0 High Speed Target I F 2 pin 50 coaxial cable 3 pin via coaxial converter board 8 pin via option board Target I F signal NSDport GND When using coaxial cable coaxial converter board NSDport GND Vecl Vcc2 RESET When using option board Targetless debugging Not available Emulator power supply Supplied from the included AC adapter Target MCU power supply Supplied from a user system Outside dimension except the protruding part Width 136 3 mm depth 104 0 mm height 36 8 mm Weight Approx 300g Operating environment Temperature 5 C to 35 C no condensation Storage environment Temperature 10 C to 60 C no condensation Overseas standard European EN Standard EN55022 Class A EN55024 Ame
10. target MCU If the reset circuit of the user system uses an open drain output pull it up to Vccl with a 4 7k 22kQ resistor The same applies for the power on reset case making use of a CR circuit If the reset signal is generated as CMOS output from other logic devices the user system may have a RSTMSK signal connected to disable the output Since RSTMSK input is indeterminate when the E30A emulator is not connected it requires a pulldown resistor 5 Connection procedure Plug the 10 pin flat cable included with the product into CN3 on the option board Plug the 50 coaxial cable gray included with the product into CN1 on the coaxial converter board Fit CN2 on the coaxial converter board into CN2 on the option board It can be turned 180 degrees as it is fitted into place Fit CN4 on the option board into the 8 pin socket on the user system Alternatively the coaxial converter board can be attached to pins 3 5 of the 8 pin socket on the user system without using the option board 6 Compatibility with the E30 emulator old product If you have hitherto been using the 8 pin flat cable of the E30 emulator you can attach the 2 54mm pitch 8 pin right angle connector included with the product FFC SLAMEPIB made by Honda Tsushin Kogyo to CN4 component side of the option board for connection to the user system However since the non coaxial NSDport wiring becomes longer it is recommended that the connector on the user system be replaced wit
11. unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor 9 Before setting up this emulator and connecting it to other devices turn off power or remove an AC power cable to prevent injury or product damage Warning for Modification Do not modify this product Personal injury due to electric shock may occur if this product is modified Modifying the product will void your warranty Warning for Installation 9 Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling Ac 1 water or some other liquid into the product may cause unrepairable damage LX Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Use Environment This equipment is to be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 7 of 54 RENESAS E30A Emulator User s Manual Precautions for Safety A CAUTION Cautions to Be Taken for the AC Adapter Use only the AC adapter included in this product The DC plug of the included AC adapter has the below polarity QO 9 O Cauti
12. user program make sure to set the same value of the PLL related settings specified by the emulator debugger Otherwise the emulator will be out of control Notes on Interrupt Stack The E30A Emulator uses an interrupt stack of up to 52 bytes Make sure sufficient space is reserved for the interrupt stack area with the maximum stack size used by a user program added If the reserved interrupt stack area is exceeded the user program may go wild or the emulator may be out of control The E30A Emulator sets the interrupt stack pointer ISP at the beginning address of RAM 0100h after being reset and uses that location as a stack area at deassertion of reset Note on Interrupts That Cannot Used by the User Program The BRK2 interrupt single step interrupt and DBC interrupt are used by the emulator program Therefore make sure the user program does not use these interrupts Note on Interrupt Request Even if a user program is not being executed including when run time debugging is being performed the evaluation MCU keeps running so as to control the emulator The interrupt request cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the user program execution is started REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 43 of 54 24 NC S AS E30A Emulator User s Manual 4 Hardware Specifications IMPORTANT Note on Low Voltage Detection Interrup
13. 9 0200 Rev 2 00 Jul 01 2008 Page 27 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 8 Installing the USB Device Driver The installation wizard for USB device drivers starts after the device had been detected by the host machine Figure 2 7 shows the procedure for installing the USB device drivers for Window XP For other OS the driver will be installed automatically Found New Hardware Wizard Welcome to the Found New 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 Can Windows connect to Windows Update to search for T Wo gi 2 ic software Select No not this time and click Next O Yes this time only O Yes now and every time connect a device O nat this time Click Next to continue Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for Renesas E Series USB Driver If your hardware came with an installation CD or floppy disk insert it now Click Next What do you want the wizard to do install ihe software automatically Recommended O Install from a list or specific location Advanced Click Next to continue Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Renesas E Series
14. DEOFFF 00061 FFF FFFBFFFF FFFSFFFF FFFAFFFF FFFBFFFF FFFCFFFF FFFDFFFF FFFE7FFF FFFFFFFF Select All Clear All E2 Data Flash is not erased on download The selected blocks are over written not erased on download Cancel Help Do not show this dialog box again 1 Flash ROM Block If you want to keep the data when you download a user program or data table check the blocks of contents you want to keep intact The address list is expressed in units of internal flash ROM blocks of the MCU The selected blocks those flagged by a check mark require extra time because their contents need to be read out before being programmed Therefore we recommend leaving blocks unselected When you select the check box for any block the content of that block is read out into the host machine and the data to be downloaded is written over it inside the PC before the block is erased and programmed When you deselect the check box for any block the data to be downloaded is written to the block after being erased Click the Select All button and all blocks will be selected Click the Clear All button and all blocks will be deselected 2 E2 Data Flash is not erased on download If you want to keep the data in the E2 data flash when you download a user program or data table select this check box When you select the check box the data in the E2 data flash is read out into the host machine and the data to be
15. J10J1699 0200 Rev 2 00 Jul 01 2008 Page 49 of 54 24 NC S AS E30A Emulator User s Manual 4 6 2 Coaxial Converter Board Figure 4 3 shows external dimensions of the coaxial converter board 4 Hardware Specifications User System Unit mm Figure 4 3 External dimensions of the coaxial converter board 4 6 3 Option Board Figure 4 4 shows external dimensions of the option board 2 lt 3 E 25 O es O 8 0 3 0 so 1 z Oo DR User System Unit mm Figure 4 4 External dimensions of the option board REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 50 of 54 134 N S AS E30A Emulator User s Manual 5 Maintenance and Guarantee 5 Maintenance and Guarantee 5 1 User Registration When you purchase our product be sure to register as a user For user registration refer to User Registration page 10 of this user s manual 5 2 Maintenance If dust or dirt collects on any equipment of your emulation system wipe it off with a dry soft cloth Do not use thinner or other solvents because these chemicals can cause the equipment s surface coating to separate When you do not use this product for a long period for safety purposes disconnect the power cable from the power supply 5 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will rep
16. REJ10J1699 0200 Everywhere you imagine qe E NIC SAS E30A Emulator ROEO00030AKCTOO User s Manual On chip Debugging Emulator for R32C 100 Series Rev 2 00 Jul 01 2008 Renesas Technology WWW renesas com 10 11 12 13 Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations All information included in this document such as product data diagrams
17. Setup 2 11 2 MCU Tab This tab permits you to select an MCU file and the connected emulator and specify whether to debug a program in CPU rewrite mode whether to use ECC for E2 data flash and a work area for the monitor program Init R32C 100 E30A Emulator 1 Debugging Information Emulator Script Mode Serial No m Debug the program using the CPU Rewrite Mode Use ECC for E2 Data Flash Work Area For Monitor Program First Address 00 20 00 OK Cancel Help Do not show this dialog box again 1 MCU An MCU file MCU type name_E30A mcu contains the information specific to the target MCU Select the MCU file applicable to the target MCU Click the Refer button to open the Select MCU File dialog box Select the desired MCU file 2 Serial No Select the serial number of the emulator to be used from the connected emulator list 3 Debug the program using the CPU Rewrite Mode Select this check box when you want to debug a program in CPU rewrite mode In this mode software breaks in the internal ROM area of the MCU cannot be used 4 Use ECC for E2 Data Flash Select this check box when you want to use ECC for E2 data flash 5 Work Area For Monitor Program Specify the start address of the internal RAM area of the MCU that is used by the debug monitor program Approximately 1 KB of the internal RAM will be used as needed for example to download a user program Since the memory contents are save
18. USB Driver The USB driver will be installed automatically Click Finish to exit Click Finish to close the wizard Figure 2 7 Installation of USB device driver for Windows XP IMPORTANT Note on USB Port Change If you change the port to connect USB the device driver is installed over again Note on Found New Hardware Wizard For Windows XP the amount of time needed for the wizard to appear depends on the CPU usage rate of the host machine For example approximately 9 seconds of time is needed when the CPU usage rate is 0 whereas approximately 30 seconds is needed when the CPU usage rate is 100 REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 28 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 9 Checking the Status LEDs Display Check that the SYS POWER LED and SAFE LED are lighting If the SAFE LED is off and the ERROR LED is on it means that the E30A emulator hardware is not operating normally When the SAFE LED is off and the ERROR LED blinks it means the internal firmware of the E30A emulator is not running normally When the status LED indicates abnormal perform the forced download as follows 2 10 Downloading Firmware It is necessary to upgrade the firmware in the cases listed below Normally the following are automatically detected when the emulator debugger is started up and the firmware is downloaded When you use this product for the first time When the firmware ha
19. YS POWER LED and SAFE LED of the system status LEDs are lighting The firmware will be automatically installed as needed Start up the emulator debugger and set the Init dialog After a message dialog is displayed reset the user system If the target MCU has had its ID code set enter the ID code Set the Emem dialog For details refer to the emulator debugger s online help Figure 2 1 Flowchart of starting the debug REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 18 of 54 24 NE S AS E30A Emulator User s Manual 2 Setup 2 2 Installing the Emulator Debugger Install the R32C 100 E30A emulator debugger from the included CD ROM as follows If the OS used in your host machine is Windows XP or 2000 this installation must be executed by a user with administrator rights Be aware that users without administrator rights cannot complete the installation 1 When inserting the included CD ROM the Readme Web page will be displayed Click Install to open the folder where the Installation program is stored Execute R32cE30ADebuggerV 100RO00 exe 2 The install manager starts Click Standard Install Recommended 3 In the page to select an installation product click Install to start installing 4 When the installation finishes a dialog box will be displayed indicating that the setup has been completed REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 19 of 54 7PENESAS E30A Emulator User s Manual 2 Setup
20. ad for Data Comparison Break Data comparison break is executed by that the debug monitor compares the data after the specified address is accessed and determines to cause a break or not In the case of Xm 8MHz PLL 128MHz 16 times BASE 64MHz and CPU 64MHz for example it takes 6us to return to the user program after data comparison 3 1 4 Break Combination Event breaks by the internal debug circuit of the MCU can be cascaded to constitute a state transition break at up to 8 points in the forward direction If all of the events are used for a state transition break program execution will break when the events E7 E6 and EO all have occurred in that order REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 40 of 54 24 NC S AS E30A Emulator User s Manual 3 Functional Description 3 2 Trace Function 3 2 1 Trace Capacity The following can be selected depending on the trace mode chosen in the event setting window Trace priority 8M events can be traced The trace data is output from the MCU and recorded to the emulator trace memory The user program execution may be delayed because the MCU processes the trace data output prior to others MCU execution priority 512 events can be traced The trace data is recorded to the trace RAM of the MCU debug circuit This mode does not affect the execution speed of the user program 3 2 2 Trace Contents You can select information on branch sources and destinations information on
21. air or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 51 of 54 RENESAS E30A Emulator User s Manual 5 Maintenance and Guarantee 5 4 Repair Provisions 1 Repairs not covered by warranty The products elapsed more than one year after purchase are not covered by warranty 2 Replacement not covered by warranty If your product s fault falls in any of the following categories the fault will be corrected by replacing the entire product instead of repair or you will be advised to purchase new one depending on the severity of the fault Faulty or broken mechanical portions Flaw separation or rust in coated or plated portions Flaw or cracks in plastic portions Faults or breakage caused by improper use or unauthorized repair or modification Heavily damaged electric circuits due to overvoltage overcurrent or shorting of power supply Cracks in the printed circuit board or burnt down patterns Wide range of
22. ator and the Host Machine ssssssssssssseseeeeeen nennen 22 2 6 Connecting the E30A Emulator and the User System sse nnne 23 27 ENiehhlnraAauoy IER 27 2 8 Installing the USB Device Driver ssssssssssssssseseeeeeee nennen nnne nnns nnns aaa sinn ns sn nnns innen 28 2 9 Checking the Status LEDs Display eene ennenn ense sn tene enne nnn snnt inneren 29 2 10 Downloading IIIYnare iacere teet ee ee reete dle td Ee Eo p dte sp xc LE de ot Pe dte kd 29 2 11 Starting Up and Initializing the Emulator Debugger ssssssseeeeeenenenneneen enne enne 30 2 12 Resetting the User System seisseen aasa e ER ba i te Reda pada pa eR HIP ER ee aa unu wa eda paa 36 AED eEe C 37 2 14 Setting the Emulator Debugger Operating Environment sssssssssssseee eene 38 3 FUNCHOMAl BI tT Ten ojo iz essc chececeacs pevaehscaeceasacedaasefh vic ianiai rianan iaia adaa PAN ANEAN aiaa NARAT aika 40 Sil Break EUncltlon 2 uie i ite a aaa e rec Winn Mei Unc OG ee 40 3 2 Trac FUMCKION ER 41 3 9 Time Measument Function eiii ied ei dae Erie apre er esed Aa aa aaa ana dab red Eve ovd ca Pda 42 3 4 RAM Monitor FUNCION sao eir rtt ttt t rt etn tne xvn eun x a Y e uae 42 4 Hardware Specifications x iater Pep ra edt RERUM neck a sn atest des XE FER XRR edes ER a Y RR RENE M rece R RE ua 43 4 1 Target MCU Specifications arret tr eir der a Red re ex ES P
23. cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characte
24. charts programs algorithms and application circuit examples 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 products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may
25. cify whether or not to show the instruction format specifier in disassemble display 5 Always treat variables of enumerator type with unknown size as 1 byte If the debug information contains information on an enumerator type that does not have size information it is possible to specify whether to handle it always as being 1 byte in size REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 32 of 54 QEN ESAS E30A Emulator User s Manual 2 Setup 2 11 4 Emulator Tab This tab permits you to specify the clock supplied to the target MCU and RAM monitor data acquisition interval Init R32C 100 E30A Emulator Clock asin PLL 128 000 gg Bo Generated Meiz CCR Ox 1F C Internal Data acquisition interval in MCU running state 1 10 ms 5 ms Do not communicate with MCU while target is executing Cancel Help Do not show this dialog box again 1 Clock Specify the Xi clock and the frequency that supplied to the target MCU Xin Enter the frequency of the Xy clock and select Generated Internal generator circuit or Internal Oscillator circuit board PLL Enter the frequency of the internal PLL of the target MCU CCR Enter the value for the internal clock control register of the target MCU 2 Data acquisition interval in MCU running state 1 10 ms Specify the data acquisition interval byte or word data during a program execution by the RAM monitor function 1 10 ms can be specified 3 Do not commun
26. ct malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This product has been developed by assuming its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or other safety standards and IEC or other industry standards This fact must be taken into account when taking this product from Japan to some other country REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 4 of 54 24 NC S AS E30A Emulator User s Manual Important Usage restrictions This emulator has been developed as a means of supporting system development by users Therefore do not use it as a device used for equipment embedded applications Also do not use it for developing the systems or equipment used for the following purposes either 1 Transportation and veh
27. ctions of each part of the emulator REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 15 of 54 24 NE S AS E30A Emulator User s Manual 1 Outline 1 8 1 System Status LEDs The system status LEDs indicate the emulator main unit s operating status Tables 1 4 and 1 5 list the definition of the system status LEDs Table 1 4 Definitions of the system status LEDs SYS POWER Name Status Meaning SYS POWER ON Power is supplied to the emulator Orange OFF Power is not supplied to the emulator Table 1 5 Definitions of the system status LEDs SAFE and ERROR Name Status SAFE Green ERROR Red ON OFF Emulator system has started normally Meaning ON Blinking Firmware is being downloaded Blinking OFF Emulator is in maintenance mode OFF ON Emulator system is not operating normally OFF Blinking Firmware download is not operating normally 1 8 2 Target Status LED The target status LED indicates the target MCU s operating status Table 1 6 lists the definition of the target status LED Table 1 6 Definitions of the target status LED RUN ON User program is being executed Green OFF User program is not being executed 1 8 3 DC Power Input Connector This connector connects the included AC adapter DC output cable to supply DC 12 0 V 1 8 4 Power Switch This is a power switch of the E30A emulator Before turning on the power again after shutting off the power wait about 10 seconds 1 8
28. d before debugging starts you do not need to be specifically concerned except that the following cannot be specified Areas overlapping the stack Areas to or from which DMA transferred IMPORTANT Note on MCU file When you cannot select the MCU to be used add the MCU file to the folder below For details on getting the MCU file contact your local distributor Install folder of the High performance Embedded Workshop Tools Renesas DebugComp Platform PDTarget PD100E30A McuFiles REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 31 of 54 24 NE S AS E30A Emulator User s Manual 2 Setup 2 11 3 Debugging Information Tab This tab permits you to select a compiler select an object format and choose to specify On Demand for debug information Init R32C 100 E30A Emulator MCU Emulator Script Mode Compiler N l Object Format f 3 M OnDemand Display the instruction format specifier in disassembly Always treat variables of enumerator type with unknown size as 1 byte Cancel Help Do not show this dialog box again 1 Compiler Select the compiler you are using 2 Object Format Select the format of the object file that is output by the compiler you are using 3 On Demand Select this check box when you want to hold debug information in a temporary file in order to reduce the amount of memory used by the host machine 4 Display the instruction format specifier in disassembly Spe
29. e software breakpoints set If a user program is altered before being downloaded the software breakpoints that have been set may be displaced depending on the content of alteration After downloading a user program be sure to check the contents of software breakpoints set Notes on the Data Access Trace 16 bit word data starting from an odd address and 32 bit long word data assigned differently from the 4 byte alignment cannot be traced properly Data access event by DMA is excluded from the subject of detection REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 45 of 54 24 NC S AS E30A Emulator User s Manual 4 Hardware Specifications IMPORTANT Notes on Debug Monitor Program Intervention The following functions result in the realtime capability becoming impaired because the debug monitor program intervenes Run time debugging Referring and modifying the memory during the user program execution RAM monitor Data comparison break when a break for data access is set in event E5 The RAM monitor function should be adjusted for sampling intervals byte word data acquisition intervals in ms units Since the updating time is extended if a wide area is displayed in bytes we recommend displaying only the necessary area in word size Note on Trace Mode When selecting Trace priority the user program execution may be delayed because the MCU processes the trace data output prior to others When select
30. e target MCU has ID code set in it the ID Code verification dialog box shown below is displayed Enter the 7 byte ID code written to the internal flash ROM into the dialog box successively Table 2 3 shows the ID code storage area ID Code verification Please input ID 1 1223344556677 Cane Enter ID1 ID7 successively in that order and then click OK Unless all IDs match the emulator debugger will not start Table 2 3 ID Code Storage Area Address Description FFFF FFE8h First byte of ID code FFFF_FFE9h Second byte of ID code FFFF FFEAh Third byte of ID code FFFF FFEBh Fourth byte of ID code FFFF FFECh Fifth byte of ID code FFFF FFEDh Sixth byte of ID code FFFF FFEEh Seventh byte of ID code REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 37 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 14 Setting the Emulator Debugger Operating Environment When a communication path between the E30A Emulator and target MCU is established the Emem dialog box shown below is displayed Set each tab described below and click OK 2 14 1 Flash ROM Clear Tab This tab permits you to specify whether or not to overwrite each block of the internal flash ROM in the MCU Flash ROM Block L1 L1 DJ L1 DJ L1 DJ E13 DJ 00060000 00061000 FFF80000 FFF30000 FFFAQOOO FFFBOOOO FFFCOOOO FFFDOOOO FFFEQOOO FEFFannn 0D
31. ebugger to upgrade the debugger Host machine This means a personal computer used to control the emulator system Target MCU This means the microcomputer you are going to debug User system This means a user s application system using the MCU to be debugged User program This means a user s application program to be debugged In this user s manual this symbol is used to show LOW active e g RESET REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 11 of 54 z CENESAS E30A Emulator User s Manual 1 Outline 1 Outline 1 1 Applicable MCU MI16C Family R32C 100 Series 1 2 Product Outline The E30A Emulator ROE00030AKCTO0 is an on chip debugging emulator that makes use of the debugging circuit NSD New Single wire Debugger that is built in the R32C 100 Series MCUs NSD is Renesas original OCD On chip Debugger You can easily perform software verification such as on chip debug or data tuning in the actual operating environment 1 3 System Configuration The E30A emulator is used connecting the target MCU that mounted on the user system This emulator cannot supply the power to the user system Prepare a power supply separately Figure 1 1 shows a configuration of the E30A emulator ER EE AC Adapter a 500 Coaxial Cable Stee CORDE arpa l E r i mum m USB 2 0 High Speed Ne no E30A Emulator User System Host Machine Figure 1 1 E30A emulator system configuration REJ10J1699 0200
32. er Cancel Help Do not show this dialog box again 1 Init File If you have any script that is automatically executed at startup specify that file Click the Refer button to open the Select Script File dialog box Select the desired script file REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 34 of 54 24 NC S AS E30A Emulator User s Manual 2 Setup 2 11 6 Mode tab This tab permits you to select an operating mode and specify the download to flash ROM area and the writer mode Table 2 2 lists the debug functions depending on the operating mode Table 2 2 Debug functions depending on the operating mode Break Execution Data Address Data Address Access Range Comparison Time RAM Measurement Monitor Trace Trace priority Trace MCU execution priority Time Measurement RAM Monitor Writer Made Trace Download to Flash ROM Area Enable Verification Writer Mode File Name OK Cancel Help _ Carcel Hep Do not show this dialog box again 1 Mode Select an operating mode from Trace Time measurement RAM monitor or Writer 2 Download to Flash ROM Area If you want to verify the flash ROM area when downloading the user program select the check box 3 Writer Mode This function is valid when Writer is selected This mode is used when using the E30A emulator as the flash ROM writer Select a load module file to be d
33. er X3 2 54mm pitch 3 pin oscillator Figure 2 3 Circuits of the oscillator circuit bare board OSC 2 REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 21 of 54 134 N S AS E30A Emulator User s Manual 2 Setup 2 4 Connecting the AC Adapter to the E30A Emulator Connect the included AC adapter to the E30A emulator 1 Check to see if the E30A emulator power switch is OFF 2 Connect the DC output cable of the AC adapter to the DC power input connector of the E30A emulator 3 Connect the AC power cable to the AC power input connector of the AC adapter 4 Connect the AC power cable to the outlet A WARNING Warning for the AC Power Cable If the included AC power cable does not fit the outlet do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire The included AC power cable complies with Japanese Electrical Appliance and Material Safety Law and American UL Standard Use an AC power cable which complies with the safety standard of the country The rated voltage for this cable is 125 volts When you connect to a power supply of more than 125V use an appropriate cable for the voltage 9 Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock 2 5 Connecting the E30A Emulator and the Host Machine Connect the E30A emulator to the host machine with the included USB I F cable 1 Connect the A plug of t
34. faults that makes replacement less expensive than repair Unlocatable or unidentified faults 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 5 5 How to Make Request for Repair If your product is found faulty fill in a Repair Request Sheet downloadable from the following URL And email the sheet and send the product to your local distributor http Awww renesas com repair A CAUTION Note on Transporting the Product When sending your product for repair use the packing box and cushion material supplied with this product when delivered to you and specify handling caution for it to be handled as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use conductive polyvinyl supplied with this product usually a blue bag When you use other bags they may cause a trouble on your product because of static electricity REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 52 of 54 RENESAS On chip Debugging Emulator for R32C 100 Series E30A Emulator User s Manual Apr 01 2008 Rev 1 00 Publication Date Jul 01 2008 Rev 2 00 Sales Strategic Planning Div Published by Renesas Techno
35. h speed Also connectable to host computers that support USB 1 1 REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 13 of 54 7PENESAS E30A Emulator User s Manual 1 7 Specifications 1 Outline 1 7 1 External specifications of E30A emulator Table 1 2 lists the external specifications of the E30A emulator Table 1 2 External specifications of E30A emulator Item Description Applicable MCU M16C Family R32C 100 Series Available MCU mode Single chip mode Memory expansion mode Maximum operating frequency 100MHz CPU clock Emulation memory Not available internal flash ROM used as emulation memory Software break Maximum 64 points implemented by instruction replacement Execution address break Hardware break Maximum 8 points execution address data access Shared with trace event time measurement event Only address and R W attribute specifiable for data access break One data comparison breakpoint specifiable in software Combinatorial break point OR status transition in forward direction Trace mode Trace priority MCU execution priority specifiable Trace capacity 8M events Trace priority 512 events MCU execution priority Trace contents Branch source and branch destination conditional branch data access Trace event Maximum 8 points 4 area prefetch address data access Shared with break event time measurement event Start end extraction
36. h the 8 pin socket and that the 8 pin straight pin be used for connection REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 25 of 54 7CENESAS E30A Emulator User s Manual 2 Setup Since a hardware reset can be generated from the E30A emulator the target MCU does not need to be reset Figure 2 6 is a connection diagram showing how to connect the E30A emulator and user system using the option board User system Reset IC Target MCU Coaxial Converter Board User system Target MCU Coaxial Converter Board Figure 2 6 Connection diagram when using the option board REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 26 of 54 24 NE S AS E30A Emulator User s Manual 2 Setup 2 7 Turning ON the Power 2 7 1 Checking the Connections of the Emulator System Verify the connection of the emulator with the AC adapter host machine and user system 2 7 2 Turning ON OFF the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible If you cannot turn on the powers simultaneously turn on the emulator first then the user system Before turning on the power again after shutting off the power wait about 10 seconds IMPORTANT Notes on Power Supply to the User System The emulator does not supply power to the user system Provide power to the user system separately Do not change the voltage of the user system after turning on the power REJ10J169
37. he USB I F cable to the USB I F connector of the host machine 2 Connect the mini B plug of the USB I F cable to the USB I F connector of the E30A emulator IMPORTANT Note on USB I F Cable The USB I F cable included with the product is compliant with USB 2 0 High Speed standard Be sure to use the included USB I F cable for the E30A emulator REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 22 of 54 134 N S AS E30A Emulator User s Manual 2 Setup 2 6 Connecting the E30A Emulator and the User System 2 6 1 Using the Coaxial Connector 1 Processing NSDport Pull up NSDport of the target MCU to Vccl with a 4 7kQ resistor It cannot be connected directly to Vecl and Vcc2 Furthermore be sure that the wiring from NSDport to the connector is shortest possible 2 Mounting part in place Mount the coaxial connector included with the product HRM 300 126B 40 made by Hirose Electric on designated position of the user system 3 Connection procedure Plug the 50 coaxial cable gray included with the product into the E30A emulator and the coaxial connector on the user system Although the cable can be connected over a distance the power supply condition of the user system cannot be monitored Furthermore since only a software reset is possible from the E30A emulator a hardware reset is required when the emulator debugger is started or when a communication error occurs Figure 2 4 is a connection diagram showing how to co
38. he upper cover and secure it with the five screws A CAUTION Note on Replacing the Oscillator Circuit Board When removing the upper cover or replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break Note on Using the Oscillator Circuit Board This product was inspected for the qualification of CE marking under factory shipment conditions with no oscillator circuit boards mounted in place When using an oscillator circuit board for this product please be aware that depending on the oscillation frequency of the oscillator circuit board used radiation EMI standards EN55022 Class A and FCC part 15 Class A may be exceeded REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 20 of 54 134 N S AS E30A Emulator User s Manual 2 Setup 2 3 3 Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like build a desired oscillator circuit on the OSC 2 oscillator circuit bare board not included Figure 2 2 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 3 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC X1 5 08mm pitch 2 pin oscillator X2 2 54mm pitch 2 pin oscillator IC1 Inverter Unbuff
39. icate with MCU while target is executing Specify whether or not to communicate with the MCU when executing the user program Select this check box when executing the STOP or WAIT instruction or when temporarily switching to OCO Although the debug function cannot be used when executing the user program it is possible to press the stop button after restored to the base clock specified in the Clock column IMPORTANT Notes on Clock Setting The emulator sets the PLL related settings before starting up in order to secure a communication path In a user program be sure to set the same value of the PLL related settings specified by the emulator debugger Otherwise the emulator will be out of control According to the MCU specifications the base clock is used for communication with the emulator For this reason the PLL frequency and the base clock frequency dividing ratio cannot be changed when executing the user program To change the base clock temporarily for OCO etc select the Do not communicate with MCU while target is executing check box Once the base clock specified at startup is restored it is possible to press the stop button or perform other operations REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 33 of 54 24 NE S AS E30A Emulator User s Manual 2 Setup 2 11 5 Script Tab This tab permits you to specify a script file Init R32C 100 E30A Emulator MCU Debugging Information Emulator Init File Ref
40. icular 2 Medical equipment where human life is concerned 3 Aerospace 4 Nuclear power control 5 Undersea repeater If you are considering the use of this emulator for one of the above purposes please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s manual and this emulator are copyrighted with all rights reserved by us This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent of us About diagrams The diagrams in this user s manual may not all represent exactly the actual object REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 5 of 54 RENESAS E30A Emulator User s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words In both the user s manual and on the product itself several icons are used to insure proper handling of this produc
41. ime capability becoming impaired because the debug monitor program intervenes IMPORTANT Note on Overhead for RAM Monitor Function When using RAM monitor function it returns to the user program when the debug monitor sends data after debug interrupt occurs In the case of Xy 8MHz PLL 128MHz 16 times BASE 64MHz and CPU 64MHz for example it takes 6us to return to the user program after debug interrupt occurs REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 42 of 54 134 N S AS E30A Emulator User s Manual 4 Hardware Specifications 4 Hardware Specifications 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of the applicable target MCU Item Description Applicable MCU M16C Family R32C 100 Series Usable MCU mode Single chip mode Memory expansion mode Maximum operating frequency 100MHz CPU clock Supported ROM RAM capacity Internal ROM RAM capacity of the MCU 4 2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below When debugging the MCU using this product be careful about the following precautions IMPORTANT Note on the Internal PLL of the MCU The emulator sets PLL related settings which you have selected in the Emulator tab of the emulator debugger s Init dialog box before it starts up in order to secure a communication path In a
42. ing MCU execution priority the execution speed of the user program is not affected Notes on the Simultaneous Use of Multiple Functions 9 Data comparison breaks and RAM monitor cannot be used at the same time If event E5 is set for a data access break the RAM monitor functions cannot be specified If the RAM monitor function needs to be used event E5 cannot be specified for a data access break 9 Be aware that if a run time debug RAM monitor or data comparison break is used during a branch trace in which branch addresses are recorded the recorded information will include branch information debug monitor program processing address which the user program does not generate Note on Debugging in the Stop Mode or Wait Mode 9 Do not shift the target MCU to stop mode or wait mode when using the emulator Otherwise emulation operation cannot be guaranteed Note on MCU Reset Software reset and hardware reset cannot be used during the user program execution If the MCU is reset during the user program execution the emulator recovers communication with the MCU and the user program stops in a reset state Notes on Debugging in CPU Rewrite Mode To debug a program in CPU rewrite mode check the box Debug the program using the CPU Rewrite Mode in the MCU tab of the Init dialog box When the debugging in CPU rewrite mode is enabled software breakpoint to the internal ROM area cannot be used 9 Do not stop the user program
43. laps the stack and an area on which DMA operates Notes on Power Supply to the User System The emulator does not supply power to the user system Provide power to the user system separately Do not change the voltage of the user system after turning on the power Note on Downloading Firmware Do not shut off the power while downloading the firmware If this happens the product will not start up properly If the power is shut off unexpectedly startup the emulator in maintenance mode and redownload the firmware Note on Quitting the Emulator Debugger To restart the emulator debugger always shut power to the emulator and user system off once and then on again Note on Event Settings Events are used for breaks trace and time measurement in common For breakpoint settings in the source window events are given priority in order to reduce the number of times the flash ROM is rewritten Note that the unused events are used in order of followings Extraction start event EO end of range event E4 and data comparison event E5 are assigned lower priorities E7 gt E6 gt E3 gt E2 gt El gt E5 gt E4 gt E0 Notes on the Software Breaks Software breaks execute the tool only BRK2 command instead of instruction code to generate a BRK interrupt Be aware that when trace results are referred to in bus display you will see BFh displayed for instruction fetches performed at the addresses that hav
44. les office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries E30A Emulator User s Manual Preface Preface The E30A Emulator ROE00030AKCTO0 is an on chip debugging emulator that makes use of the debugging circuit NSD New Single wire Debugger that is built in the R32C 100 Series MCUs NSD is Renesas original OCD On Chip Debugger All the components of this product are shown in 1 4 Package Components page 13 If there is any question or doubt about this product contact your local distributor This user s manual mainly describes specifications of the E30A Emulator and how to setup it For details on the related product such as an emulator debugger refer to each product s user s manual The related manuals for using this product are listed below You can download the latest manuals from the Renesas Tools homepage http www renesas com tools Related manuals Integrated development environment High performance Embedded Workshop online help Emulator debugger R32C 100 E30A emulator debugger online help C compiler NC100 C Compiler User s Manual Assembler AS100 Assembler User s Manual REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 3 of 54 RENESAS E30A Emulator User s Manual Important Important Before using this product be sure to read this user s manual carefully Keep this user s manual and refer to this when yo
45. logy Corp Edited bv Microcomputer Tool Development Department y Renesas Solutions Corp 2008 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan E30A Emulator User s Manual 424 N SAS RenesasTechnology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
46. nd the RAM on the user system If breakpoints in the internal flash ROM of the MCU are specified the need arises for instruction rewrite writeback processing in block units 3 1 2 Execution Address Break This is a kind of event break by the internal debug circuit of the MCU It specifically is a pre execution break that causes execution of the user program to stop at a specified address Up to 8 break points can be set used for hardware breaks trace points and time measurement events in common There are no limitations on specifiable areas Since there is no need for instruction rewrite writeback processing the response speed is fast nternal address match interrupts of the MCU are unused 3 1 3 Hardware Break This is a kind of event break by the internal debug circuit of the MCU It specifically is a post execution break that causes execution of the user program to stop upon detecting data access at a specified address Up to 8 break points can be set used for execution address breaks trace points and time measurement events in common Youcan set a specified address range using 2 events You can set three conditions e g read write and read write Only one instance of data comparison break can be specified event E5 only Several bytes from the beginning of the MCU s internal RAM 8 bytes at the addresses 0400h 0407h are used for data comparison by the debug monitor IMPORTANT Note on Overhe
47. nnect the E30A emulator and user system using the coaxial connector User system Figure 2 4 Connection diagram when using the coaxial connector A CAUTION Caution for Insertion Removal of the Coaxial Cable Q When inserting or removing the coaxial cable be aware not to rotate it The center core of the coaxial cable may be broken REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 23 of 54 134 N S AS E30A Emulator User s Manual 2 Setup 2 6 2 Using the Coaxial Converter Board ROE00080ACKZO0O 1 Processing NSDport Pull up NSDport of the target MCU to Vccl with a 4 7kQ resistor It cannot be connected directly to Vecl and Vcc2 Furthermore be sure that the wiring from NSDport to the connector is shortest possible 2 Mounting part in place Mount the 2 54mm pitch 3 pin socket included with the product PIC FSO03 G R made by Honda Tsushin Kogyo on designated position of the user system 3 Connection procedure Plug the 50 coaxial cable included with the product gray into the E30A emulator and CN1 on coaxial converter board Fit CN2 on coaxial converter board into the 3 pin socket on user system It can be turned 180 degrees as it is fitted into place Although the cable can be easily removed inserted and can be connected over a distance the power supply condition of the user system cannot be monitored Furthermore since only a software reset is possible from the E30A emulator a hardware re
48. ons to Be Taken for Turning On the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible If you cannot turn on the powers simultaneously turn on the emulator first then the user system Before turning on the power again after shutting off the power wait about 10 seconds Cautions to Be Taken for Handling This Product Use caution when handling the main unit Be careful not to apply a mechanical shock Do not touch the connector pins of the emulator main unit and the target MCU connector pins directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Exit the emulator debugger and shut OFF the emulator main unit and user system 2 When turning the power ON again wait more than 10 seconds Then start up the emulator debugger REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 8 of 54 RENESAS E30A Emulator User s Manual Contents Contents Page Ee EE E o s 3 leentietc ES 4 Precautions TOF Safety E EU M M M 6 Gomen ea seca avec 9 User BeglSltallQIT
49. ownloaded Click Add to open a dialog box to select a load module file Multiple files can be selected To cancel the selection select the file and click Remove If you want to enable the verification and checksum functions select the check box You cannot debug the program in writer mode Restart or terminate the emulator debugger after writing the program REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 35 of 54 7CENESAS E30A Emulator User s Manual 2 Setup 2 12 Resetting the User System When using the coaxial connector or the coaxial converter board for connecting the E30A emulator and user system by clicking OK in the Init dialog box the dialog box shown below will be displayed When using the option board the dialog is not displayed because the target MCU is reset in hardware from the emulator R32C 100 E30A Emulator A Please turn on the power of the target or reset MCU If the user system has already been powered on reset the user system If the power for the user system is turned off turn the power on Click OK IMPORTANT Notes on Power Supply to the User System The emulator does not supply power to the user system Provide power to the user system separately Do not change the voltage of the user system after turning on the power REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 36 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 13 Entering ID Code If th
50. ple S pisassEvaLv PROHIBITED means A FORCIBLE ACTION ae UNPLUG THE POWER CABLE FROM THE RECEPTACLE REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 6 of 54 RENESAS E30A Emulator User s Manual Precautions for Safety Z WARNING Warnings for AC Power Supply If the included AC power cable does not fit the outlet do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire The included AC power cable complies with Japanese Electrical Appliance and Material Safety Law and American UL Standard Use an AC power cable which complies with the safety standard of the country The rated voltage for this cable is 125 volts When you connect to a power supply of more than 125V use an appropriate cable for the voltage 9 Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock This product is connected to signal ground and frame ground If your developing product is transformless not having isolation transformer of AC power this may cause electric shock Also this may give an unrepairable damage to this product and your developing one While developing connect AC power of the product to commercial power through isolation transformer in order to avoid these dangers If other equipment is connected to the same branch circuit care should be taken not to overload the circuit If you smell a strange odor hear an
51. ributor If you have replaced an emulator main unit or emulation probe rewrite an emulator name and serial number in the text file you filled in earlier to register your new hardware products Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry out the user registration For more information about user registration please contact your local distributor REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 10 of 54 7PENESAS E30A Emulator User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows E30A Emulator ROEO0030AKCT00 This means the on chip debugging emulator this product for the R32C 100 Series MCUs Emulator system This means an emulator system built around the E30A emulator The E30A emulator system is configured with an E30A emulator main unit the R32C 100 E30A emulator debugger host machine and user system R32C 100 E30A emulator debugger This means an emulator software which you can control the emulator from a host machine through the USB interface Firmware This means a program stored in the flash ROM of the emulator It analyzes contents of communication with the emulator debugger and controls the emulator hardware This program is downloadable from the emulator d
52. rican FCC Standard FCC part 15 Class A REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 14 of 54 124 NE S AS E30A Emulator User s Manual 1 Outline 1 7 2 Specifications of the AC Adapter Table 1 3 lists the specifications of the included AC adapter Table 1 3 Specifications of the included AC adapter Item Description AC input voltage range AC 100 240 V 50 60Hz single phase Output power 36W DC output voltage current 12 0V 3 0A DC output polarity EIAJ TYPE IV inner side plus outer side minus Outside dimension except the Width 99 5 mm depth 49 5 mm height 25 5 mm protruding part Weight Approx 200g 1 8 Names and Functions of Each Part of the Emulator Figure 1 2 shows the names and functions of each part of the emulator The connector followed by the differential connector is prepared for future expansion It cannot be used because of not working now DC powerinput Ss elie BE ee aeNes x n iS Option 8 a connector Power switch 2 a X 500 coaxial g 4 Q 3OA svros O connector 256202 O5O O62 g Op CS amp t Differential 620 085 gt a connector o96g07o 9 8 PERS USB I F 5 660 6 connector Q 202 f t Maintenance System status Target status LED switch LEDs Figure 1 2 Names and fun
53. ristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas Please contact a Renesas sa
54. s been upgraded When the emulator debugger has been upgraded If downloading firmware is not completed when the power is unexpectedly shut down during a download from the emulator debugger the status LEDs show abnormal and the emulator debugger may not start up normally Download firmware in the special mode called maintenance mode as explained here following 1 Within 2 seconds of activating power to the emulator press the maintenance switch on it to start maintenance mode The System Status SAFE LED begins to blink 2 Start up the emulator debugger in maintenance mode When settings in the Init dialog box are complete the dialog which urges to download the firmware will appear Download firmware following messages Required time for downloading the firmware is about 15 seconds REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 29 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 11 Starting Up and Initializing the Emulator Debugger 2 11 1 Switching the Session When you finish creating a program and start debugging switch the session of the High performance Embedded Workshop Select SessionR32C 100 E30A Emulator from the dropdown list in Standard toolbar ES Debug Y SessionR32C_100_E304_ X ge R32C 100 E30A emulator debugger starts up and the Init dialog box appears When you finished setting of each tab click OK REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 30 of 54 7PENESAS E30A Emulator User s Manual 2
55. set is required when the emulator debugger is started or when a communication error occurs Figure 2 5 is a connection diagram showing how to connect the E30A emulator and user system using the coaxial converter board User system Coaxial Converter Board Figure 2 5 Connection diagram when using the coaxial converter board REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 24 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 6 3 Using the Option Board ROE000830ACKZ10 1 Processing NSDport Pull up NSDport of the target MCU to Vccl with a 4 7kQ resistor It cannot be connected directly to Vecl and Vcc2 Furthermore be sure that the wiring from NSDport to the connector pin 4 is shortest possible 2 Mounting part in place Mount the 2 54mm pitch 8 pin socket included with the product PIC FS08 G R made by Honda Tsushin Kogyo on designated position of the user system Furthermore mount the 2 54mm pitch 8 pin straight pin included with the product PIC MSA08 2G made by Honda Tsushin Kogyo on CN4 solder side of the option board 3 Wiring of Vecl and Vcc2 Vccl pin 1 is used to monitor the power supply condition of the user system and as power supply for the RST and RSTMSK output buffers Vcc2 pin 2 monitors the power supply condition of the user system 4 Wiring of RST and RSTMSK Since the target MCU is reset in hardware from the E30A emulator connect RST signal pin 6 to the RESET terminal of the
56. t With this product as the power voltage cannot be change after powering on the user system the low voltage detection interrupt cannot be used with this product Notes on Using the Watchdog Timer A user program can be debugged by using the MCU s internal watchdog timer if so desired When the watchdog timer is active the debug monitor program refreshes it as necessary Watchdog timers connected external to the MCU cannot be used Make sure those watchdog timers are disabled while the emulator is in use Note on the Lock Bits for the MCU Internal Flash ROM The lock bits for the blocks whose contents have been altered by downloading a user program or setting software breakpoints are in an unlocked state Note on Protect Bit 2 PRC2 Protect bit 2 PRC2 behaves in such a way that when the bit is set to 1 to remove write protect and then a write to any address is executed the bit is write protected again Note that the bit cannot be cleared by a software operation while single stepping a program or manipulating the memory window Note on RDY Input 9 Be sure to input L to pin RDY of the user system during the user program executing when the RUN status LED is lit Inputting L to pin RDY during the user program stopping may cause a malfunction of the emulator Note on HOLD Input 9 Be sure to input L to pin HOLD of the user system during the user program executing when the RUN status LED is li
57. t Inputting L to pin HOLD during the user program stopping may cause a malfunction of the emulator Note on the MCU Used in Debugging 9 During debugging the MCU s internal flash ROM is frequently rewritten as a user program is downloaded or software breakpoints are set or cleared Do not use any MCU in product once it was used in debugging Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system and make final confirmation with a CS Commercial Sample version MCU REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 44 of 54 zCENESAS E30A Emulator User s Manual 4 Hardware Specifications 4 3 Notes on Using This Product Notes on using this product are listed below When debugging the MCU using this product be careful about the following precautions IMPORTANT Notes on the Resources of the MCU Used by the Emulator When you are using a data comparison break event E5 only the E30A Emulator uses several bytes from the beginning of the MCU s internal RAM 8 bytes at the addresses 0400h 0407h for data comparison by the debug monitor These bytes cannot be used in a user program The E30A Emulator uses approximately 1 Kbyte of the internal RAM as needed for example to download a user program Since the memory contents are saved in advance you do not need to be specifically concerned except that you cannot specify any area that over
58. t and also to prevent injuries to you or other persons or damage to your properties This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read this chapter before using this product This symbol represents a warning about safety It is used to arouse caution about a potential AN danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observe the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound AN D ANGER unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING indicates a potentially dangerous situation that will cause death or heavy wound AN WARNING unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or a AN CAUTION medium degree injury unless it is avoided C AUTI ON CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it is avoided IM P O RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate Z means WARNING or CAUTION d CAUTION AGAINST AN ELECTRIC SHOCK Gmeans PROHIBITION Exam
59. tion REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 17 of 54 7PENESAS E30A Emulator User s Manual 2 Setup 2 1 Flowchart of Starting Debugging 2 Setup The procedure for starting the debugging is shown in Figure 2 1 For details refer to each section hereafter Check the package components First time only Install the emulator debugger First time only Change the settings of the hardware First time only Connect the AC adapter to the E30A First time only emulator Connect the host machine to the E30A First time only emulator Connect the E30A emulator to the user First time only system Turn on the emulator Install the USB device driver First time only Check the LED display of the emulator Download the firmware First time only Start up the emulator debugger and set the Init dialog Reset the user system Enter the ID code Set the operating environment of the emulator debugger Start debugging Refer to 1 4 Package Components page 13 Install the emulator debugger to the host machine Change the settings of the E30A emulator when necessary Connect the AC adapter to the E30A emulator Connect the host machine to the E30A emulator with the USB interface cable Connect the E30A emulator to the user system with the 50Q coaxial cable gray Turn on the E30A emulator and user system The USB device driver will be installed automatically Check that the S
60. u deae Ea re be Pes dap a e Rea Pene uad 43 4 2 Differences between the Actual MCU and Emulator sss 43 4 3 Notes on Using This PrOGUCGL ii corto eei Dei i iactu ue Ra dee e Pas EE ea cepta t due baud 45 4 4 Connection DIaQgralm toe o a pe x ERE ERR etae tu ga eREN ute EXER Pe pas Ea neue XR eX REE du ER XR F NERA RARO 47 4 5 Signal Assignments of the Connectors sssssssssssssssses esent nennen nenne en nennen sensn nnne nene 48 4 6 External Dimensloris iiie eate rta beer ir re red Bl ure b dne vk ad de ul qe ik dne qa bed ue vk cea ded Tere dne viaa pena 49 5 Maintenance and Guarantee ssssssssssssssssesseeeee seen nn estne nnns sinn A EAE E a aa ns ss nnns entere 51 5 1 User n zie ES 0 RR 51 5 2 Mailtenarnce iere deer t dpt debe RR ue P EE eb cet AR EA el dL apro een dee ae a RARE ARE E Ee net e edad 51 SECRET UI REED TEE 51 5 4 Repar PROVISIONS ie x cocto rient Ege YER DEN pu abcewayy scented ance sues den P aksber x reser xL aud xA date bday anceuayessconens at 52 5 5 How to Make Request for Repair c cccccececeeeceeneeeeeeeeeeeaeceeaeeeeaeeeceaeceeaaesaeeecaaeseeaaesgeeeseaeesaeseeaaeeseneesaas 52 REJ10J1699 0200 Rev 2 00 Jul 01 2008 Page 9 of 54 RENESAS E30A Emulator User s Manual User Registration User Registration When you install debugger software a text file for user registration is created on your PC Fill it in and email it to your local dist
61. u have questions about this product Emulator The emulator in this document refers to the E30A emulator manufactured by Renesas Technology Corp The emulator herein does not include the customer s user system and host machine Purpose of use of the emulator This emulator is a device to support the development of a system that uses the M16C Family R32C 100 Series of Renesas 32 bit single chip MCUs It provides support for system development in both software and hardware This emulator is not guaranteed for use on production lines Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of use For those who use this emulator This emulator can only be used by those who have carefully read the user s manual and know how to use it Use of this emulator requires the basic knowledge of electric circuits logical circuits and MCUs When using the emulator 1 This product is a development supporting unit for use in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your own risk that it can be put to practical use by performing integration test evaluation or some experiment else 2 In no event shall Renesas Solutions Corp be liable for any consequence arising from the use of this product 3 Renesas Solutions Corp strives to renovate or provide a workaround for produ
62. u to measure a program execution time of up to 67 1 s when operating at 64MHz 3 3 2 Interval Time Measurement You can measure a program execution time between data access by trace information Data access trace information address data data size and read write is detected as the measurement start event and measurement end event inside the emulator The 40 bit asynchronous clock counter inside the emulator enables the interval time measurement of more than 24 hours IMPORTANT Note on Interval Time Measurement Event Interval time measurement compares the data access trace information output by an MCU in the emulator and detects start end event If the number of the specified data access is large it takes a long time for the trace output and affects the time measurement error and MCU execution In the case of Xw 8MHz PLL 128MHz 16 times BASE 64MHz for example it takes Sus to output the data access trace information When data access of less than Sus occurs an inaccuracy depending on the output time occurs If this occurs often MCU execution will be delayed A write only setting with the fewest number of event points possible is recommended 3 4 RAM Monitor Function Pseudo RAM monitor which is realized by the software with using event E5 can be used Data is acquired in byte word unit by the interval specified in Data acquisition interval in MCU running state in the Init dialog box This function results in the realt

Download Pdf Manuals

image

Related Search

Related Contents

  Pfister BTB-D2KK Installation Guide  DeckoRail 72001 Instructions / Assembly  Single Packaged Air Conditioner  Add-On Computer Peripherals (ACP) 100Base-TX(RJ45) to 100Base-XU(ST), 1310/1550nm  Water Quality Model Version 1.00  Hotpoint ARXXL105 User's Manual  Montageanleitung  Installation Instructions and User Guide Thermostatic  PROPRIÉTÉS : AVANTAGE DU SYSTÈME à BIDON : MODE D  

Copyright © All rights reserved.
Failed to retrieve file