I have been trying to download a program to a Nucleo-STM32L476 and I always get the message debugger connected debugger connection lost
In the CubeIDE I have a simple program just to get familiar with the IDE. I have connected the STM32L476 and as the run / debug process starts I see the message below. When the console indicates debugger connected The LED on the ST-Ling part goes green and blinks then turns red and finally the message on the console indicated that the connection is lost. I found a similar question and followed all the suggestions but no success. I appreciate any help.
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
Debugger connection lost.
Shutting down...
