cancel
Showing results for 
Search instead for 
Did you mean: 

Received Data length is wrong in usb Communication

Sarathk3k
Visitor

"static uint8_t USBD_CDC_DataOut(USBD_HandleTypeDef *pdev, uint8_t epnum)"

In stm32u575 controller and in this function while I am calling

"uint32_t receivedLength = USBD_LL_GetRxDataSize(pdev, epnum);" it gives me 1 insted of 6 or 5 bytes I am reciving so that I could not get entire data

 

1 REPLY 1
TDK
Guru

Probably the data is being split up into several packets. What program is sending the data?

If you feel a post has answered your question, please click "Accept as Solution".