RT-Thread论坛
直播中

王伟

7年用户 1471经验值
私信 关注

rt_thread studio使用ST-LINK可以下载程序,但是在线调试出错的原因?

使用ST-LINK可以下载程序,但是在线调试出错。
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
        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
Reading ROM table for AP 0 @0xe00fffd0
Hardware watchpoint supported by the target
COM frequency = 4000 kHz
ST-LINK Firmware version : V2J35S7
Device ID: 0x413
PC: 0x8005ec0
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.16 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.7.0-RC1                  
      -------------------------------------------------------------------
Log output file:   C:\Users\lml\AppData\Local\Temp\STM32CubeProgrammer_a06808.log
ST-LINK SN  : 3A1A151A7115303030303032
ST-LINK FW  : V2J35S7
Board       : --
Voltage     : 3.16V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
Encountered Error when opening D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\STMicroelectronics\ST-LINK_Debugger\1.6.0\tools\bin\STM32_Programmer_CLI.exe
------ Switching context -----
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...

回帖(1)

夏日余晖

2024-2-26 16:35:48
检查一下,这些信息。gdb.exe跟我不一样的话,就改成我这个。一样就改成另一个路径:

  • C:\studio_pro\RTThreadStudio\repo\Extract\ToolChain_Support_Packages\ARM\GNU_Tools_for_ARM_Embedded_Processors\5.4.1\bin\arm-none-eabi-gdb.exe。
  • 注意对照修改 1.png


举报

更多回帖

发帖
×
20
完善资料,
赚取积分