This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430-GCC-opensource:gdb 目标远程连接失败关闭

Guru**** 656470 points
Other Parts Discussed in Thread: MSP430FR2675, MSP-TS430PT48A, MSP-FET
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1085209/msp430-gcc-opensource-gdb-target-remote-fails-connection-closed

部件号:MSP430-GCC-opensource
线程中讨论的其他部件:MSP430FR2675MSP-TS430PT48AMSP-FET

我按照 SLAU646F 第4.6节的说明操作。  `mmacOS 上的命令行界面,我能够为通用 MSP430示例项目执行“make debug`”。  它已成功构建,但当我尝试启动 GDB 调试器时,它会失败。  从 GDB 安装点`../bin/gdb_agent_console MSP4C.dat`似乎可以正常工作,显示的状态为“正在等待客户端”。

在`m终端窗口中,我运行“make debug`”,并在 gdb 提示符下成功完成调试。

接下来, 根据 SLAU646F 第4.6节中的说明,我发出命令 target remote :55000,但连接立即关闭。  有什么想法吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我不知道,但我能够重现问题。gdb_agent 报告:

    gdb_agent_console msp430.dat
    CPU Name             Port
    --------             ----
    msp430              :55000
    
    Starting all cores
    CPU Name             Status
    --------             ------
    msp430               Waiting for client
    msp430               Client connected...Connecting to Target
    Couldn't find any connected USB FETs!
    Failed to initialize FET on TIUSB port. Aborting.
       MSP430 Error :Could not find MSP-FET430UIF on specified COM port
    Connection failed...exiting
    

    Gdb 在连接到 mspdebug 时没有遇到任何问题,而 mspdebug 正是我通常使用的。 (目标是 G2553的启动板。)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我的部分是 MSP430FR2675。  这可能是问题吗?  我的硬件设置非常简单,只使用 MSP-FET 和 MSP-TS430PT48A。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我发现有一个快速入门指南: https://www.ti.com/lit/ml/slau591c/slau591c.pdf?ts=1647440027437&ref_url=https%253A%252F%252Fwww.google.com.hk%252F

    您能否关注它以检查您是否错过了任何内容? 很抱歉,目前对于 GCC,我们只能获得有限的支持。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    斯劳591中没有什么新东西可以看。  当我在 Linux 上启动 gdb_agent 时,它不会检查设备。 或者至少它不在乎没有连接。

    我认为 msp430.dat 文件可能会有更多内容被传送到 gdb_agent,但这非常短:

    # config version=3.5
    $ msp430
      msp430_drvr=msp430.dll
      msp430_port=TIUSB
      msp430_vcc=3.3
    $ /
    

    因此,您似乎需要对其进行编辑,以指定要使用的特定目标。 文档制作得不错。slau646讨论了一些 gdb_agent 选项,包括编辑 msp430.dat 以更改目标 Vcc,但对端口没有任何影响。

    我尝试将 TIUSB 更改为 RF2500 (在这款特定的 Launchpad 上适用于 mspdebug),但它没有帮助。

    这并不令人鼓舞: https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds_gdb_agent.html

    请注意,“gdb_agent_console --help”会生成一条消息,其中它将自身称为 Xds_gdb_agent。

    mspdebug 可能是最好的选择,因为它可以充当 gdb 服务器。 这就是我使用的。