AnsweredAssumed Answered

STM32F103 can't config MCO(PA8) and USB CLK together

Question asked by jiang.lei.001 on Apr 23, 2014
Latest reply on Apr 28, 2014 by Clive One

Hello All,

I use STM32F103VCT6 and VirtualComPort_loopback Project,  it worked well. But now I want to output clk through PA6(MOC) ,but it did't work unless comment out Set_USBClock(); . Who knows why?

void MCO_Config(void) 
    GPIO_InitTypeDef is; 
    is.GPIO_Pin = GPIO_Pin_8; 
    is.GPIO_Speed = GPIO_Speed_50MHz; 
    is.GPIO_Mode = GPIO_Mode_AF_PP; 
The Main:
  * @file    main.c 
  * @author  MCD Application Team 
  * @version V4.0.0 
  * @date    21-January-2013 
  * @brief   Virtual Com Port Demo main file 
int main(void) 
  Set_USBClock();  // comment out this line MOC will work

Thnaks for any kind of suggestion.