Other Parts Discussed in Thread: HALCOGEN
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