cancel
Showing results for 
Search instead for 
Did you mean: 

Can I get the CDC_Receive_FS () to read data character-by-character instead of the receiving the entire packet?

Jansunil
Associate II

I am trying to transmit/receive data via Virtual COM port in the STM32L5xx using the USB CDC libraries. I understand that the entry to the CDC_Receive_FS() would give me an entire packet of data that I enter on the serial terminal.

I would like to know if there is a way to just read a single character upon entry to the CDC_Receive_FS() and read the data in successive callbacks?

Any leads on this would be really of help.

Thanks,

Janani

1 REPLY 1
gbm
Lead III

No. Receive does not receive; it enables the packet reception, and the packet may be anything from 0 to endpoint size (usually = 64) bytes.

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