Renesas SH-4A User Manual page 56

Microcomputer development environment system
Hide thumbs Also See for SH-4A:
Table of Contents

Advertisement

Software Trace Function:
Note:
This function can be supported with SHC/C++ compiler (manufactured by
Renesas Technology Corp.; including OEM and bundle products) V6.0 or later.
However, SHC/C++ compiler (including OEM and bundle products) V8.0 or later
is needed when instructions other than those compatible with SH4 are output.
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 SuperH
engine C/C++ Compiler, Assembler, Optimizing Linkage Editor User's Manual.
When the load module is downloaded on the emulator and is executed while a software
trace function is valid, the PC value that has executed the Trace(x) function, the general
register value for x, and the source lines are displayed.
To activate the software trace function, select the [Acquire Software trace] radio button in
the [Software trace] dialog box that is opened by double-clicking on the software Trace
column of the [Event] window.
Note:
To cancel settings, select the [Don't care] radio button in the [Software trace]
dialog box or select [Delete] from the popup menu that is opened by clicking on
the software Trace column with the right-mouse button.
System Bus Access Trace Function: This function can be set with Ch8 or Ch9 of the
[Event] window. The information on the system bus in the MPU can be acquired.
Display Contents: When the program breaks, the following trace results are displayed in
the [Trace] window.
• PTR: The trace-buffer pointer (+0 from the last instruction to have been executed)
• IP: Indicates the number of cycles that have elapsed since the latest trace information
was gathered. For branch instructions, the branch source and destination are counted
together as one.
• Master: Type of bus master that accessed the memory.
• Type: Displays the type of trace acquisition information.
• Branch Type: Branch type (only displayed for a branch trace)
For an AUD trace, this item is only displayed if the PPC option has been enabled.
• Bus: Displays which bus was accessed.
• R/W: Displays whether the access involved reading or writing.
• Address: Displays the addresses from which the trace data was acquired.
• Data: Displays the data acquired in the trace.
32
TM
RISC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh4al-dspE200f

Table of Contents