Skip to main content
DKjel.1
Associate
Oct 21, 2020 4:22 PM UTC
Solved

STM32L010K4T loses flashed program after reset or power off

Hi,

I'm quite new to STM32 MCUs as I just switched from PSoC MCUs. I'm using a STM32L010K4T6 and I cannot get it to work as the problem seems to "disappear" after reset or power off. I went through the configuration (I'm using STM32CubeIDE) and I cannot find anything related that could solve the problem. When I flash the MCU it works perfectly until I remove the power or just reset manually. I was thinking that it could be the reset vectors or bootloader that are not jumping to the correct memory address or not jumping at all.

I attached the test project I'm running.

Thank you!

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Oct 21, 2020 4:31 PM UTC

Are you sure you just don't have the BOOT0 pin or options set wrong? How have you checked the Flash content? Show in STM32 Cube Programmer

Make sure BOOT0 pin is pulled to ground in your design.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Oct 21, 2020 4:31 PM UTC

Are you sure you just don't have the BOOT0 pin or options set wrong? How have you checked the Flash content? Show in STM32 Cube Programmer

Make sure BOOT0 pin is pulled to ground in your design.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DKjel.1
DKjel.1Author
Associate
Oct 21, 2020 4:39 PM UTC

Hi! BOOT0 was not grounded. Now it is working, I remember reading about boot modes but I totally missed it when drawing my schematics. Thank you so much!!