USB CDC Virtaul COM between host and device failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB CDC Virtaul COM between host and device failed

1,082件の閲覧回数
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

ラベル(1)
0 件の賞賛
3 返答(返信)

558件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

558件の閲覧回数
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 件の賞賛

558件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi,

Thanks for sharing your solution,

Regards

Sol

0 件の賞賛