cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC flushing TX buffer

Mohammad A
Senior
Posted on September 18, 2017 at 15:52

A brief introduction to this problem:

STM32F7 is configured for USB Device FS. USB interface is used to transmit a large array of data from MCU to computer. If, by any chance user closes the Virtual Com Port of MCU, next time user opens com port, MCU will send remains of the data it was transmitting to computer, creating a lot of troubles.

I want to flush TX buffer of USB Device mode or abort transmition progress whenever VCP is opened/closed in the computer.

#cdc #stm32 #hal #usb #vcp
0 REPLIES 0