Everything
2.13.1.2 For [E20]

Make settings in the [Trace] category on the Property panel’s [Debug Tool Settings] tab.

Figure 2.125

[Trace] Category [E20]

(1)

[Usage of trace function]

Part of the trace functions and real-time RAM monitor functions (RRM functions) can be used only on a mutually exclusive basis. Therefore, in this property, specify which function you want to be used preferentially. Here, select [Trace] from the drop-down list below.

Trace

Uses the trace function preferentially (default).

-

The real-time RAM monitor function cannot be used.

Real-time RAM monitor Note 1

Uses the real-time RAM monitor function (RRM) preferentially.

-

Trace function

Use subject to limitations Note 2

Also, trace-related events are disabled.

Note 1.

[E20(Serial)]
The real-time RAM monitor function is not supported. Therefore, do not specify [Real-time RAM monitor] for this property value.

Note 2.

[E20(JTAG) [RX600, RX700 Series]]
Part of the trace function cannot be used.
Following limitations apply.

Operation after trace memory is full

[Stop trace] and [Stop] cannot be used. Only [Overwrite trace memory and continue execution] can be used.

Trace data type

[Branch] and [Branch + Data access] cannot be used.

Only [Data access] can be used.

External trace output

[Do not output] cannot be used.

[CPU execution] and [Trace output] can be used.

Trace memory size[MByte]

Only 1M byte can be used.

(2)

[Operation after trace memory is full]

Specify the operation to be performed when the trace memory is filled with collected trace data, from the drop-down list below.

Overwrite trace memory and continue execution

When the trace memory is filled, CS+ continues writing trace data over the old data (default).

Stop trace

When the trace memory is filled, CS+ stops writing trace data (but does not stop program execution).

Stop

When the trace memory is filled, CS+ stops writing trace data and stops program execution at the same time.

(3)

[Trace data type]

This property is displayed only when you've selected [Trace] for the [Usage of trace function] property.

Specify the type of trace data to be collected, from the drop-down list below.

Branch

Source/destination address information of branching during program execution are collected as trace data.

Branch + Data accessNote 1

Source/destination address information of branching during program execution, as well as data information on access events that occurred are collected as trace data.

Data accessNote 2

Data information on access events that occurred during program execution are collected as trace data.

Branch + Data access (without Access data)Note 3

Source/destination address information of branching during program execution, as well as data information on access events that occurred are collected as trace data.

However, access data is not collected.

Data access (without Access data)Note 3

Data information on access events that occurred during program execution are collected as trace data.

However, access data is not collected.

Note 1.

[E20(Serial) [RX100, RX200 Series]]
Trace data for [Branch + Data access] cannot be collected. Therefore, this item is not displayed in the drop-down list.

Note 2.

[E20(Serial) [RX100, RX200 Series]]
To collect trace data for [Data access], it is necessary to set address conditions in a point trace. For details about the point trace, see “2.13.4 Collecting an execution history only when conditions are met”.

Note 3.

This item can be used only for RX66x, RX65N-2M, RX651-2M, RX671, RX72T, RX72M, and RX72N groups.

(4)

[Start address for trace area without access data][RX65N-2M, RX651-2M, RX66x, RX671, RX72T, RX72M, and RX72N Group]

Specify the start address for the trace area without access data.

(5)

[End address for trace area without access data][RX65N-2M, RX651-2M, RX66x, RX671, RX72T, RX72M, and RX72N Group

Specify the end address for the trace area without access data.

(6)

[Bus master of data access] [RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups]

This property is displayed only when [Branch + Data access] or [Data access] is specified in the [Trace data type] property.

Select the Bus master of data access from the drop-down list.

The following bus masters are displayed in the drop-down list.

CPU

The results of data access from CPU are displayed on the trace panel.

DMAC/DTC

The results of data access from DMAC/DTC are displayed on the trace panel.

For data access tracing, only the trace results of data access from the specified bus master are displayed on the trace panel.

Caution 1.

This property setting cannot be changed during program execution.

Caution 2.

For an microcontroller that does not have the function for selecting the Bus master of data access, the [Bus master of data access] [RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups] property is not displayed. In this case, the bus master is fixed to [CPU].

(7)

[External trace output] [E20(JTAG)]

Specify the method on how the collected trace data should be output from the drop-down list below.

CPU execution

CPU execution given priority over trace output.

Trace information may be lost if output.

Trace output

Trace output given priority over CPU execution. CPU execution stops during trace output, affecting real-time performance.

Do not output

Only the internal buffer of the microcomputer will be used, with no output of trace information.

Caution 1.

When [Real-time RAM Monitor] is selected in the [Usage of trace function] property, [Do not output] cannot be selected from the drop-down list.

Caution 2.

If Step in is executed when [CPU execution] or [Trace output] is specified and trace data is being displayed on the Trace panel correct trace data may not always be displayed.

Caution 3.

[RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups]
When this property is changed from [Do not output] to [CPU execution] or [Trace output], the timer measurement results are initialized.

(8)

[Trace memory size[MByte]] [E20(JTAG)]

Specify the size of memory used to retain trace data from the drop-down list below.

-

1 (default), 2, 4, 8, 16, 32

(9)

[Output timestamp]

This property specifies whether timestamp information is added to the trace data to be collected. Specify [Yes] when you want timestamp to be output.

Caution 1.

[E20(Serial) [RX200 Series]]
If [Branch] is specified in the [Trace data type] property, timestamp cannot be output. If you want it to be output, specify [Data access].

Caution 2.

[E20 [RX100 Series]]
This property is fixed to [No] because these microcontrollers do not support the output of timestamp information.

(10)

[Trace clock count source[MHz]]

Enter a count source for the timestamp in the range 0.0001 to 999.999.

Note that if this property is blank, the set value of the [Operating frequency [MHz]] in the [Clock] category of a [Connect Settings] tab is used in place of the count source.

(11)

[Division ratio of trace clock count source] [RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups]

This property is displayed only when [Yes] is selected in the [Output timestamp] property.

Select the frequency division ratio for the timestamp count source from the drop-down list.

The following frequency division ratios are displayed in the drop-down list.

1/1

The frequency of the timestamp count source is used without change.

1/16

The frequency of the timestamp count source is multiplied by 1/16 before use.

1/256

The frequency of the timestamp count source is multiplied by 1/256 before use.

1/4096

The frequency of the timestamp count source is multiplied by 1/4096 before use.

The frequency specified in the [Trace clock count source[MHz]] property is divided by the specified value (the frequency is multiplied by 1/n) and one cycle of the obtained frequency is used as the unit for timestamp count (the frequency for count value 1).

Caution 1.

This property setting cannot be changed during program execution.

Caution 2.

For an microcontroller that does not have the function for dividing the timestamp frequency for tracing, the [Division ratio of trace clock count source] [RX71M, RX66x, RX65x, RX64M, RX671, RX72T, RX72M, and RX72N Groups] property is not displayed. In this case, the division ratio is fixed to [1/1].