EVK-MIMXRT1060 USB CDC

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

EVK-MIMXRT1060 USB CDC

569 Views
johannzimmerman
Contributor II
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.
Tags (1)
0 Kudos
2 Replies

443 Views
johannzimmerman
Contributor II

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 Kudos

443 Views
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 Kudos