background image

E2, IE850A 

4.    Functional overview 

R20UT4140EJ0300  Rev.3.00 

 

Page  23  of  41 

Oct.09.20 

 

4.2 

Software tracing function

 

Devices of the RH850 family support debugging instructions for the output of software trace data. Table 4-3 

shows the output destinations of software trace data and supported emulators. 

Table 4-3    Software Tracing and Supported Emulators 

Output Destination of Software Trace Data 

Supported Emulator 

Internal trace memory (trace RAM of the target device) 

E2 emulator and IE850A 

External tracing (Aurora tracing) interface 

IE850A 

LPD output 

E2 emulator 

 

Unlike conventional tracing, the software tracing function does not cater for the setting of events or conditions 

so that trace data are output when the settings match the results of program execution; instead, this function 

helps the user to embed debugging instructions in the program to be executed as checkpoints or for the 

purpose of the output of specific information or register values and output of the history execution as trace 

data. Make use of this function as a new way of debugging. 

The E2 emulator provides trace data for display and supports LPD output. We also provide several types of 

helpful solution functions for the E2. For details, refer to the relevant application notes on the following Web 

site. 

https://www.renesas.com/us/en/products/software-tools/tools/emulator/e2.html

 

For details of the debugging instructions and the numbers of clock cycles required to execute them, refer to 

the RH850 User’s Manual: Debugging Instructions. Table 4-4 gives an overview of these instructions. 

Note that the debugging instructions embedded in a program do not affect the CPU internally and there is no 

output of software trace data unless an emulator is connected. 

Table 4-4    Debugging Instructions for Software Tracing 

Debugging Instruction 

Function 

DBCP 

Outputs the current PC value as software trace data. 

DBTAG imm10 

Outputs a 10-bit immediate (imm10) value as software trace data. 
Output of the PC value is also selectable. 

DBPUSH rh-rt 
(General-purpose registers are 

specified as rh 

 rt (in ascending 

order).) 

Outputs the register numbers and values of general-purpose registers from rh 

to rt as software trace data. 
Output of the PC value is also selectable. 

 

 

 

Содержание IE850A

Страница 1: ...on contained in these materials including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp with...

Страница 2: ...nics with respect to maximum ratings operating power supply voltage range heat dissipation characteristics installation etc Renesas Electronics disclaims any and all liability for any malfunctions fai...

Страница 3: ...nal trigger input and output 16 3 Procedure for Connecting the Emulator to the User System 17 3 1 When a separate power supply is used for the user system 17 3 2 When power is supplied to the user sys...

Страница 4: ...measurement solution are also available in addition to the basic debugging facilities The IE850A supports the external tracing Aurora tracing interface of MCUs of the RH850 family and has a large cap...

Страница 5: ...not available Can be connected 2 1 1 14 pin connector Table 2 2 shows the recommended connectors for connection of the E2 emulator When other components are mounted around the connector do not mount...

Страница 6: ...e target device is an RL78 microcontroller CAUTION Note on connector insertion and removal 1 When connecting or disconnecting the user system interface cable and the connector conversion adapter grasp...

Страница 7: ...e 2 4 Recommended 34 pin Connector for External Tracing Manufacturer Type Number 34 pin connector SAMTEC ASP 137973 01 When designing a user system on which a 34 pin connector is to be mounted refer t...

Страница 8: ...o GND of the user system These pins are used for electrical GND and to monitor connection with the user system by the E2 emulator 2 The EVTO pin provides for the output of event signals from the devic...

Страница 9: ...Software It is simply referred to as MULTI in the remainder of this document This section describes examples of recommended connections between the 14 pin connector for the E2 emulator and the target...

Страница 10: ...y vary among target devices Refer to the user s manual for the target device you are using for the actual pin names Proceed with appropriate processing for pins of target devices which do not require...

Страница 11: ...ignal lines Use GND to apply a guard ring for the wiring which runs between the 14 pin connector and target device Do not route high speed signal lines parallel to each other or allow them to cross ea...

Страница 12: ...l lines Use GND to apply a guard ring for the wiring which runs between the 14 pin connector and target device Do not route high speed signal lines parallel to each other or allow them to cross each o...

Страница 13: ...or and possible other components Use the power source for the power domain of the RESET pin of the target device as the destination voltage for pulling up Pin 13 RESET of the E2 emulator is pulled up...

Страница 14: ...use this function if power is being separately supplied to the user system Attempting to do so might break the E2 emulator Do not use this function for a user system which draws a current of 200 mA o...

Страница 15: ...nment where there is a difference in potential between the GND of the user system and that of the host PC use the isolator R0E000010ACB20 which is separately available from Renesas 2 3 8 Small connect...

Страница 16: ...n 13 on the E2 emulator to the GND on the user system via one of the test leads which are provided with the E2 emulator Then according to the pin assignments shown in Figure 2 8 connect the expansion...

Страница 17: ...machine and turn on the emulator Connect the emulator and the host machine with a USB interface cable The emulator is turned on by connecting the USB interface cable 4 Turn on the user system Turn on...

