cancel
Showing results for 
Search instead for 
Did you mean: 

How do I flash code to my STM32L0xx in memory without Hard ware reset?

VRaja.842
Associate

I was trying to flash my code into the STM32L0xx series controller, not a Evaluation board. When I did, it said the code has flashed that it was successfully done but when I disconnected the debugger ST-Link(GDB) and re-plug it to power the code did not run it needed a hardware reset to run this code. How can I control this reset to reset when hot plugged and should be done without any button or hardware reset. Only software reset must be done because of our application. The log from the console is below

STMicroelectronics ST-LINK GDB server. Version 5.3.2

Copyright (c) 2019, STMicroelectronics. All rights reserved.

Starting server with the following options:

    Persistent Mode      : Disabled

    Logging Level       : 1

    Listen Port Number     : 61234

    Status Refresh Delay    : 15s

    Verbose Mode        : Disabled

    SWD Debug         : Enabled

Waiting for debugger connection...

Debugger connected

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.2.0          

   -------------------------------------------------------------------

Log output file:  /tmp/STM32CubeProgrammer_FOH6Us.log

ST-LINK SN : 56FF6E067878545229500667

ST-LINK FW : V2J34S7

Voltage   : 3.22V

SWD freq  : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x425

Device name : STM32L03x/L04x/L010

Flash size : 32 KBytes

Device type : MCU

Device CPU : Cortex-M0+

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_MkLRzZ.srec

 File     : ST-LINK_GDB_server_MkLRzZ.srec

 Size     : 6504 Bytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 50]

Download in Progress:

File download complete

Time elapsed during download operation: 00:00:00.789

Verifying ...

Download verified successfully 

0 REPLIES 0