2025-01-05 06:24 PM
Hello,
The STM32L476 MCU is not booting, and it seems to be stuck at address 0x08000228, as shown in the attached image.
What could be the reason for this behavior?
2025-01-05 06: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
2025-01-05 07:23 PM - edited 2025-01-05 07:39 PM
When running in debug mode, it doesn’t stop at a specific line of code but keeps looping endlessly.
2025-01-05 09:03 PM
What lines of code does it loop through?
2025-01-05 09: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.
2025-01-06 05: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.
2025-01-07 12:45 AM
Problem solved. There was an error in the boot->app process.
Thank you for your response.