2026-03-31 2:27 AM
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.
Solved! Go to Solution.
2026-03-31 5:13 AM
We forgot to connect BOOT0 pin to ground.
We fixed this using Option bytes and STM32CubeProgrammer.
Now everything works fine.
2026-03-31 2:44 AM - edited 2026-03-31 2:49 AM
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:
PS:
In the datasheet:
https://www.st.com/resource/en/datasheet/stm32l010c6.pdf
2026-03-31 3:21 AM
2026-03-31 4:26 AM
Adding 100nF capacitor didn't help.
2026-03-31 5:04 AM
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.
2026-03-31 5:13 AM
We forgot to connect BOOT0 pin to ground.
We fixed this using Option bytes and STM32CubeProgrammer.
Now everything works fine.
2026-03-31 6:24 AM
@LMehm wrote:Now everything works fine.
Jolly good - so please mark that as the solution.
2026-04-01 2:51 AM
@LMehm wrote:Now everything works fine.
Until you find that you need the BOOT0 functionality !