cancel
Showing results for 
Search instead for 
Did you mean: 

Can USB CDC receive more than 256 bytes of data from the host?

No_Name
Associate III

Hi everyone.

I'm trying to send more than 256 bytes of data from the host to the STM32 using USB CDC VCP, and I don't know why VCP won't accept more than 64 bytes of data. My project is already halfway done. If I switch to the USB bulk method, do I have to replace the USB CDC library and rewrite all the code from scratch? And do I have to create my own library to replace USB CDC?

I'm using an STM32F407VET6.

I appreciate all your answers.
Thank you:).

1 REPLY 1
gbm
Principal

CDC data is sent in 64-byte packets. You may send any amount of data but it will be received as multiple 64-byte packets. Bigger packets are possible with High-Speed USB but it rarely matters for CDC VCP. CDC already uses Bulk transfer.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice