2025-11-07 8:40 PM
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:).
2025-11-07 10:54 PM - edited 2025-11-07 10:54 PM
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.