SDK Function execution times for each module?

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

SDK Function execution times for each module?

1,115 次查看
JeorgeB
Contributor III

Hi.

is there any document which give SDK Function execution times?

e.g. in Flash driver and the follow function -> "FLASH_DRV_Program"

or other functions like LPSPI?

 

Thanks.

0 项奖励
回复
5 回复数

1,097 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi JeorgeB,

Please refer: Measure the running time of one function on S32K
The unit of measurements of the variabile ARM_CM_DWT_CYCCNT is CORE_CLK cycles.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

1,093 次查看
JeorgeB
Contributor III

Thanks for kind reply, 

in s32kxx RM, page 2143, there is a table which says DWT in s32k142 can not be access by user application.

Capture.JPG

so, for each function we can not use this unit in runtime. 

is there any document from NXP which give SDK function times? or we should measure them in debug mode and consider that in run time application?

0 项奖励
回复

1,087 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

We don't have document which give SDK Function execution times.
I think you can have a test on your board.
You can also refer: Help with the library elapsed_time for the time analysis of function

0 项奖励
回复

1,079 次查看
JeorgeB
Contributor III

unfortunately I have not access to board yet and want to know is true my opinion about DWT? (it is not possible to use DWT in run time application by CPU).

 

Thanks.

0 项奖励
回复

1,068 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

see how to use it directly from the application code: Cycle Counting on ARM Cortex-M with DWT

0 项奖励
回复