USB CDC VCOM User defined device example consecutive RX fail

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

USB CDC VCOM User defined device example consecutive RX fail

Jump to solution
1,911 Views
akspurr
Contributor II

Hello,

Recently I worked through your very useful user defined device class application note, based on the cdc_vcom example: https://www.nxp.com/docs/en/application-note/AN14169.pdf


The code is functioning as I would expect, except for when I modify the AppTask to receive multiple packets prior to sending a response back to the host.


It seems that the USB stack forces a Send for every Recv, something which other users have noted (e.g https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ESC-character-in-virtual-com-port-example/m-p/11...).

Is there a way to modify the stack to allow for multiple consecutive Recv?

Thanks,

Alex 

Labels (1)
0 Kudos
Reply
1 Solution
1,891 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @akspurr,

Unfortunately, the stack is designed to do a send after every receive by design, so no modifications should be made to the USB stack to prevent this behavior.

BR,
Edwin.

View solution in original post

0 Kudos
Reply
2 Replies
1,892 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @akspurr,

Unfortunately, the stack is designed to do a send after every receive by design, so no modifications should be made to the USB stack to prevent this behavior.

BR,
Edwin.

0 Kudos
Reply
1,876 Views
akspurr
Contributor II

Hi @EdwinHz,

Ah, I see, in that case I'll keep a workaround in place.

Thanks for the fast reply, you've saved me a lot of debugging time!.

Cheers,

Alex 

0 Kudos
Reply