USB CDC Virtaul COM between host and device failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB CDC Virtaul COM between host and device failed

1,360 Views
huishao2
Contributor IV

Hi -

I have a USB host of k20d76m running MQX3.8 and a USB CDC device of k20d50m running MQX4.1. The USB CDC device has no problem talking to a host PC via hyper terminal but there is no communication happens when connecting to the host. That means, when host sends bytes to device, it reads nothing back from the  device. The enumeration is done successfully in this case. But data communication failed, anyone has insights or comments on it?

I traced into USB host source, noticed that when usb_class_cdc_in_data_callback() of usb_host_cdc.c is called, the status is 0x97 which means USBERR_TR_FAILED.

Thanks!

Hui

Labels (1)
0 Kudos
Reply
3 Replies

836 Views
soledad
NXP Employee
NXP Employee

Hi,

Could you please check the below link???

USB CDC Virtual Com Example


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

836 Views
huishao2
Contributor IV

Hi Sol

Thanks for your help. I think I have worked around the issue that was caused by fact that my CDC device bootup time was longer than my CDC host. The workaround was to delay the Reset Bus Condition to cater for slower CDC device.

Hui

0 Kudos
Reply

836 Views
soledad
NXP Employee
NXP Employee

Hi,

Thanks for sharing your solution,

Regards

Sol

0 Kudos
Reply