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.

[参考译文] AM263P4:如何在命令行上使用 GDB 服务器和客户端?

Guru**** 2463330 points
Other Parts Discussed in Thread: AM263P4, TMDSCNCD263P

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1463187/am263p4-how-to-use-gdb-server-and-client-on-command-line

器件型号:AM263P4
主题中讨论的其他器件: TMDSCNCD263P

工具与软件:

我们正在使用第三方 IDE、并且我正在尝试为 AM263P4 SoC 设置调试环境。

是否有可以从 Windows shell 运行的 GDB 服务器和客户端来调试 SoC?  此外、如果有使用 XDS110探针的文档或示例、这将非常有用。

我找到了有关 XDS GDB 代理的文档、但它看起来已经停产。

还找到了说明我可以在 CGT 文件夹中找到 GDB 的文档。  但没有 ti-cgt-armllvm_4.0.1.LTS


/mnt/c/ti/ccs1281/ccs/tools/compiler/ti-cgt-armllvm_4.0.1.LTS/bin ls
GENERATE_SYMS.js tiarmasm.exe tiarmclang.exe tiarmdem.exe tiarmhex.exe tiarmlnk.exe tiarmobjcopy.exe tiarmofd.exe tiarmreadelf.exe tiarmstrip.exe
tiarmar.exe tiarmclang-tidy.exe tiarmcov.exe tiarmdis.exe tiarmlibinfo.exe tiarmnm.exe tiarmobjdump.exe tiarmprofdata.exe tiarmsize.exe

CCS 12.8将什么 GDB 服务器和客户端用于 AM263P4?

谢谢

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

    您好!

    Unknown 说:
    是否有 GDB 服务器和客户端我可以从 windows shell 运行来调试 soc?

    可以选择使用 OpenOCD: https://openocd.org/

    Unknown 说:
    CCS 12.8在什么 GDB 服务器和客户端用于 AM263P4?

    CCS 不使用 GDB。 它使用自己的专有调试器。

    我们对 VS Code 具有 openOCD + GDB 扩展名。 但是、它不支持 AM263x:

    https://marketplace.visualstudio.com/items?itemName=ti-development-tools.ti-embedded-debug

    谢谢

    Ki

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

    感谢快速响应。  

    我尝试使用 openocd 与 gdb-multiarch、并在使用"monitor reset halt (监视器重置暂停)"重置内核时遇到问题

    (gdb) target extended-remote :3334
    Remote debugging using :3334
    0x00007758 in ?? ()
    (gdb) monitor reset halt
    JTAG tap: am263p.cpu tap/device found: 0x1bb9502f (mfg: 0x017 (Texas Instruments), part: 0xbb95, ver: 0x1)
    Deferring arp_examine of am263p.cpu.sysctrl
    Use arp_examine command to examine it manually!
    Deferring arp_examine of am263p.cpu.main0_r5.0
    Use arp_examine command to examine it manually!
    Deferring arp_examine of am263p.cpu.main0_r5.1
    Use arp_examine command to examine it manually!
    Deferring arp_examine of am263p.cpu.main1_r5.0
    Use arp_examine command to examine it manually!
    Deferring arp_examine of am263p.cpu.main1_r5.1
    Use arp_examine command to examine it manually!
    am263p.cpu.main0_r5.0: ran after reset and before halt ...
    am263p.cpu.main0_r5.1: ran after reset and before halt ...
    am263p.cpu.main1_r5.0: ran after reset and before halt ...
    am263p.cpu.main1_r5.1: ran after reset and before halt ...
    (gdb) load
    Loading section .vectors, size 0x40 lma 0x0
    Loading section .text, size 0xae00 lma 0x7004cda0
    Load failed

    有什么想法可能会出什么问题? 或者、复位 SoC 的正确顺序是什么?   

    TI 是否提供了 用于 AM263P4的 OpenOCD 电路板/目标配置文件?

    注意:我可以正常加载和调试映像。  但是、当尝试复位芯片时、就会发生这种情况。  我想找到一种解决方案、这样就不必在每次需要重新启动测试时对电路板进行下电上电。

    感谢您的支持。  我知道这有点不在 TI 的讨论范围内、但是我们需要使用开源工具等完全支持 OpenOCD 配置文件的芯片、而不会有任何问题。

    此致

    ==================================================================

    以下是 gory 详情:

    电路板:TMDSCNCD263P 版本 E2

    SoC:AM263P4

    gdb-multiarch: GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1.

    OpenOCD: 0.12.0 (2023年10月02日)  

    配置文件: 基于  ti_am263_launchpad.cfg、ti_k3.cfg。   (支持 AM263P 的次要模块)  

    示例项目:Hello World NoRTOS

    e2e.ti.com/.../ti_5F00_tmdscncd263p.cfge2e.ti.com/.../ti_5F00_k3.cfge2e.ti.com/.../OpenOCD_5F00_Reset_5F00_error_5F00_log.txt

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

    我将提请器件专家注意该主题。

    谢谢

    Ki

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

    谢谢、期待这一问题的解决方案。

    我忘记加上这样一个事实、即上面的测试使用的是 TI SDK 10.1.0.31 sbl_null.release.tiimage。

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

    尊敬的 Huey:

    我们在 AM263Px 上没有 GDB 调试器支持。 我们已在我们的返回日志请求中获取该值。 同时、我将要求您使用 CCS IDE。

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

    Nilabh、您好、我们公司的使命是使用开源资源(或不依赖于芯片供应商的工具)、因此 CCS IDE 不是我们的优选选项。

    Ki 提到:

    "CCS 不使用 GDB。 它使用自己的专有调试器。"

    我们能进一步了解这方面的信息吗?  由于 CCS 基于 eclipse、因此调试器只是 eclipse 调用的另一应用。  (这是正确吗?)

    是否有可以从 IDE 中使用的调试器? (在本例中为 CLION)

    谢谢

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

    你(们)好、Huey

    我们正在处理此示例、由于我们每周都会同步、请允许我暂时关闭此主题。