Skip to main content
Visitor II
December 14, 2024
Question

STM32L4P5G-DK Clock Config Error

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

ST 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 ?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks