Skip to main content
Src.1
Associate
March 8, 2023
Question

Custom hardware with STM32L49 board hangs after Clock initialization

  • March 8, 2023
  • 4 replies
  • 2293 views

We uses a custom hardware with STM32L496AG. It seems like the board hangs after initializing the clock. We think the issue is SysTick fails to increment the tick and hence tick related functions are not working. Please see the attached screenshot of schematic. Any help on this is highly appreciated

This topic has been closed for replies.

4 replies

RomainR.
ST Employee
March 8, 2023

Hello Src.1 (Community Member)

Your schematic does not help very well, it's incomplete and does not show the supply configuration of the device, I mean VDD/VDDA/VREF with decoupling capacitors (U1B)

Could you also provide the code that include the function in charge of clock, voltage range and Flash wait state configuration ?

BR,

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Src.1
Src.1Author
Associate
March 8, 2023

Hi,

Thanks for the quick response, We have limited details about the schematic. Please see the attached available schematic and initialization code

regards

Src.1
Src.1Author
Associate
March 8, 2023

Please see the initialization code. Code hangs after executing 'HW_InitializeSystemClocks'

RomainR.
ST Employee
March 8, 2023

Thank you for the sharing.

After reviewing the schematic and the code, I did not find any errors in the function HW_InitializeSystemClocks().

Could you confirm using step debugging what line of the code in HW_InitializeSystemClocks fails ?

Can you recompile and try the same code by removing LSE configuration and keep MSI and LSI oscillators?

Best regards,

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.