Question
HSE can not be ready at debug
Posted on July 09, 2013 at 09:34
In mySetSysClockTo72 function, there is
/* Wait till HSE is ready and if Time out is reached exit */
do
{
HSEStatus = RCC->CR & RCC_CR_HSERDY;
StartUpCounter++;
} while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
as you know. But the Flag can not be set at debug. and application stuck at that loop.
How can I fix this, how could it be?
I use Keil IDE.
#rcc #keil #stm32-keil-external-clock-hse #stm32