9 years, 3 months ago.

How do I tell what frequency my board is running at?

Gents, is there a pin I can probe or function call to tell what speed my F401RE is running at? I'm testing the UTFT demo program and it's only marginally quicker that my Arduino Mega which I find surprising and a little bit disappointing. Cheers Mike

1 Answer

9 years, 3 months ago.

The SystemCoreClock should give you the info:

pc.printf("CPU SystemCoreClock is %d Hz\r\n", SystemCoreClock); 

Note that the first releases of the mbed libs for the nucleos were running at very low freqs. Make sure you update the lib (right click on the file in the online compiler).

Accepted Answer