2.13.1.1 For [E1]

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

Figure 2.137

[Trace] Category [E1]

(1)

[Usage of trace function]

Only the trace function 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]

For this 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.

Note 1.

[E1(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.

[E1(Serial) [RX100, RX200 Series]]
To collect trace data for [Data access], it is necessary to set address conditions in a point trace. Trace information on data access is not acquired when no address conditions are set. Only records of access to specified addresses are included in the trace information on data access. The start address specified for point-to-point tracing is displayed in the Trace panel.
For details about the point trace, see "2.13.4 Collecting an execution history only when conditions are met".

(4)

[Bus master of data access] [RX71M and RX64M 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 and RX64M Groups] property is not displayed. In this case, the bus master is fixed to [CPU].

(5)

[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.

[E1(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.

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

(6)

[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.

(7)

[Division ratio of trace clock count source] [RX71M and RX64M 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 and RX64M Groups] property is not displayed. In this case, the division ratio is fixed to [1/1].