cancel
Showing results for 
Search instead for 
Did you mean: 

STM32l476 boot inquiry

ksd4692
Associate

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?

6 REPLIES 6
TDK
Guru

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

If you feel a post has answered your question, please click "Accept as Solution".

When running in debug mode, it doesn’t stop at a specific line of code but keeps looping endlessly.

What lines of code does it loop through?

If you feel a post has answered your question, please click "Accept as Solution".

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.

ksd4692_1-1736141988032.png

 

 

 

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.

If you feel a post has answered your question, please click "Accept as Solution".

Problem solved. There was an error in the boot->app process.
Thank you for your response.