{{ }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

Infineon AURIX: How to set up performance counters?


With the TriCore plugin you can measure time between two functions, e.g. Type_Simple which starts counters and Type_Enum which stops counters. 


1. Open TriCore plugin by selecting View menu / TriCore / Counters.

2. In the TriCore/Counters window, open Configure Counters dialog and adjust the settings. It is important that Counter Mode is set to Task

3. Open Debug menu / Hardware breakpoints.

4. Set two breakpoints by enabling them and clicking the '...' button:

  • First breakpoint is hit when CPU starts execute e.g. Type_Simple function. Make sure you set Event to None and set Counter to Start performance count.
  • Second breakpoint will be hit when CPU starts to execute e.g. Type_Enum function and because Counter Comparator is set to Stop performance Counters, the results are displayed in the TriCore plugin pane.

5. Run the application and observe the values in TriCore window. To get the time value of CPU clocks (hold by CCNT) has to be to multiplied with the CPU clock period.


More resources:

Refer to winIDEA Help chapter TriCore plugin for more information. 

Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!