RTT Studio ST-Link 每次Debug调试前都出错,但下载程序正常

发布于 2020-07-21 17:27:49

STMicroelectronics ST-LINK GDB server. Version 5.4.0
Copyright (c) 2019, 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 : V2J34M25
Device ID: 0x414
PC: 0x800e0c8
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.19 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
------ Switching to STM32CubeProgrammer -----

  -------------------------------------------------------------------
                   STM32CubeProgrammer v2.3.0                  
  -------------------------------------------------------------------

Error: C:Users瀹嬮�婃枃AppDataLocalTempSTM32CubeProgrammer_a31404.log does not exist
ST-LINK SN : 0672FF575353667267191121
ST-LINK FW : V2J34M25
Voltage : 3.19V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x414
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_a31404.srec
File : ST-LINK_GDB_server_a31404.srec
Size : 93824 Bytes
Address : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 45]
Download in Progress:

File download complete
Time elapsed during download operation: 00:00:04.812
Encountered Error when opening D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/STMicroelectronics/ST-LINK_Debugger/1.2.0/tools/binSTM32_Programmer_CLI.exe
------ Switching context -----
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...

QQ截图20200721172555.png

查看更多

关注者
0
被浏览
429
2 个回答
songxunwen
songxunwen 2020-07-21

程序下载正常,debug不行,每次都报错。所有项目都这样。以前Keil和IAR调试都是正常的。STLINK也是好用的。RT-Thread Studio调试就报错,怎么解决。

JQRR_7669
JQRR_7669 认证专家 2020-07-22

换jlink吧!RTT Studio ST-Link一直都有问题,尚未解决。

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览