Страница 18: ...user system is turned off 2 Connect the user system Connect the emulator and user system with a user system interface cable 3 Connect the host machine and turn on the emulator Connect the emulator and...

Страница 19: ...d state after a reset Break Software break In ROM and RAM areas combined 2000 points Hardware break 12 points including those used for both execution and CPU access conditions 8 points only for execut...

Страница 20: ...ll stop full break overwriting ring buffer delay stop and delay break Perfor mance mea sure ment Time 1 Measurement section From run to break Item measured Execution time Performance 32 bit counters T...

Страница 21: ...thin user programs Debugging startup register DBGIFR0 Initial value 0000 0000H Address FF0B 00E0H Download function Available Security ID authentication Available Debugging when ICUM is enabled Availa...

Страница 22: ...ace full stop mode Trace full break mode External trigger input output Input signal channels E2 expansion interface 2 ch 0 pin 11 ch 1 pin 12 Output signal channels E2 expansion interface 2 ch 0 pin 9...

Страница 23: ...e of this function as a new way of debugging The E2 emulator provides trace data for display and supports LPD output We also provide several types of helpful solution functions for the E2 For details...

Страница 24: ...s for execution and 2 points for data access ARU ATOM TIM and TBU 2 points for data access Available function Break trace Combination of events Tracing when you are using a device that includes trace...

Страница 25: ...sed for debugging in mass production This is because writing to the flash memory of such devices has already proceeded during debugging so we cannot guarantee the number of times rewriting of the flas...

Страница 26: ...s shown below ID of the Target Device Notation for CS Notation for MULTI OCD ID OCD ID id Customer ID Customer ID csid Data Flash ID Data Flash ID dfid Serial Programmer ID Serial Programmer ID spid C...

Страница 27: ...tialization of the RAM are not detected with the emulator connected To emulate ECC errors make the setting not to initialize the RAM area when the emulator is connected However if the setting is for n...

Страница 28: ...Reading registers with undefined initial values and an ECM error Reading a register with undefined initial values such as the EIPC and general purpose registers when they have not been initialized lea...

Страница 29: ...l and subsequent downloading to the protected areas is suspended We recommend that files to be downloaded are divided into those for the areas protected by IDs and for other areas 5 4 4 Downloading to...

Страница 30: ...ion of MDP exceptions may not be traced 5 4 10 Losing trace information In some cases acquired trace information will be lost trace overflow This depends on the program being executed The lost informa...

Страница 31: ...debugger refer to the manual for the debugger you are using Table 5 1 State of a Device and Masking of Resets State of a device In breaks In single stepping In user program execution In C source level...

Страница 32: ...masked Interrupt masking disabled operation according to the specification of the user system Depends on the debugger An interrupt generated in the state marked in Table 5 2 is kept pending and inter...

Страница 33: ...a break has occurred during clock settings set Change the clock to flash writing in the Property panel to No a Any operation that involves programming of the flash memory e g re downloading b Setting...

Страница 34: ...Debugging Instruction Interval between Execution of the Embedded Instruction 4 pin LPD 33 MHz DBCP 1 727 usec DBTAG imm10 0 576 usec without the PC value DBPUSH rh rt 1 727 usec One register is output...

Страница 35: ...on of RAM areas 5 4 27 Cautionary point regarding execution of the user program immediately after hot plug in connection During execution of the user program until a break occurs due to a forced break...

Страница 36: ...er be added to nor deleted from the code flash memory Accordingly actually adding or deleting them on the target device is not possible Only add or delete software breakpoints in the code flash memory...

Страница 37: ...e E2 Emulator 4 Pin LPD 2 Wire UART CSI Emulator control circuit 74LVC1T45 74LVC1T45 74LVC1T45 74LVC1T45 74LVC8T245 74LVC1T45 74LVC1T45 74LVC8T245 74LVC1T45 NFL21SP Noise filter 47 1M x6 3 3V 47 47 47...

Страница 38: ...on the IE850A were added 3 00 Oct 09 20 10 Descriptions on FPMD0 and FPMD1 were added 21 A note was added to table 4 1 22 A note was added to table 4 2 24 Section 4 3 GTM debugging function was added...

Страница 39: ...tor IE850A Additional Document for User s Manual Notes on Connection of RH850 E2x Series Publication Date Rev 1 00 Jul 01 18 Rev 2 00 Feb 22 19 Rev 3 00 Oct 09 20 Published by Renesas Electronics Corp...

Страница 40: ...Ltd Unit 301 Tower A Central Towers 555 Langao Road Putuo District Shanghai 200333 China Tel 86 21 2226 0888 Fax 86 21 2226 0999 Renesas Electronics Hong Kong Limited Unit 1601 1611 16 F Tower 2 Grand...

Страница 41: ...R20UT4140EJ0300 E2 Emulator IE850A Additional Document for User s Manual Notes on Connection of RH850 E2x Series...

Отзывы: