Problem on OSIF_GetMilliseconds

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

Problem on OSIF_GetMilliseconds

965 Views
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

Tags (2)
0 Kudos
1 Reply

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