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

 

 

27 REPLIES 27

How do i do this?

Why you didn't attach your ioc file?

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.

@Maaz1 wrote:

This is my ioc file 


No, it's just an incomplete screenshot.

You still haven't shown the MCO configuration!

@mƎALLEm showed you where it is:

AndrewNeil_0-1752682041198.png

 

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

How do i do this?


Which part(s) ?

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.

>>How do i do this?

Perhaps answer some questions, because we've no idea what you're actually working with.

What Board is this?

Does it have a USART? Do you have that working yet?

I tend to get a USART working first, get HardFault_Handler and Error_Handler to present actionable data if it finds itself there.

Decode registers of interest, read the Reference Manual, and unpack the content, this will allow you to confirm things are functioning internally as you expect / anticipate them to be.

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

Hi

I have attached my ioc file

Hi

I have attached my file here

 

 

Hi

 

I have attached my .ioc file here. 

Kind regards


@Maaz1 wrote:

Hi

I have attached my ioc file


Hello,

I've generated a project based on your ioc file and tested it and I can see 60Mhz on PA8 with a STM32U5G9J-DK2 board:

mALLEm_0-1752741002979.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.

Everyone can see every post - there's no need to make separate identical  replies!

You can use '@' to mention multiple people in one post - like this: @Maaz1 @Andrew Neil 

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.