LL drivers PLL initialization
Hi all,
I am experiencing some problem with PLL initialization using LL drivers.
The code I am using for HSE, PLL and SYS clock is the following:
void init_RCC_HSE(void)
{
//LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOH);
LL_RCC_HSE_Enable();
while(! LL_RCC_HSE_IsReady())
;
LL_RCC_HSI_Disable();
//LL_RCC_HSE_EnableCSS();
LL_RCC_PLL_Disable();
LL_RCC_PLL_ConfigDomain_SYS(LL_RCC_PLLSOURCE_HSE, LL_RCC_PLLM_DIV_5, 200, LL_RCC_PLLP_DIV_2);
LL_RCC_SetAHBPrescaler(LL_RCC_SYSCLK_DIV_1);
LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_4);
LL_RCC_SetAPB2Prescaler(LL_RCC_APB2_DIV_2);
LL_RCC_PLL_Enable();
while(!LL_RCC_PLL_IsReady())
;
LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_PLL);
SystemCoreClockUpdate();
}But the firmware stops after a few ms.
What is the proper way to initialise it using LL drivers ?
Thanks.
s.