To set a Trace event, set a trace start event and a trace end event that starts/stops collecting the trace data.
Use one of the following methods to set a trace start event and a trace end event.
By setting execution-related events for a trace start event and a trace end event, it is possible to start and stop the collection of trace data at any place.
Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembly text is displayed.
Follow the operation listed below from the context menu, in accordance with your desired event type, after moving the caret to the target line that has a valid address.
[Simulator] |
A trace start event or a trace end event is set to the instruction at the start address corresponding to the line of the caret position.
Once a trace start event or a trace end event is set, the following event mark is displayed in the event area of the line that an event is set.
By setting access-related events for a trace start event and a trace end event, it is possible to start and stop the collection of trace data when a specified access is made to any variable or SFR.
The types of access that can be set by using methods described here are only a read/write (see “Table 2.5 Types of Accesses to Variables“). |
Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembly text is displayed.
Follow the operation listed below from the context menu, in accordance with your desired event type, after selecting an arbitrary variable or SFR on the source text/disassembled text.
Note, however, that only global variables, static variables inside functions, and file-internal static variables can be used.
Select [Trace Settings] >> [Record Start R/W Value], and then press the [Enter] key. |
|
Select [Trace Settings] >> [Record End R/W Value], and then press the [Enter] key. |
At this time, if you have specified a value in the text box in the context menu, collection of trace data is started or finished only when a read/write is performed with a specified value. On the other hand, if no value is specified, reading/writing the selected variable or SFR by any value will cause the break to occur.
Variables or SFR at lines that have no valid addresses cannot be used for trace start events and trace end events. |
Perform this operation in the Watch panel.
Follow the operation listed below from the context menu after selecting the registered watch-expression (multiple selections not allowed).
Note, however, that only global variables, static variables inside functions, file-internal static variables, and SFR can be used.
Select [Trace Output] >> [Record Start R/W Value], and then press the [Enter] key. |
|
Select [Trace Output] >> [Record End R/W Value], and then press the [Enter] key. |
At this time, if you have specified a value in the text box in the context menu, collection of trace data is started or finished only when a read/write is performed with a specified watch-expression. On the other hand, if no value is specified, reading/writing the selected watch-expression by any value will cause the break to occur.
A watch-expression within the current scope can be specified. |
When a trace start event and a trace end event are set, they are managed collectively on the Events panel as one instance of a Trace event (see "2.15 Manage Events"). When you click the "+" mark at a Trace event item, detailed information on the trace start event and the trace end event you have set is displayed.
If either one of a trace start event and a trace end event is set as Valid state, the check box of Unconditional Trace event in the Events panel is automatically cleared, therefore, trace data collection does not automatically start with the start of the program execution (the tracer will not run until the condition of the trace start event that has been set is met). |
Event marks differ depending on the event state (see "2.15.1 Change the state of set events (valid/invalid)"). |
[Simulator] |