SDK Function execution times for each module?

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

SDK Function execution times for each module?

770 Views
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 Kudos
5 Replies

752 Views
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 Kudos

748 Views
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 Kudos

742 Views
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 Kudos

734 Views
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 Kudos

723 Views
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 Kudos