USB 4.0.3 CDC HOST doesn't receive data

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

USB 4.0.3 CDC HOST doesn't receive data

ソリューションへジャンプ
1,364件の閲覧回数
pedropol
Contributor II

I modified the example from "...\Freescale USB Stack v4.0.3\Source\Host\examples\cdc_serial\cw10\kinetis_l2k" to use it with openSDA on FRDM-KL25Z.

I can send data from Host to CDC device but not from Device to HOST. It doesn't works. Host doesn't receive nothing.

Function  _io_cdc_serial_read always return 0.

If I connect the device to a PC,  I can see in the hyperterminal the data sent, so the problem seems to be on the host.

I need change any specific register initialization code?

This example works correctly in TWRMKL25z ?

ラベル(1)
  • USB

タグ(4)
0 件の賞賛
返信
1 解決策
1,106件の閲覧回数
florintoma
NXP Employee
NXP Employee

In the usb_class_cdc_set_acm_ctrl_state() function, at lines 350 / 351 if_acm_ptr->ctrl_state.bmStates[1] should be changed with if_acm_ptr->ctrl_state.bmStates[0]. The problem was that the state was sent on the usb in big endian instead of little endian.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,107件の閲覧回数
florintoma
NXP Employee
NXP Employee

In the usb_class_cdc_set_acm_ctrl_state() function, at lines 350 / 351 if_acm_ptr->ctrl_state.bmStates[1] should be changed with if_acm_ptr->ctrl_state.bmStates[0]. The problem was that the state was sent on the usb in big endian instead of little endian.

0 件の賞賛
返信