Cycle count measurement on K64F

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Cycle count measurement on K64F

跳至解决方案
1,383 次查看
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

标签 (1)
0 项奖励
回复
1 解答
710 次查看
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

在原帖中查看解决方案

2 回复数
711 次查看
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

710 次查看
adriangogu
Contributor I

Hello David,

Thank you. That helped.

Regards, Adrian

0 项奖励
回复