AnsweredAssumed Answered

How to get the precise time of the consumption function by using SYSTICK timer?

Question asked by gapry on Aug 21, 2014
Latest reply on Aug 21, 2014 by Clive One
As far as I knew, SYSTICK Timer is a 24-bit down counter. For now, I need to know the precise consumption time for the memcpy function. Suppose I set SysTick->RELOAD = 511, it will turn out two cases as the following description. 

1. One cycle means 511 to 0 must be finish.
2. Two or more cycles mean 511 to 0, 511 to 0, ... , 511 to 0, 511 to i, i in [0, 511].

Case 1: Offset is small or normal, so the memcpy will finish in one cycles.

Case 2: Offset is very big, e.g. 16K. So the memcpy will finish in two or more cycles.

How do I get the "cycles" ?