cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L010 not booting after restart

RZahor
Associate II

Hi,

I have a project with STM32L010 that runs OK if started from the STM32CubeIDE with the "debug" or "run" buttons, but after power restarts, the code is not running.

I have tried to short BOOT0 pin with no success, and I couldn't find a way to program the BOOT0/BOOT1 bits in STM32CubeIDE.

Any help will be appreciated.

Thanks,

Roy

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Download and run STM32CubeProgrammer to set the option bytes to ignore BOOT0 if that's what you want.

Ensure NRST isn't held low.

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

View solution in original post

3 REPLIES 3
TDK
Guru

Download and run STM32CubeProgrammer to set the option bytes to ignore BOOT0 if that's what you want.

Ensure NRST isn't held low.

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

Hello,

 

I am getting the same complication with my device. Its a STM32L010K4Tx. Which has no boot pin. I am using an ST-Link v3 mini which works are programming and unbricking the device. When the device is operating standalone, it isnt operating its code. I havent touched PA13 and PA14.

I have a 100nF cap on NRST and I have confirmed that it does go high after Power up. I have also shorted the cap to attempt a reset, but that doesnt work at getting the code operational.

I did note that PA4 is an input during reset, and I am using that pin as an output later in the code. Its sitting low as a result of the minor load on it. - But I don't know if that's relevant.

Additionally, PA9 is consistently holding a high value without the code running - dont know if there is something there, but its able to drive an FET and even after scoping it - it doesn't fall low.

Justin_za
Associate

[Solved]

I needed to modify the option byte using the STM32Prog. Once changing the Option Byte BOOT_SEL to 1, and Then BOOT0 and BOOT1 to 1. It now works.