Configuration of MCO pin (PA8) to output the system clock.
At start-up, User push-button and MCO pin are configured. The program configures SYSCLK to the max frequency using HSI as clock source.
The signal on PA8 (pin 24 of CN10 connector) can be monitored with an oscilloscope to check the different MCO configuration set at each User push-button press.
Different configuration will be observed :
When user press User push-button, a LED1 toggle is done to indicate a change in MCO config. ### Keywords
System, RCC, PLL, HSI, PLLCLK, SYSCLK, HSE, Clock, Oscillator
This example runs on STM32C071RBTx devices.
This example has been tested with NUCLEO-C071RB board and can be easily tailored to any other supported device and development board.
NUCLEO-C071RB Set-up
In order to make the program work, you must do the following :