E30A Emulator User
’s Manual
4. Debugging Functions
R20UT0422EJ0501 Rev.5.01
Page 45 of 65
Mar 15, 2016
4.2 Trace Function
4.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 information is output from the MCU and recorded to the emulator trace memory. The
user program execution may be delayed depending on the event occurrence interval because the MCU processes the trace
information output prior to others.
-
MCU execution priority
512 events can be traced. The trace information is recorded to the trace RAM of the MCU’s internal debug circuit.
Therefore, this mode does not affect the execution speed of the user program.
Note on Affect on User Program in Trace Priority Mode:
In the case of X
IN
8MHz, PLL 128MHz (16 times), BASE 64MHz and CPU 64MHz, for example, it takes
5
μs to output trace information for each event. If the average of event occurrence interval among 512
events is less than 5μs, the CPU operation will be suspended, because the trace information is output
via the trace RAM of the MCU’s internal debug circuit.
4.2.2 Trace Contents
You can select information 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 branch sources and destinations
Branch source address and branch destination address are recorded as an event.
-
Conditional branch information
Branch information (success/failure of conditional branches) are recorded in a compressed format. Up to 48 of conditional
branches are recorded as an event, so that the communication amount of the trace information can be reduced and the
affect on execution speed of the user program can be reduced even in trace priority mode.
To record conditional branch information, cancel all trace event settings in the event setting window. An unused event can
be used as a break event.
-
Data access information
Address, data, data size and read/write information are recorded as an event.
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.
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 not the subject of detection.