Skip to main content
July 17, 2025
Solved

Clock configuration for timers

  • July 17, 2025
  • 3 replies
  • 335 views

After doing some primary embedded projects (LED, user button etc) on my MCU (Nucleo-64 STM32 F411RE) I'm now dealing with timers. Here's my clock configurations

Capture.PNG

1- Does anything look wrong?
2- While my clock rate is 100 MHZ (as written on my board pack), should I change that 84 (in the HCLK (MHz) field) to 100 in the configuration? 

    This topic has been closed for replies.
    Best answer by KnarfB

    You don't have to change that, but you can if you are in need for more cycles or special frequencies.

    @mƎALLEm I never figured out why the initial clock settings are as they are, also for other series.

    KnarfB

    3 replies

    Technical Moderator
    July 17, 2025

    Hello,

    All seem ok as soon as there was no Error/warning indicated by CubeMX

    Technical Moderator
    July 17, 2025

    Hello @TechyAry ,

    The following articles introduced the basics of the STM32 clock system and help you on the configuration with example code generated by the STM32CubeMX:

    KnarfBAnswer
    Super User
    July 17, 2025

    You don't have to change that, but you can if you are in need for more cycles or special frequencies.

    @mƎALLEm I never figured out why the initial clock settings are as they are, also for other series.

    KnarfB