2015-05-06 04:00 AM
I want to have a sample of system clock at MCO pin of STM32F107RC micro controller.
I use dspin firmware library for driving stepper motor. The on board crystal is 8MHz and system clock set to be 72MHz. I add this code to ''dspin.c'': GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; GPIO_Init(GPIOA, &GPIO_InitStructure); and I add the below line code in ''SetSysClockTo72()'' function at ''system_stm32f10x.c'' file. RCC->CFGR &= (uint32_t)0xF6FFFFFF; //HSE clock selected as MCO source But I don't have no clock output on this pin. please guide me thanks yasamin2015-05-06 04:20 AM
Don't cross-post.
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fhow%20to%20allow%20the%20clock%20to%20be%20output%20onto%20the%20external%20MCO%20pin&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E149...