Jun 30, 2022
01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 30, 2022
01:52 AM
Hello Sir
I need a technical support on Infineon controller
which we are using in Audi project .
we are unable to find the value of CCNT Counter (which is always 0)
Controller name : TC334LP
CPU : CPU0_CCNT
Already the CPU0_CCTRL L 0x0000000002 enabled and configured .
Could you explain how i can get the value of the CCNT ?
I want to find execution time of the function .
So i have to use CCNT
So i have to use CCNT
Solved! Go to Solution.
1 Solution
Jun 30, 2022
11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 30, 2022
11:16 PM
Hello,
You can refer to the CPU_Perf_Counters_1_KIT_TC397_TFT example in the ADS. You need to use mfcr/mtcr for reading and writing the registers. If you still facing the issue, please share your code snippet.
Thanks.
3 Replies
Jun 30, 2022
11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 30, 2022
11:16 PM
Hello,
You can refer to the CPU_Perf_Counters_1_KIT_TC397_TFT example in the ADS. You need to use mfcr/mtcr for reading and writing the registers. If you still facing the issue, please share your code snippet.
Thanks.
Jul 01, 2022
03:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 01, 2022
03:27 AM
Hello
Im using predefined code as present in IfxCpu.h as Im using :
IfxCpu_resetAndStartCounters(IfxCpu_CounterMode_normal);
my_function();
after keeping continue Run to the SW ,and checking the value of in Debug window for
CPU0_CCNT SFR register ,which is always zero..
Jul 03, 2022
11:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2022
11:48 PM
Hello,
This is not expected. Could you also check the value returned by IfxCpu_stopCounters after execution of my_function?
Thanks.
Thanks.