SDK Function execution times for each module?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SDK Function execution times for each module?

958件の閲覧回数
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 返答(返信)

940件の閲覧回数
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 件の賞賛
返信

936件の閲覧回数
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 件の賞賛
返信

930件の閲覧回数
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 件の賞賛
返信

922件の閲覧回数
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 件の賞賛
返信

911件の閲覧回数
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 件の賞賛
返信