2

I am generating code using STM32CubeIDE, but when I start to debug getting error 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         : Enable


  Waiting for debugger connection...

  Debugger connected

  Debugger connection lost.

  Shutting down...`

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

Thanks in advance.

4

2 回答 2

4

这个问题有时会出现。根据个人观察,当设备在调试模式下运行并断开电源或在调试模式下关闭IDE时,往往会发生这种情况。

为了修复它,您可以运行一个不同的项目(运行方式)。然后回到当前项目,它应该能够在调试模式下运行。此修复基于我的个人经验,希望对您也有帮助。

于 2020-06-24T13:30:59.077 回答
2

下载 STM32CubeProgrammer,用它来做“全芯片擦除”。试试这是否有效。

于 2021-08-04T06:52:01.103 回答