Cycle count measurement on K64F

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cycle count measurement on K64F

Jump to solution
1,310 Views
adriangogu
Contributor I

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

Labels (1)
0 Kudos
1 Solution
637 Views
DavidS
NXP Employee
NXP Employee

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

View solution in original post

2 Replies
638 Views
DavidS
NXP Employee
NXP Employee

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

637 Views
adriangogu
Contributor I

Hello David,

Thank you. That helped.

Regards, Adrian

0 Kudos