4 years, 3 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.
Question relating to:
You need to log in to post a question