Problem on OSIF_GetMilliseconds

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

Problem on OSIF_GetMilliseconds

2,031件の閲覧回数
xu_wenming
Contributor II

Hello,

I'm using S32DS for ARM  2.2, SYS_CLK is configured as 80 MHz.

When I estimate time consumption by OSIF_GetMilliseconds in osif_baremetal.c, it takes around 114 ms when it returns 100 ms.

BR,

Matthew Xu

タグ(2)
0 件の賞賛
返信
1 返信

1,959件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 文明 徐,

Hope it helps: Measure the running time of one function on S32K

ARM Cortex-M have a DWT (Data Watchpoint and Trace) unit implemented, and it has a nice feature in that unit which counts the execution cycles.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信