ST-LINK调试出错,提示Debugger connection lost.

发布于 2021-01-19 10:44:23
这是调试日志,新建的工程文件,没有任何改动。正常下载,但是不能调试。
STMicroelectronics ST-LINK GDB server. Version 5.6.0
Copyright (c) 2020, STMicroelectronics. All rights reserved.

Starting server with the following options:
        Persistent Mode            : Disabled
        LogFile Name               : debug.log
        Logging Level              : 31
        Listen Port Number         : 61235
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled

Target connection mode: Default
Hardware watchpoint supported by the target 
COM frequency = 4000 kHz
ST-LINK Firmware version : V2J37S7
Device ID: 0x414
PC: 0x80081c8
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.24 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Waiting for debugger connection...
Waiting for connection on port 61235...
Accepted connection on port 61235...
Debugger connected
Wrapping read detected. Addr: 0xffffffff; Length: 4
Wrapping read detected. Addr: 0xffffffff; Length: 4
 ------ Switching to STM32CubeProgrammer ----- 
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.5.0-RC1                  
      -------------------------------------------------------------------

Error: C:\Users\温慧\AppData\Local\Temp\STM32CubeProgrammer_a13272.log does not exist
ST-LINK SN  : 55FF6D065083494805361087
ST-LINK FW  : V2J37S7
Board       : --
Voltage     : 3.24V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x414
Revision ID : Rev X
Device name : STM32F101/F103 High-density
Flash size  : 512 KBytes
Device type : MCU
Device CPU  : Cortex-M3



Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a13272.srec
  File          : ST-LINK_GDB_server_a13272.srec
  Size          : 21528 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:01.160
Encountered Error when opening D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\STMicroelectronics\ST-LINK_Debugger\1.4.0\tools\bin\STM32_Programmer_CLI.exe
 ------ Switching context ----- 
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...

QQ截图20210119103703.png

STM32_Programmer_CLI.exe正常,但是软件打开出错。

QQ截图20210119104215.png

SDK资源库里面St-LINK__Debugger正常。

查看更多

关注者
1
被浏览
175
3 个回答
JQRR_7669
JQRR_7669 认证专家 2021-01-19

把stlink刷成jlink用吧,jlink支持比较好。我遇到过与你一样的问题,解决不了的,最终刷成jlink用了。

rcp
rcp 认证专家 2021-01-19

studio版本是多少

An_forever
An_forever 2021-02-03

我也是遇到了这个问题,我用的是STM32CUBE IDE这个开发环境,求解决办法!!谢谢~

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览