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.