User`s manual
SuperH Family E10A-USB Emulator for Multi-core Microcomputers Section 2 Emulator Functions
R20UT0363EJ0500 Rev. 5.00 Page 11 of 296
Aug 10, 2012
(c) Software trace
When a specific instruction is executed, the PC value at execution and the contents of one
general register are acquired by trace. Describe the Trace(x) function (x is a variable name) to
be compiled and linked beforehand. For details, refer to the SHC/C++ compiler manual.
When the load module is loaded on the emulator and a valid software trace function is
executed, the PC value that has executed the Trace(x) function, the variable for x, and the
source lines are displayed.
Note: The types of events acquired by a trace differ depending on the product. For details on the
specifications of each product, refer to the online help.
(2) Trace acquisition mode
The AUD trace function has the following modes to acquire a trace.
Table 2.2 shows the AUD trace acquisition mode that can be set in each trace function.
Table 2.2 AUD Trace Acquisition Mode
Type Mode Description
Continuous
trace occurs
Realtime trace When the trace information is being generated intensely that
the output from the AUD pin incapable of keeping up, the
CPU temporarily suspends the output of trace information.
Therefore, although the user program is run in real time, the
acquisition of some trace information might not be possible.
Non realtime
trace
When trace information is being generated so intensely that
the output from the AUD pin is incapable of keeping up, CPU
operations are temporarily suspended and the output of trace
information takes priority. In such cases, the realtime
characteristics of the user program are lost.
Trace buffer
full
Trace continue This function overwrites the latest trace information to store
the oldest trace information.
Trace stop After the trace buffer becomes full, the trace information is no
longer acquired. The user program is continuously executed.










