Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
4 years, 11 months ago.
Failed to use external 8MHz xtal
Problem: The code will always try to use 8MHz single-ended clock source and set RCC_HSE_BYPASS. There is a systick timer being used as timeout counter. When the time is out in RCC configuration, the program will move on to use 8MHz crystal. But After setting the HSE, the return value of HAL_GetTick() never increases. Then program hangs.
That may because mbed reconfigured the HAL tick using a standard timer instead of systick. Ha...ha... Has anyone really verified this clock source selection function?
Solution: Not found yet. Perhaps set the clock source of this standard timer to HSI?
Work Around: Modify the value of USE_PLL_HSE_EXTC to 0 in system_stm32f0xx.c. That will disable checking single-ended clock source.