Skip to main content
July 17, 2025
Solved

Clock configuration for timers

  • July 17, 2025
  • 3 replies
  • 804 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

mƎALLEm
ST Technical Moderator
July 17, 2025

Hello,

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

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
ST Technical Moderator
July 17, 2025

Hello @unknown ,

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
KnarfB
KnarfBBest answer
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