Hello,
Have started to use FRDM-K64F development platform and I would ask about the possibilities to measure CPU cycle count an algorithm runs / evaluate application execution time on bare-metal.
Could you please advice if there is any support in KSDK for it ?
Regards,
Adrian
解決済! 解決策の投稿を見る。
Hi Adrian,
I am using KSDK_1.3.
Please open and read Chapter 15 Hardware Timer Demo from following location:
C:\Freescale\KSDK_1.3.0\doc\Kinetis SDK v.1.3 Demo Applications User's Guide.pdf
I was using TWR-K65F180M hardware with the following demo loaded:
C:\Freescale\KSDK_1.3.0\examples\twrk65f180m\demo_apps\hwtimer_demo\kds
This demo is using the core systick timer that ticks along at the core frequency. The demo sets the core up for 120MHz default operation.
Have a look at the comments "//DES" to see where I modified the original code to allow using the systick to time the example.
Hope it helps.
Regards,
David
Hi Adrian,
I am using KSDK_1.3.
Please open and read Chapter 15 Hardware Timer Demo from following location:
C:\Freescale\KSDK_1.3.0\doc\Kinetis SDK v.1.3 Demo Applications User's Guide.pdf
I was using TWR-K65F180M hardware with the following demo loaded:
C:\Freescale\KSDK_1.3.0\examples\twrk65f180m\demo_apps\hwtimer_demo\kds
This demo is using the core systick timer that ticks along at the core frequency. The demo sets the core up for 120MHz default operation.
Have a look at the comments "//DES" to see where I modified the original code to allow using the systick to time the example.
Hope it helps.
Regards,
David
Hello David,
Thank you. That helped.
Regards, Adrian