Clock config STM32F103 Help!
Posted: Sat Jan 28, 2017 10:15 pm
Hello,
i'm newbie on RTOS and do really like ChibiOs.
I have a custom STM32F103C Board without external Chrystal. I don't know whether i have configured the clock correct on 56Mhz. How do i know which clock does the controller run on?
Thank you in advance!
i'm newbie on RTOS and do really like ChibiOs.
I have a custom STM32F103C Board without external Chrystal. I don't know whether i have configured the clock correct on 56Mhz. How do i know which clock does the controller run on?
Thank you in advance!
Code: Select all
#define STM32_NO_INIT FALSE
#define STM32_HSI_ENABLED TRUE
#define STM32_LSI_ENABLED TRUE //FALSE
#define STM32_HSE_ENABLED FALSE //TRUE
#define STM32_LSE_ENABLED FALSE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSI //STM32_PLLSRC_HSE
#define STM32_PLLXTPRE STM32_PLLXTPRE_DIV1
#define STM32_PLLMUL_VALUE 7 //9
#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_PPRE1 STM32_PPRE1_DIV2
#define STM32_PPRE2 STM32_PPRE2_DIV2
#define STM32_ADCPRE STM32_ADCPRE_DIV4
#define STM32_USB_CLOCK_REQUIRED FALSE //TRUE
#define STM32_USBPRE STM32_USBPRE_DIV1P5
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
#define STM32_RTCSEL STM32_RTCSEL_NOCLOCK //STM32_RTCSEL_HSEDIV
#define STM32_PVD_ENABLE FALSE
#define STM32_PLS STM32_PLS_LEV0