Custom hardware with STM32L49 board hangs after Clock initialization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 1:53 AM
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
- Labels:
-
STM32L4 series
-
SysTick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 2:03 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 2:14 AM
Hi,
Thanks for the quick response, We have limited details about the schematic. Please see the attached available schematic and initialization code
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 2:14 AM
Please see the initialization code. Code hangs after executing 'HW_InitializeSystemClocks'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-08 2:41 AM
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.
