beautypg.com

Epson S5U1C62000A User Manual

Page 163

background image

S5U1C62000A MANUAL

EPSON

151

(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 9: DEBUGGER

(2) Trace condition

The trace starts when the target program starts executing and ends relative to an instruction that
generates a break set by a break command (bp, bd, br or bm). The trace range is decided according to
the trace condition that can be selected from the three positions shown below:

• Start

The trace is halted after sampling trace information for 8,192 cycles beginning from the first-hit break
point. In this case, the trace information at the break point is the oldest information stored in the trace
memory.

Execution started

Break point

Trace sampling range

8,192 cycles

Fig. 9.8.6.1 Trace range when "start" is selected

• Middle

The trace is halted after sampling trace information for 4,096 cycles beginning from the first-hit break
point. In this case, the trace information of 4,096 cycles before and after the break point are sampled
into the trace memory.

Execution started

Break point

Trace sampling range

(4,096 cycles)

4,096 cycles

Fig. 9.8.6.2 Trace range when "middle" is selected

• End (default)

The trace is halted after sampling trace information at the first-hit break point. In this case, the trace
information at the break point is the latest information stored in the trace memory.

Execution started

Break point

Trace sampling range

8,192 cycles

Fig. 9.8.6.3 Trace range when "end" is selected

Displaying and searching trace information

The sampled trace information can be displayed in the [Trace] window by a command. If the [Trace]
window is closed, the information is displayed in the [Command] window. In the [Trace] window, the
entire trace memory data can be seen by scrolling the window. The trace information can be displayed
beginning from a specified cycle.
The display contents are as described above.

Table 9.8.6.2 Command/menu item to display trace information

Function

Command

Menu

Display trace information

td

[View | Trace]