cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 MCO problem

ferhatyol-23
Senior
Posted on February 03, 2016 at 14:42

hi all

I want to run MCO1 clock output. (PA8) I tried the hal_rcc_mcoconfig function. But I could not run.I can't see any signal with oscilloscope. This is MCO settings code

HAL_RCC_MCOConfig(RCC_MCO1,RCC_MCO1SOURCE_PLLCLK,RCC_MCO_DIV4);

PLLCLK=216Mhz, MCO Div 4 Output = 216 / 4 = 54 MCO output should be 54Mhz What is the problem? Thanks
3 REPLIES 3
Nesrine M_O
Lead II
Posted on February 03, 2016 at 17:03

Hi Mucit23,

1/ be sure that your system clock is correctly configured 

2/you can have a look to the RCC example under the STM32F7 cube firmware package it may be helpful: 

STM32Cube_FW_F7_V1.3.0\Projects\STM32756G_EVAL\Examples\RCC\RCC_ClockConfig

-Syrine-

ferhatyol-23
Senior
Posted on February 05, 2016 at 08:57

Hi Syrine

I resolved the problem. I found a problem with the STM32F7 Discovery scheme.

Please see the image. 

0690X00000603kvQAA.jpg

PA8 pin seems to depend Arduino D5. (Schematic Page 6)  But in reality, it is depending on Arduino D10. (Schematic Page 9)

I think there's a mistake.

matthew239955_stm1_st
Associate II
Posted on February 07, 2016 at 12:13

Brilliant thanks - just switched to D10 and all good.

May also explain why D10 wasn't working as SPI2_SELECT !

You would think ST would have updated the CubeMX files...

Matt