2.12.4.1 Set a Point Trace event

Use one of the following methods to set a Point Trace event.

Caution 1.

Also see "2.17.6 Notes for setting events" for details on Point Trace events (e.g. limits on the number of enabled events).

Caution 2.

You cannot set/delete Point Trace events while a tracer is running.

Caution 3.

Accesses via DMA cannot be traced.

Caution 4.

[Full-spec emulator][E1][E20]
When a Point Trace event is used simultaneously with a trace event (trace start event or trace end event) that collects the execution history of a section, the execution history of Point Trace is not collected until the condition of the trace start event is met.

Remark

[Simulator]
When a Point Trace event is set to Valid state, the [Use trace function] property in the [Trace] category on the [Debug Tool Settings] tab of the Property panel is automatically set to [Yes] and the trace function will be enabled.

(1)

For access to a variable or I/O register on the Editor panel/Disassemble panel

Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembled text is displayed.

Follow the operation listed below from the context menu, in accordance with your desired access type, after selecting the variable or I/O register as the subject to access.

Note, however, that only global variables, static variables inside functions, and file-internal static variables can be used.

Access Type

Operation

Read

Select [Trace Settings] >> [Record Reading Value].

Write

Select [Trace Settings] >> [Record Writing Value].

Read/Write

Select [Trace Settings] >> [Record R/W Value].

Caution

Variables within the current scope can be specified.

(2)

For access to a registered watch-expression

Perform this operation in the Watch panel.

Select the watch-expression as the subject to access and perform the following operation from the context menu (see "2.10.6 Display/change watch-expressions").

Note, however, that only global variables, static variables inside functions, file-internal static variables, and I/O register can be used.

Access Type

Operation

Read

Select [Trace Output] >> [Record Reading Value].

Write

Select [Trace Output] >> [Record Writing Value].

Read/Write

Select [Trace Output] >> [Record R/W Value].

Caution

A watch-expression within the current scope can be specified.
To target a watch-expression outside the current scope, select a watch-expression with a specified scope.

 

By performing the above operation, it is interpreted as if a Point Trace event has been set at the target variable/I/O register/watch-expression, and it is managed in the Events panel (see "2.17 Manage Events" for details).

Figure 2.117

Example of Setting Point Trace Event in Events Panel