Skip to main content
Visitor II
December 14, 2024
Question

STM32L4P5G-DK Clock Config Error

  • December 14, 2024
  • 1 reply
  • 483 views

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

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 16, 2024

    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 ?