Skip to main content
ZKURT.1
Senior
February 7, 2022
Solved

After installing the program with ST-LINK, when I turn off the power and return it, the last program I installed does not work.

  • February 7, 2022
  • 6 replies
  • 1723 views

Hi. I am using stm32L010C6Tx. After installing the program with ST-LINK, when I turn off the power and return it, the last program I installed does not work. I need to reload the code. I wondered if it wasn't writing to your Flash, but it looks full in cubeprogrammer. The NRST lead is connected to GND with a 100 nF capacitor. Boot0 end is idle. Any ideas as to why it might be?

This topic has been closed for replies.
Best answer by MM..1

Boot0 end is idle ??? Connect it to GND over 1k

6 replies

Paul1
Senior III
February 7, 2022

Try:

  1. Disconnect STLink (STLink might be holding board in reset, there are options in the IDE and PRG software for STLink Reset/Program modes)
  2. Any Bootloader Required? You can debug code without the bootloader, but to run standalone will need Bootloader+App.
  3. Reset & programming circuit on PCB? Proper pulldowns/pullups/caps? Show your circuit/schematic.

Paul

ZKURT.1
ZKURT.1Author
Senior
February 8, 2022

Hello, the solution is to connect boot0 to GND with a resistor.

Peter BENSCH
ST Technical Moderator
February 8, 2022

To be precise: BOOT0 must read logical 0, which can be achieved:

  • either with a pull-down resistor (so that a 1 can later also be applied), or
  • with permanent connection to GND

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
MM..1
MM..1Best answer
Super User
February 7, 2022

Boot0 end is idle ??? Connect it to GND over 1k

ZKURT.1
ZKURT.1Author
Senior
February 8, 2022

Thank you for your help. Thanks to you, the program worked. This is the solution..