cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4P5G-DK Clock Config Error

sarahsd0109
Associate

When I try to run code using the default clock settings sometimes I get an error at the line:

if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}

I'm confused because sometimes I get an error here and sometimes I do not and nothing changes in the code. I have attached my clock configuration below. 

sarahsd0109_0-1734200568816.png

 

1 REPLY 1
Imen.D
ST Employee

Hello @sarahsd0109 and welcome to the Community,

Please share your ioc file to check and reproduce this issue.

Make sure to use the latest release of CubeL4 package and CubeMx ?

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen