cancel
Showing results for 
Search instead for 
Did you mean: 

config blue pill 8mhz crystal as clock source

AliJahanipur
Associate

I have an stm32f103c8 blue pill board and i want to config it's 8mhz crystal as clock source without using PLL and without any division or multiplication. similar to this photo. I like register based programming and i don't use StdPeriph or HAL libraries. I config RCC->CR to 0x00010000 value and RCC->CFGR to 0x06000001 value in main() function of my program. but while executing, the microcontroller work with internal clock with 1mhz frequency. can anyone help me? Is my mistake not to writing a while() loop for waiting for HSE flags become ready?Screenshot (274).png

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
0 REPLIES 0