2025-07-16 6:15 AM
Hi all
For some reason my MCO(PA8) only outputting 8MHz despite me configuring it for 60MHz
I am completely baffled because I have followed all the correct register settings(as far as I am aware) for the clock configuration, and have followed the clock diagram from the stm32cubeide
I'm working on an STM32U5G9x and its my first time working on such an advanced topic, so apologies beforehand.
Kind regards
2025-07-16 6:36 AM
Where is MCO in your clock settings diagram?
Does your LA have enough sample frequency or do you see an alias frequency?
Looks like a screendump from "logic" which is often used with simple 24 MHz LA's.
hth
KnarfB
2025-07-16 7:09 AM
Hi
I have tried it with the oscilloscope and it still gives 8MHz. My MCO is PA8. I configured it myself in the file I gave, but it should output more than 8MHz at the very least
2025-07-16 7:10 AM
What if you try configuring it in CubeIDE ?
2025-07-16 7:26 AM
I still get 8MHz
2025-07-16 7:36 AM
and if you increase the MCO prescaler considerably to lower the freqs?
2025-07-16 7:38 AM - edited 2025-07-16 7:41 AM
Hello,
I suppose 60MHz is your HCLK clock?
If yes, did you set this configuration?:
2025-07-16 7:54 AM
>>STM32U5G9x
Is this on a Custom board or one of the ST development boards?
Show attachment point and related portion of schematic.
Do you have a serial port working on this board? Can you output diagnostics / telemetry via printf()?
Try dumping register content for RCC, GPIOA, etc. Unpack PLL and clock settings, decode vs MSI / HSI / HSE_VALUE
Register Level code, you've got to own the debug task
2025-07-16 8:00 AM
@Maaz1 wrote:I still get 8MHz
Show your Cube setup!
You could post the IOC file...
2025-07-16 8:55 AM
This is my ioc file