cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L010K4T loses flashed program after reset or power off

DKjel.1
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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

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