Skip to main content
Visitor II
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
  • 2 replies
  • 1698 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

    2 replies

    Visitor II
    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.1Author
    Visitor II
    February 8, 2022

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

    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

    MM..1Answer
    Graduate II
    February 7, 2022

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

    ZKURT.1Author
    Visitor II
    February 8, 2022

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