AnsweredAssumed Answered

USB HS CDC_Receive_HS funtion

Question asked by Vitor Pereira on Nov 29, 2017
Latest reply on Nov 30, 2017 by Vitor Pereira

Hi, I'm trying to make a little project just to send an echo of what is received over USB. I have been able to do it, but there   s something I couldn't do yet.

My code in the USB callback function is as shown below:



The problem is really simple to describe: when CDC_Receive_HS is called, it only transmits ONE message, and I just can't figure out what is wrong. The code above only sends "Echo:" to the terminal on PC. When I only send the data received (CDC_Transmit_HS(Buf, *Len)) it only sends it, even if I try to send it again immediately after.



Thanks in advance


Vítor Pereira