This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

register to get the core clock

Hello everyone,
i have a big question, i want to know if there is a register to read on the STM32 board to get the core clock value.
there is a command executed from the debugging to get this value wich is SYStem.CLOCK .
So please some help!
thank you and best regards.

  • Just curious but how would the processor know what crystal frequency you have?

    Without knowing the input frequency, the processor wouldn't be able to compute the resulting output frequency of the PLL.

    The simulator will run the processor with a simulated crystal, so it will obviously be able to know the simulated instruction cycle time.