STM32l476 boot inquiry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-05 6:24 PM
Hello,
The STM32L476 MCU is not booting, and it seems to be stuck at address 0x08000228, as shown in the attached image.
- It used to boot and work correctly before.
- At some point, it stopped booting and no longer functions as expected.
What could be the reason for this behavior?
- Labels:
-
STM32L4 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-05 6:51 PM
There's no image attached. What code is it executing when it's stopped?
A common scenario is where the HSE or LSE crystal doesn't boot up properly. Choosing the right crystal is important there. If that is why it is stuck, see tips here:
Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs - Application note
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-05 7:23 PM - edited 2025-01-05 7:39 PM
When running in debug mode, it doesn’t stop at a specific line of code but keeps looping endlessly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-05 9:03 PM
What lines of code does it loop through?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-05 9:39 PM
The code is stuck at the following point after pressing "RUN" in debug mode.
It was working well with the same bootloader, but at some point, it stopped functioning.
The same issue occurs on two identical MCUs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-06 5:44 AM
Disassembly isn't too helpful here. I don't think I can help any more without seeing the code where it's hanging. My guess is the HSE or LSE crystal is failing to start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-01-07 12:45 AM
Problem solved. There was an error in the boot->app process.
Thank you for your response.
