cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my MCO only outputting 8MHZ despite configuring for PLL?

Maaz1
Associate

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

Maaz1_1-1752671416926.png

 

Maaz1_2-1752671449312.png

 

Maaz1_3-1752671702986.png

 

 

 

 

Maaz1_0-1752671327014.png

 

I'm working on an STM32U5G9x and its my first time working on such an advanced topic, so apologies beforehand. 

Kind regards

 

 

13 REPLIES 13
KnarfB
Super User

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 

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

What if you try configuring it in CubeIDE ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I still get 8MHz

and if you increase the MCO prescaler considerably to lower the freqs?

Hello,

I suppose 60MHz is your HCLK clock?

If yes, did you set this configuration?:

mALLEm_0-1752676876335.png

 

 

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.

>>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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

@Maaz1 wrote:

I still get 8MHz


Show your Cube setup!

You could post the IOC file...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Maaz1_0-1752681216227.png

This is my ioc file 

Maaz1_1-1752681302261.png