background image

E30A Emulator User

’s Manual 

4. Debugging Functions 

R20UT0422EJ0501    Rev.5.01 

 

Page 44 of 65 

Mar 15, 2016 

 

4. Debugging Functions 

4.1 Break Function 

4.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 256 break points can be set. 

-  You can specify breakpoints in the internal RAM of the MCU, the internal flash ROM of the MCU, and 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. 

 

4.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). 

-

 

Since there is no need for instruction rewrite/writeback processing, the response speed is fast. 

 

4.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). 

-

 

You can 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 program. 

These bytes cannot be used in the user program when using a data comparison break. 

 

Notes on Execution Address Break and Hardware Break: 

 

Do not set breaks in the area designated below. This restriction is due to specifications of the MCU’s 
internal debug circuit. 
0100 0000h 

– FEFF FFFFh 

 

Note on Data Comparison Break: 

 

For  data  comparison  break,  the  debug  monitor  program  compares  the  data  after  the  debug  interrupt 
occurs at the specified address to determine whether or not to cause a break. Using this function results 
in  the  realtime  capability  becoming  impaired  because  the  debug  monitor  program  intervenes.  Also,  in 
order  to  complete  processing  of  the  debug  monitor  program  as  fast  as  possible,  do  not  operate  the 
MCU’s internal DMA during the processing. 
In the case of X

IN

 8MHz, PLL 128MHz (16 times), BASE 64MHz and CPU 64MHz, for example, it takes 

6

μs to return to the user program after the data comparison results in a mismatch. 

 

 

4.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 E0 all have occurred in that order. 

Содержание R0E00030AKCT00

Страница 1: ...ts information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronic...

Страница 2: ...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 Electroni...

Страница 3: ...fications 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...

Страница 4: ...be put to practical use is entirely your own responsibility and should be based on evaluation of the device on which it is installed and other experiments 2 In no event shall Renesas Electronics Corp...

Страница 5: ...efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or this user s manual may be changed without prior notice About rights 1 We assume...

Страница 6: ...bed here WARNING WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it is avoided CAUTION CAUTION indicates a potentially dangerous situation that will cau...

Страница 7: ...If other equipment is connected to the same branch circuit care should be taken not to overload the circuit When installing this equipment insure that a reliable ground connection is maintained If yo...

Страница 8: ...may cause a break Do not tape the flexible cable or apply adhesives to secure the cable The shielding material on the surface of the cable may come off Caution to Be Taken for System Malfunctions If...

Страница 9: ...nstalling the USB Device Driver 29 2 9 Checking the Status LEDs Display 30 2 10 Downloading Firmware 30 3 Starting Up the Emulator Debugger 31 3 1 Switching the Session 31 3 2 Initial Setting of the E...

Страница 10: ...mulation 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...

Страница 11: ...the same application In addition it supports version management Emulator debugger This means a software tool that is started up from the High performance Embedded Workshop and controls the emulator a...

Страница 12: ...Coaxial connector HRM 300 126B 40 Hirose Electric 1 Coaxial converter board R0E00030ACKZ00 coaxial connector and 3 pin connector premounted 1 Connector for coaxial converter board PIC FS03 G R Honda T...

Страница 13: ...a personal computer to control the emulator by USB interface 1 3 Operating Environment IBM PC AT compatibles Windows 7 64 bit editions 1 Windows 7 32 bit editions 1 Windows Vista 32 bit editions 1 2...

Страница 14: ...with break event time measurement event Start end extraction event specifiable Time measurement Execution time between Go Stop 32 bit CPU clock counter in MCU Section time 3 points between data acces...

Страница 15: ...cluded 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 36 W DC output voltage current 12 0 V 3 0 A...

Страница 16: ...fications Waste Electrical and Electronic Equipment WEEE Directive 2012 19 EU 1 6 2 United States Regulatory notices on Electromagnetic compatibility This product complies with the following EMC regul...

Страница 17: ...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 Orange ON Power is supplied to the emulator OFF...

Страница 18: ...intenance mode for downloading firmware In maintenance mode you can download firmware forcibly For details refer to 2 10 Downloading Firmware 1 7 7 50 Coaxial Connector This included 50 coaxial cable...

Страница 19: ...ct the E30A emulator to the user system First time only Connect the E30A emulator to the user system with the 50 coaxial cable gray Turn on the emulator Turn on the E30A emulator and user system Insta...

Страница 20: ...hout 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...

Страница 21: ...tory 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 co...

Страница 22: ...re 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 VC...

Страница 23: ...or fire The included AC power cable complies with 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...

Страница 24: ...luded 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 m...

Страница 25: ...nto 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 ca...

Страница 26: ...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 disab...

Страница 27: ...er system using the option board E30A Emulator User system Reset IC O D Output 8 GND 7 RSTMSK 6 RST 5 GND 4 NSD 3 GND 2 Vcc2 1 Vcc1 RESET 4 7k 4 7k 22k Target MCU Vcc1 Vcc2 NSD GND RESET Option Board...

Страница 28: ...wer 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 o...

Страница 29: ...o not this time and click Next Click Next The USB driver will be installed automatically Click Finish to exit Figure 2 7 Installation of USB device driver for Windows XP Note on USB Port Change If you...

Страница 30: ...and the firmware is downloaded When you use this product for the first time When the firmware has been upgraded When the emulator debugger has been upgraded If downloading firmware is not completed w...

