Counters
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 menu / [<device.core>].TriCore / Counters.
Icon |
Description |
---|---|
Switch to real-time update |
|
Refresh the view (F8) |
|
Reset CDC counters |
|
Go to winIDEA Help |
Section displays counter values and descriptions for CCNT, duration (CCNT / CPU Clock / 1000), ICNT, M1CNT, M2CNT and M3CNT.
Counters with Sticky Overflow bit set to 1 are displayed with the SOvf prefix.
Display current CPU frequency, MCDS frequency and cycle duration (1 / CPU Clock / 1000).
Counters core window consists of two context menus:
Right click elsewhere in the content part of the window opens a context menu.
![]() |
Copy Python access snippet - (optional) 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.
Right click on Counters item opens a Counters context menu. It contains the following additional options.
![]() |
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.
![]() 1. Select Configure from the Counters context menu. 2. Adjust the settings as shown. It is important that Counter Mode is set to Task. |
![]() 3. Open Hardware Breakpoint dialog by clicking Debug menu / Hardware breakpoints and set two breakpoints. 4. Check Enabled option. 5. Enable the 0 breakpoint. 6. Enable the 1 breakpoint. |
![]() 7. Click the "..." button and open the Browsing Functions dialog. 8. Switch to the Functions tab. 9. Select:
|
![]() 10. Click on the "..." button. 11. Make sure you set:
|
![]() 12. Click on the "..." button. 13. Make sure you set:
14. Run the application and observe the values in the TriCore window.
To get the time value of CPU clocks (hold by CCNT) has to be to multiplied with the CPU clock period.
![]() |