cancel
Showing results for 
Search instead for 
Did you mean: 

USB Virtual COM port problem on STM32F4

luca2399
Associate II
Posted on May 06, 2015 at 12:06

Hi at all,

I'm using a STM32F4 (with HAL libraries) and I have configured the USB as device in order to realize a communication wit the PC through the virtual COM port.

When I send the first packed (from PC to MCU) I have no problem. STM32F4 receives packed and sends the response.

But when I send second one MCU doesn't receives nothing (OTG_FS_IRQHandler is not activated).

Somebody can help me?

Thank you very much 

#stm32f4-usb-virtual-com-port
3 REPLIES 3
infor
Associate III
Posted on May 07, 2015 at 11:21

Hi lucaV,

at start I've had similar problems with CDC.

Look in the forum for USB CDC, there is a thread that discusses the subject rather well.

milan2
Associate II
Posted on May 29, 2015 at 17:38

I have the same problem with STM32F4, STM32F373 and STM32F072

rshams9
Associate II
Posted on May 29, 2015 at 22:17

place a 

USBD_CDC_ReceivePacket(hUsbDevice_0);

after reading receive buffer.