Страница 31: ...01 Page 31 of 65 Mar 15 2016 3 Starting Up the Emulator Debugger 3 1 Switching the Session When you finish creating a program and start debugging switch the session of the High performance Embedded Wo...

Страница 32: ...sh and a work area for the debug monitor program 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...

Страница 33: ...not be specified Areas overlapping the interrupt stack Areas which overlap with the interrupt stack to be used in the user program cannot be specified Also the address 0400h cannot be specified since...

Страница 34: ...he 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 i...

Страница 35: ...ngs specified by the emulator debugger Otherwise the emulator will be out of control The divide ratios of the CPU clock and peripheral clock can be changed in the user program The XIN clock is used to...

Страница 36: ...Specify whether or not to communicate with the MCU when executing a user program While the user program is running the emulator communicates with the MCU for example to check the operating status of t...

Страница 37: ...asurement Yes Yes Yes RAM Monitor Yes Yes Yes Yes Writer 1 Mode Select an operating mode from Trace Time measurement RAM monitor or Writer Trace You can record the execution history of the user progra...

Страница 38: ...program was downloaded in writer mode When operating in other than the writer mode no ID code is written into the flash memory even when the program is downloaded In that case an ID code consisting en...

Страница 39: ...flash ROM into the dialog box successively Table 3 2 shows the ID code storage area Enter ID1 ID7 successively in that order and then click OK Unless all IDs match the emulator debugger will not start...

Страница 40: ...ng 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...

Страница 41: ...ory is recognized based on information in the USD file that you register This file defines the manner and other details of how the flash memory is connected with the user system Click the Add button a...

Страница 42: ...ry are automatically displayed in the list When the checkbox in the Overwrite column is checked the selected sector is overwritten merged when the program is downloaded To change per sector settings e...

Страница 43: ...ort 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...

Страница 44: ...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 begin...

Страница 45: ...nformation on branch sources and destinations information on conditional branches information on data accesses or mixed information of branch sources and destinations and data accesses Information on...

Страница 46: ...as the measurement start event and measurement end event inside the emulator The 40 bit asynchronous clock counter inside the emulator enables the section time measurement of more than 24 hours As a c...

Страница 47: ...ogram intervenes Also in order to complete processing of the debug monitor program as fast as possible do not operate the MCU s internal DMA during the processing For the RAM monitor function the emul...

Страница 48: ...ashing The USB cable may not be connected properly Check the condition of the cable connection The USB driver may not be installed properly Reinstall the USB driver 5 1 3 The Emulator Debugger Cannot...

Страница 49: ...iry For prompt response please specify the following information 1 Operating environment MCU Type name R5F64_ _ _ Xin frequency ___________ MHz Generated Internal PLL frequency ___________ MHz CCR val...

Страница 50: ...it under normal condition based on its user s manual it will be repaired or replaced free of cost 2 However if the following failure or damage occurs to the product under warranty the product will be...

Страница 51: ...less expensive than repair Faults that are not locatable or identifiable 3 Expiration of the repair period When a period of one year has elapsed after production of a given model ceased repairing prod...

Страница 52: ...1 lists the specifications of target MCUs which can be debugged with this product Table A 1 Specifications of the applicable target MCU Item Description Applicable MCU M16C Family R32C 100 Series Usa...

Страница 53: ...ower Furthermore the internal flash ROM cannot be rewritten during a low speed clock operation Therefore do not use software breaks Notes on Interrupt Stack The E30A Emulator uses an interrupt stack o...

Страница 54: ...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 th...

Страница 55: ...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 de...

Страница 56: ...cannot be specified for a data access break 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 inf...

Страница 57: ...re 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 exi...

Страница 58: ...of the E30A emulator This connection diagram shows the interface section OPTION E30A emulator 1 9 UVcc1 UVcc1 2 UVcc1 8 UVcc2 4 RST 6 RSTMSK 10 UCON 3 5 7 GND GND GND 100k 1k 100k 1k 100k 1k 100k 1k...

Страница 59: ...tor Table E 2 lists the signal assignments of the oscillator circuit board connector Table E 2 Signal assignments of the oscillator circuit board connector No Signal Description J1 1 V50 5 0 V power s...

Страница 60: ...l Dimensions R20UT0422EJ0501 Rev 5 01 Page 60 of 65 Mar 15 2016 Appendix F External Dimensions 1 E30A Emulator Figure F 1 shows external dimensions of the E30A emulator 136 3 144 0 36 8 Unit mm Figure...

Страница 61: ...F 2 shows external dimensions of the coaxial converter board 23 5 17 0 11 5 7 5 User System 3 0 3 2 3 0 Unit mm Figure F 2 External dimensions of the coaxial converter board 3 Option board Figure F 3...

Страница 62: ...Revision History Rev Date Description Page Summary 5 01 Mar 15 2016 16 Regulatory Compliance Notices changed...

Страница 63: ...E30A Emulator R0E00030AKCT00 User s Manual Publication Date Apr 01 2008 Mar 15 2016 Rev 1 00 Rev 5 01 Published by Renesas Electronics Corporation...

Страница 64: ...135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 SALES OFFICES http www renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2801 Scott B...

Страница 65: ...E30A Emulator R0E00030AKCT00 User s Manual R20UT0422EJ0501...

Отзывы: