Associate
April 29, 2022
Question
Clock cycle behavior as a function of frequency
- April 29, 2022
- 3 replies
- 1112 views
Hello,
On the STM32F746ZG I measure the clock cycle needed to execute a code thanks to a timer which runs at the same frequency as the core clock.
However, for the same code, with exactly the same measurements process, the clock cycle needed to execute the same code is not the same over all frequencies. Normally, the clock cycle to execute a code should be the same over all frequencies.
I did the same test on a STM32F446ZE and it works as expected, i.e. same clock cycle over all frequencies.
For example, here the clock cycle behavior for the execution of a basic addition with a for loop within a STM32F746ZG.
Is someone has ever seen this behavior ? Is someone has an explanation ?
Thank you,