EVK-MIMXRT1060 USB CDC

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

EVK-MIMXRT1060 USB CDC

1,210件の閲覧回数
johannzimmerman
Contributor III
Hello everybody,
Have the SDK 2.5.0 for EVK-MIMXRT1060 USB CDC put into operation.
The demo projects only work if somebody sends something back (which is also the case in the demo CDC echo).
If you comment out the echo response, the USB CDC stack will no longer receive a message. I have to build a command interpreter that only sends a response to certain commands. Fail at the moment. Please help.
タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,084件の閲覧回数
johannzimmerman
Contributor III

Have found this place!

"Schedule buffer for receive".

It seems that after each received USB message the function "USB_DeviceCdcAcmRecv" mus be called.

Then the whole thing works ...

Is that right, can someone confirm that?

0 件の賞賛
返信

1,084件の閲覧回数
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Johann Zimmermann

Sorry for the late response. Regarding your question, Yes, you have to call "USB_DeviceCdcAcmRecv" to schedule the buffer to receive data, so next time that the USB HOST send something to the USB DEVICE, the device will be prepared for this data.

You normally change this in the callback of the CDC events, but it is also called one time in the setup of the device, so it is application depended to place those APIs.


Have a great day,
TIC

-------------------------------------------------------------------------------
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------

0 件の賞賛
返信