如何使用 Eclipse 通过串行端口或 USB 进行远程调试?

发布于 2024-11-01 15:54:31 字数 599 浏览 4 评论 0原文

我正在开发的设备无线连接不稳定,因此需要串行电缆来调试在该设备上运行的程序,同时固件团队致力于修复无线连接。这种情况经常发生,因为新设备一开始往往不稳定。问题是我似乎无法找到使用串行端口时如何在 Eclipse CDT 中进行远程调试。我在网上进行了一些搜索,发现了很多有关通过 SSH、FTP 和 Telnet 进行远程调试的信息。虽然,我找不到任何有关通过串口调试的信息。我能够在 Eclipse 中找到并使用串行终端的信息,但据我所知,这并不能帮助我通过串行连接远程调试程序。我也知道这可能是由于这个 Eclipse bug:

https://bugs.eclipse .org/bugs/show_bug.cgi?id=257171

不幸的是,这并没有告诉我如何使用这个新支持:(
我还知道 GDB 允许通过串行电缆进行调试,因此肯定有一种方法可以使用 Eclipse 调试器来完成此操作。我还想知道是否有办法让“远程系统资源管理器”(一个 Eclipse 插件)也使用串行端口?据我所知它似乎不支持串行连接。有没有其他类似的插件支持串行连接?非常感谢任何和所有的帮助。

I'm working on a device that has an unstable wireless connection and therefore requires a serial cable to debug programs that run on it while the Firmware team works on fixing the wireless connections. This happens often as new devices tend to be unstable at first. The problem is I can't seem to find out how to remote debug in Eclipse CDT when using a serial port. I've been doing some searching online and have found lots of info about remote debugging via SSH, FTP and Telnet. Although, I can't find anything about debugging through the serial port. I was able to find info on and use a serial terminal in Eclipse but as far as I can tell this doesn't help me debug a program remotely with the serial connection. I also know that it's possible due to this Eclipse bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=257171

Unfortunately that doesn't tell me how to use this new support :(
I also know GDB allows debugging via serial cable, so surely there is a way to do it with the Eclipse debugger. I was also wondering if there is a way to get the "Remote System Explorer", an Eclipse plugin, to use a serial port as well? As far as I can tell it doesn't seem to support serial connections. Is there another plugin like it that does support serial connections? Any and all help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十六岁半 2024-11-08 15:54:31

从补丁的评论来看,官方支持是在 Eclipse 3.6 (Helios) M7 中。

支持的 CDT 方法似乎是使用 GDB 串行协议。

http://www.embecosm.com /appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html

From the comments by the patch it looks like official support is in Eclipse 3.6 (Helios) M7

The supported CDT approach seems to be to use the GDB serial protocol.

http://www.embecosm.com/appnotes/ean4/embecosm-howto-rsp-server-ean4-issue-2.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文