Why do I get a double reset with ST Link V3?
Hello ,
recently I upgraded to ST Link V3 and it works fine so far. Only one thing is annoying: I always get a double reset when uploading a new firmware from Cube IDE to my target. Console output is this:
STMicroelectronics ST-LINK GDB server. Version 5.8.0
Copyright (c) 2020, 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
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
-------------------------------------------------------------------
STM32CubeProgrammer v2.7.0-RC1
-------------------------------------------------------------------
ST-LINK SN : 0672FF383337554E43183919
ST-LINK FW : V2J37M26
Board : NUCLEO-G070RB
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x460
Revision ID : Rev B
Device name : STM32G07x/STM32G08x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0+
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a03436.srec
File : ST-LINK_GDB_server_a03436.srec
Size : 20740 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 10]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.684
Verifying ...
After line 14 "Debugger connected" it seems reset is released for a short time, starting the old firmware again, before in a second reset the new firmware is programmed to the target. The time between the resets is about half a second, enough to do some things that are not wanted at that moment...
Did I miss some settings? I checked Run configurations but couldn't find anything.
Any help is welcome
Martin
