2025-07-22 6:12 AM
I am recently working on USB CDC in STM32F407 and i have the following doubts:
2025-07-22 1:12 PM - edited 2025-07-22 1:13 PM
1) The peripheral will do the chunking. Send it as much as you want. The operation needs to be complete before you call CDC_Transmit_FS again.
2) N/A
3) No. You get called on every packet received. Each packet will be up to 64 bytes. Shove it into a buffer if that's what you need. After you return from CDC_Receive_FS, the data is stale and effectively lost.
4) See previous answers.