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.
I am using the halcogen generated code with CDC support enabled. I am connecting it to a linux machine.
I often get usb HAL level errors. I cannot track down any pattern for it happening. Sometimes when I connect the cable it will initialize and connect correctly. Other times it will show the error below. Sometimes I can plug/unplug and eventually it will bring up correctly. It is generally stable once connected.
It doesn't seem to be on the OS side,I've experienced this on different linux distributions/kernels. I've tried the same software on multiple boards with multiple usb cables, they all exhibit this issue. Is this a known issue with the generated driver, with a known solution? Any suggestions?
[ 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?
thank you
Hi Michael,
Have you read the description in this page:
https://processors.wiki.ti.com/index.php/HALCoGen_USB_Device_-_driver_%26_CDC_Class
Hi QJ,
That link is no longer active. Were you referring to the same content as this link? https://software-dl.ti.com/hercules/hercules_docs/latest/hercules/How_to_Guides/HowToGuides.html#hercules-usb-device-driver-and-cdc-class
I have read that page. It was referenced to get the functionality I currently have.
:edit: I found it on the wayback machine. https://web.archive.org/web/20200614224044/https://processors.wiki.ti.com/index.php/HALCoGen_USB_Device_-_driver_%26_CDC_Class
Yes I did as instructed in that page.