2020-07-06 07:31 AM
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
Solved! Go to Solution.
2020-07-06 11:25 AM
Download and run STM32CubeProgrammer to set the option bytes to ignore BOOT0 if that's what you want.
Ensure NRST isn't held low.
2020-07-06 11:25 AM
Download and run STM32CubeProgrammer to set the option bytes to ignore BOOT0 if that's what you want.
Ensure NRST isn't held low.
2024-11-20 06:24 AM
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.
2024-11-21 07:00 AM
[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.