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.

[参考译文] RM46L830:USB CDC和生成的halcogen驱动程序间歇性连接错误

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1096473/rm46l830-intermittent-connections-errors-with-usb-cdc-and-halcogen-generated-driver

部件号:RM46L830
主题中讨论的其他部件:HALCOGEN

我使用的是启用了CDC支持的halcogen生成的代码。 我正在将其连接到Linux计算机。

我经常遇到USB HAL级别错误。 我无法追踪任何模式。 有时,当我连接电缆时,它会进行初始化并正确连接。 其他时间,它将显示以下错误。 有时我可以插上/拔下插头,最终它会正确显示。 连接后通常稳定。

它似乎不在操作系统方面,我在不同的Linux发行版本/内核上都遇到过这种情况。  我在使用多根USB电缆的多个主板上尝试了相同的软件,它们都出现了此问题。 这是否是生成的驱动程序的已知问题,是否有已知的解决方案? 有什么建议?

[   38.210977] usb 1-1-port2: disabled by hub (EMI?), re-enabling...
[   38.217487] usb 1-1.2: USB disconnect, device number 7
[   38.222748] cdc_acm 1-1.2:1.0: acm_ctrl_irq - usb_submit_urb failed: -19
[   38.229805] cdc_acm 1-1.2:1.0: failed to set dtr/rts
[   39.232059] usb 1-1-port2: Cannot enable. Maybe the USB cable is bad?
[   40.088204] usb 1-1-port2: Cannot enable. Maybe the USB cable is bad?
[   40.095131] usb 1-1-port2: attempt power cycle
[   41.268249] usb 1-1-port2: Cannot enable. Maybe the USB cable is bad?

谢谢你