Linux USB 调试连接到 LuminaryMicro 评估板

发布于 2024-08-26 13:06:16 字数 874 浏览 6 评论 0原文

我正在尝试将 Stellaris LM3S8962 评估套件连接到 Linux 主机。我使用 CodeSourcery G++ 作为开发工具链。当我尝试运行 helloworld 示例时,连接失败并显示以下消息:

arm-stellaris-eabi-sprite:错误: E104。 I/O 与 USB 通信时出错 设备。手臂恒星 eabi 精灵: 等待GDB连接,通过 错误和警告:远程故障 回复:E.fatal.E104。输入/输出错误 与 USB 设备通信。 手臂-stellaris-eabi-sprite:错误: E002。未初始化

当我使用 USB 电缆连接评估板时,系统似乎可以使用该设备:

3 月 24 日 14:37:16 n6-ws2 内核:usb 5-2:USB 断开连接,地址 3 月 24 日 5 日 14:37:18 n6-ws2 内核:usb 5-2:新 使用 uhci_hcd 的全速 USB 设备 地址 3 月 24 日 14:37:19 n6-ws2 内核:USB 5-2:配置#1 从 1 个选项中选择

此外,似乎我可以通过命令行工具以某种方式进行连接(但我确实得到了一些奇怪的字符):

[mlong@n6-ws2 bin]$ ./arm-stellaris-eabi-sprite -i CodeSourcery ARM 调试 Sprite (来源G++ 4.4-104)armusb: [速度=] ARMUSB设备
armusb:///�̙ - �(�̙)

有人有什么建议我可以尝试吗?

非常感谢,

迈克

I am trying to connect a Stellaris LM3S8962 evaluation kit to a linux host machine. I am using the CodeSourcery G++ for the development toolchain. When I try to run a helloworld example the connection fails with this message:

arm-stellaris-eabi-sprite: error:
E104. I/O Error communicating with USB
Device. arm-stellaris-eabi-sprite:
waiting for GDB connection, to pass
error along warning: Remote failure
reply: E.fatal.E104. I/O Error
communicating with USB Device.
arm-stellaris-eabi-sprite: error:
E002. Not initialized

When I connect the evaluation board with the USB cable it seems the device is made available to the system:

Mar 24 14:37:16 n6-ws2 kernel: usb
5-2: USB disconnect, address 5 Mar 24
14:37:18 n6-ws2 kernel: usb 5-2: new
full speed USB device using uhci_hcd
and address 6 Mar 24 14:37:19 n6-ws2
kernel: usb 5-2: configuration #1
chosen from 1 choice

Also, it seems that I can connect in some way via the command line tool (but I do get some strange characters):

[mlong@n6-ws2 bin]$
./arm-stellaris-eabi-sprite -i
CodeSourcery ARM Debug Sprite
(Sourcery G++ 4.4-104) armusb:
[speed=] ARMUSB device
armusb:///�̙ - ؎� (�̙)

Does anyone have any suggestions I could try?

Thanks a lot,

Mike

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

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

发布评论

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

评论(1

牵强ㄟ 2024-09-02 13:06:16

抱歉打扰了,但这是处理此错误的少数页面之一,其中一堆只是重定向到此页面:P

无论如何,事实证明,在我的情况下,这是一个权限问题。如果执行:

sudo ./arm-stellaris-eabi-sprite -i 

那么您将获得设备的完整名称。然后就变成了为用户提供 USB 设备所需权限的问题。为此,您需要更改文件:

/lib/udev/rules.d/50-udev-default.rules

找到 libusb 设备节点行并将模式更改为 0666。重新启动,一切都会很顺利。

如果有人有更好的解决方案请告诉我:)

Sorry for the bump, but this is one of the few pages around that deals with this error and a bunch of those are just redirects to this page :P

Anyway, it turns out that in my case this was a permissions issue. If you execute:

sudo ./arm-stellaris-eabi-sprite -i 

then you will get an uncorrupt name for the device. Then it becomes an issue of giving the user the required permissions for the USB device. To do this you need to alter the file at:

/lib/udev/rules.d/50-udev-default.rules

find the libusb device nodes line and change the mode to 0666. Do a reboot and things will be sweet.

If anyone has a better solution let me know :)

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