EVK-MIMXRT1060 USB CDC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

EVK-MIMXRT1060 USB CDC

1,290 次查看
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,164 次查看
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,164 次查看
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 项奖励
回复