Skip to main content
DKjel.1
Associate
October 21, 2020
Solved

STM32L010K4T loses flashed program after reset or power off

  • October 21, 2020
  • 2 replies
  • 1276 views

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.
Best answer by Tesla DeLorean

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.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
October 21, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
DKjel.1
DKjel.1Author
Associate
October 21, 2020

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!!