cancel
Showing results for 
Search instead for 
Did you mean: 

How can I remove error like 'Waiting for debugger connection... Debugger connected Debugger connection lost. Shutting down...'

Mohan1
Associate III

I am generating code using STM32CubeIDE, but when I start to debug I am getting errors like:

"STMicroelectronics ST-LINK GDB server. Version 5.2.3

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

Debugger connection lost.

Shutting down..."

I am using the latest version of st-link USB driver(en.stsw link009). Also I am using USB to TTL converter. Initially everything was working very well, near about ten code executed successfully. But now facing the above error. So how can I solve it?

22 REPLIES 22
surendra.bitwerks
Associate

I guess this problem is connected with DMA. ( If you enable DMA such issues are coming.)

Interesting! When you specify the monitor flash mass_erase in CubeIDE. Then CubeIDE actualy opens CubeProg_CLI which performs a mass erase. In theory that should be the same thing as running CubeProg externally and perform a mass erase from the eraser icon...

I have to cross-check this with CubeProg team.

Pfeld.1
Associate

i encountered such problems while receiving an STM32CubeIDE update, upgrading all suggested firmware/Migrating project to a newer version solved this problem