cancel
Showing results for 
Search instead for 
Did you mean: 

Clock

GHARI.1
Associate II

How to take a reference clock out from stm32h7 microcontroller?

2 REPLIES 2
Peter BENSCH
ST Employee

You can enable the pin(s) MCO in block RCC to route one of the many clock signals out of the STM32.

With STM32CubeIDE or STM32CubeMX you can then configure one of the clock options in the clock configuration tree (bottom left).

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
GwenoleB
ST Employee

Hi @GHARI.1​ ,

On STM32H7, clock source is available thanks to clock output MCO1 and MCO2.

You need to configure GPIO pins in alternate mode. Then select the clock source (HSI, HSE, HSI48, PLL1P, ...) and the divider.

Some examples are given with HAL packages :

  • NUCLEO-H723ZG - Example LL - RCC - RCC_OutputSystemClockOnMCO
  • NUCLEO-H7A3ZI-Q - Example LL- RCC - RCC_OutputSystemClockOnMCO

Please refers to Reference Manual to find clock source availability on each MCO.

Best Regards.