Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.260

Time stamp Configuration

In this topic:

Configuration

1. Set Assume source to be to tsu_rel.

2. Keep default TSUPRSCL set to 1.

tsu_rel_en is set on EVT23 Event State.

tsu_rel_sync is set to EVT8 Event Edge.

 

 

Inroduction

MCDS does not generate time stamp messages by default. To get the time stamp information as part of the trace record, the MCDS needs to be configured.

 

Warning_orange

The trace time stamp information is implemented on a CPU (MCDS) tick level. You need to determine the MCDS tick period in order to get the correct time information. This method relies on the assumption that the CPU clock doesn’t change during the active trace session. Time cannot be measured properly when tracing program code is changing the CPU clock.

 

Configuration

number1

Set Time stamps.

1. Set Assume source to be to tsu_rel.

2. Keep default TSUPRSCL set to 1.

3. Reference clock set to Main PLL.

 

The value of 1 for TSUPRSCL activates the tsu_tc_trig output every second reference clock cycle. Increasing the value would yield higher time resolution.

 

TC-timeStamp

 

number2

Read out the MCDS cycle duration in the AURIX/Clocks plugin.

 

number3

Enter the MCDS cycle duration in the Cycle duration filed in Hardware | CPU Options | Analyzer.

 

Number4

Configure MCX.

MCX need to be configured additionally to MCDS to generate time stamps for the trace Trigger/Qualifier operation mode. The most convenient option is to use Trace Wizard. Time stamps generation will be configured regardless of the specific trigger and/or qualifier setting. Using Wizard for example to configure trigger immediately and record program flow, MCX settings look like this:

 

TC-mcksetting

 

Number5

Configure Event.

EVT8 is set to tsu_tc_trig Trigger.

EVT23 is set to cnt_trig_15 Trigger.

 

MCX-event

 

number6

Configure Action.

tsu_rel_en is set on EVT23 Event State.

tsu_rel_sync is set to EVT8 Event Edge.

 

MCX-event2

1.

 

number7

Configure trace_done.

trace_done Action set to ALWAYS yields recording everything from the trace start on.

 

MCX-trace-done

 

 

Warning_orange

Set Cycle duration in the Hardware | CPU Options | Analyzer dialog, before using the trace time stamp information.

The trace time stamp information is implemented on a CPU tick level only. You need to find out the CPU cycle period of your target application and enter that value in the dialog. This type of time stamps doesn’t provide accurate trace time information for applications where the microcontroller frequency is not constant during the trace session.

 

Copyright © 2024 TASKING