Skip to main content
LMehm
Associate III
March 31, 2026
Solved

STM32L0 doesn't start on power cycle.

  • March 31, 2026
  • 4 replies
  • 306 views

 

Hello!

We are using an STM32L0 microcontroller as a power switch.

The device works correctly when the firmware is started from STM32CubeIDE using the Run command.

However, if we switch the power supply off and then back on, the STM32L0 does not boot.

We suspect there may be an issue related to the reset circuit.

Please see the attached schematic. The relevant device is U6.

Could you please advise?

Thank you in advance.

Best answer by LMehm

We forgot to connect BOOT0 pin to ground.

We fixed this using Option bytes and STM32CubeProgrammer.

Now everything works fine.

4 replies

Andrew Neil
Super User
March 31, 2026

Presumably, it does start correctly if you just assert NRST ?

Similar issue here: MCU doesn't start after power cycle; Reset works OK

 


@LMehm wrote:

We suspect there may be an issue related to the reset circuit.


So have you looked at the reset signal with an oscilloscope? Does it meet the datasheet requirements.

It's recommended to have a capacitor on NRST - you don't have that:

Image1.png

PS:

In the datasheet:

 

Image2.png

https://www.st.com/resource/en/datasheet/stm32l010c6.pdf

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
LMehm
LMehmAuthor
Associate III
March 31, 2026

Adding 100nF capacitor didn't help.

LMehm
LMehmAuthor
Associate III
March 31, 2026

This is the waveform on NRST pin during startup.

TDK
Super User
March 31, 2026

Debug the code and see where it's stuck.

NRST circuit and signal looks fine. That is not the issue. The chip is no doubt booted and running something.

"If you feel a post has answered your question, please click ""Accept as Solution""."
LMehm
LMehmAuthorBest answer
Associate III
March 31, 2026

We forgot to connect BOOT0 pin to ground.

We fixed this using Option bytes and STM32CubeProgrammer.

Now everything works fine.

Andrew Neil
Super User
March 31, 2026

@LMehm wrote:

Now everything works fine.


Jolly good - so please mark that as the solution.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.