3 months, 4 weeks ago.
How to generate an RCC MCO clock out of the Nuclero board using mbed?
I am trying to generate a 24 MHz signal from the NUCLEO L053R8 board to use as a clock for another device. Can anyone give me any suggestions on how to do it on mbed?
Question relating to:
3 months, 3 weeks ago.
You should be able to call the low level HAL functions to activate MCO.
/* Output clock on MCO1 pin(PA8) for debugging purpose */ HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_SYSCLK, RCC_MCODIV_1); //HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_HSI48, RCC_MCODIV_2);
This should get you a 32 MHz clock (same as the SystemCoreClock). However, you can modify the PLL settings to use a multiplier of 3 for the standard 8 MHz clock input to set the SystemCoreClock to 24 MHz. See Zoltans examples here.
An alternative solution could be to select HSI48 as MCO source and set the MCO divider at 2.
To post an answer, please log in.