Question
How to measure speed of STM32F429
Posted on December 10, 2013 at 06:34
I have a STM32429I-EVAL board, initialized it and made it work, but I am not sure if the processor speed is up to max. The function RCC_GetClocksFreq returns 180 MHz, but cannot trust its return.
I did a loop to toggle LED1 and the max speed of toggle is 4 MHz. while(1) { STM_EVAL_LEDToggle(LED1); } This 4 MHz seems too low to me, I don't think the processor spends 45 cycles to toggle the led. Is there a more precise way to measure the speed?