Hello, I am trying to use the USB middleware from Keil. But I have the problem that the transmission stopps after some values.
I send an ASCII code from the host to my device ( STM32F769I-Eval). After this request, the device sends 2048 float values. But after after 85 values the transmission stops.
for(int k = 0; k<2048; k++) { sprintf((char*)outString,"%i\t%f\n", k, values[k]); USBD_CDC_ACM_WriteData(0U,outString,strlen((char*)outString)); }
This is the code what I use for the transmission. Are in the middleware any function which limits the numbers I can send after a request from the host? Or how can I solve my problem?
Kind Regards Alex
Ok the transmission stops after 1024 char. So it depends on the size of the maximum communication device send buffer size.
The thing is, that I expected, the device sends one string after another. So each time I call the USBD_CDC_ACM_WriteData.
But now it looks like, that this function collects all the data and sends it when the buffer is full. But why?