Cycle Counter different when stepping
Hello,
I'm currently doing some performance measurements using the DWT's CYCCNT register. As I understand the RM, the CYCCNT counts up for every core clock cycle (except when halted).
However, I get different values in CYCCNT when stepping through the code, vs running it. (Running is approx. 80 cycles higher). How can this be explained? Shouldn't the cycle count for the stepping mode be higher (because additional bus transactions by the debug module)?
The setup:
MCU: STM32F103C8T6 (Cortex M3)
Core-Clock: 72MHZ
Thanks in advance and best regards.
