Skip to main content
SMaci.1
Associate II
April 15, 2021
Question

STM32 Nucleo L476RG: Debugger Connection Lost I try uploading a blank project and receive a message saying the debugger connection is lost. I tried 5 different USB Mini Cables and uploaded successfully to a completely different Nucleo Board (H745ZI-

This is the message I receive when debugging for the STM32 Nucleo L476RG Board:

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...

What are the next steps in the debug process? I have updated the firmware as it asked and am also using the latest software for the IDE (1.6.1).

Firmware:

Version: V2J37M27

Build:  Oct 22 2020 11:30:39

Software:

STM32CubeIDE 1.6.1

So I believe I am using the most up to date software. Thanks in advance!

This topic has been closed for replies.

2 replies

Markus GIRDLAND
ST Employee
April 21, 2021

Hello there!

This issue seems very similar to another thread that is currently being investigated. I would suggest that you follow that thread and try out the suggestions provided by Mattias to see if you can get some additional information.

You can find that link here.

SFan.1
Visitor II
August 4, 2021

Download STM32CubeProgrammer, select "Erasing & Programming" on the left, then do a "Full chip erase", problem solved for my case.