Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.227

Navigation: Plugins > Architecture-specific plugins > TriCore

Scroll Prev Top Next More

Counters

In this topic:

Introduction

Toolbar

Counters

Clocks

Context menus

Modify Counters

Counter mode - Choose Task if you want counters to increment only between hardware breakpoints, or Normal if you want them to increment continuously. 

Configure Counters

 

 

Introduction

Counters is a separate core window of the TriCore plugin. It features an enhanced view of Core Debug Controller (CDC) counters and displays CPU Clock.

To load the plugin select View / [<device.core>].TriCore / Counters. Information is displayed when a debug connection is established.

 

Plugin-tricore-window

 

 

Toolbar

Icon

Description

AurixpluginRCU1

Switch to real-time update

HWtoolsPlugin-rh850timePerformance-refresh

Refresh the window (F8)

Plugin-tricore-reset

Reset CDC counters

ButtonHelp

Go to winIDEA Help

 

 

Counters

Section displays counter values and descriptions for CCNT, Duration, ICNT, M1CNT, M2CNT and M3CNT.

Counters with Sticky Overflow bit set to 1 are displayed with the SOvf prefix.

 

 

Clocks

Display current CPU frequency.

 

 

Context menus

Counters core window consists of two context menus:

General options

Counters option

 

General context menu

Right click elsewhere in the content part of the window opens a context menu.

 

Plugin-tricore-RegularContextMenu

 

Copy Python access snippet - Copy SDK code snippet to extract the content from the plugin window.

Auto Fit - Arrange all the columns to fit in the plugin window.

Options - Set colors and fonts.

Help - Open winIDEA Help.

 

 

Counters context menu

Right click on Counters item opens a Counters context menu. It contains the following additional options.

 

Plugin-tricore-ExtendedContextMenu

 

Modify - Changes the current setting of the counters. See Modifying Counters chapter for more information.

Reset - Resets the values of the counters to zero.

Configure - Changes how the counters are configured after a CPU reset. See Configuring Counters chapter for more information.

 

 

Modify Counters

Current Counter configuration in the Modify Counters dialog shows current values of register CCTRL. It also enables changing current values of this register. Options take effect when the OK button is pressed. Since these values are stored in a register, they are lost after CPU reset.

 

Plugin-tricore-ModifyCountersDialog

 

Counter mode - Choose Task if you want counters to increment only between hardware breakpoints, or Normal if you want them to increment continuously. 

Count Enable - Enable or disable the counters.

MxCNT - Chooses which metric is counted by a specific counter.

 

 

Multi-count Registers

Detailed descriptions with mapping are available in the Infineon AURIX Microcontrollers User Manual and in the in-line help within winIDEA.

 

TC Core Architecture

M1CNT

M2CNT

M3CNT

TC1.6E

IP_DISPATCH_STALL

PCACHE_HIT

TOTAL_BRANCH

LS_DISPATCH_STALL

PMEM_STALL

PCACHE_MISS

DMEM_STALL

TC1.6P, 1.6.2P and TC1.8

IP_DISPATCH_STALL

PCACHE_HIT

DCACHE_HIT

TOTAL_BRANCH

LS_DISPATCH_STALL

PCACHE_MISS

DCACHE_MISS_CLEAN

PMEM_STALL

LP_DISPATCH_STALL

MULTI_ISSUE

DCACHE_MISS_DIRTY

DMEM_STALL

 

 

Configure Counters

The Configure Counters dialog defines initial values for counter registers after CPU reset or start of debug. Values for section Configuration on CPU Reset are persisted in the workspace file (for current core) and therefore available after winIDEA restart.

 

Plugin-tricore-ConfigureCountersDialog

 

Automatically configure on CPU reset - Automatically apply configuration on reset. It is recommended to check this option only in primary winIDEA (for all cores) since secondary winIDEA does not support configuration of counters.

Configuration on CPU Reset - Configuration settings, which are applied on reset, when Automatically configure on CPU reset option is enabled.

 

 

i-icon

Set the configuration to be persistent throughout the winIDEA workspace or for a current configuration.

 

Copyright © 2024 TASKING Germany GmbH