Clock speed, instruction timing not squaring up
Hi all,
I'm experimenting on an STM32F723disco board, trying out some audio DSP. I seem to be getting abysmal processing speed.
So as a first sanity check I did a simple nop timing test:
- Turn on a GPIO pin, do 50 nops, turn the GPIO pin off. (By 50 nops, I mean 50 lines saying asm("nop") )
- Turn the GPIO pin on again, do 100 nops, turn the GPIO pin off.
This gives me two pairs of pulses, the difference in length of which should correspond to the 50 extra nops the second time around. Result: it seems a nop takes around 9.6ns, which is two clock cycles.
Curiously, ART wasn't enabled, but setting the ARTEN bit had no impact anyway.
I must be doing something terribly wrong.
Cheers,
B.
