STM32F7 MCO problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-03 05:42 AM
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 codeHAL_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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-03 08:03 AM
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-Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-04 11:57 PM
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. 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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-07 03:13 AM
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