AnsweredAssumed Answered

STM32F4Discovery and USB VCP

Question asked by de_vos.pierre.001 on Jan 17, 2015
Latest reply on Jan 22, 2015 by bauch.aaron.001
I'm trying to get the USB device virtual comport going.  I created a project with STM32Cube choosing

Peripherals:
USB_OTG_FS Device_Only

MiddleWares:
USB_DEVICE Communication Device Class (Virtual Port Com)

Using Atollic TrueStudio I can build and burn.

The problem I'm having is when I hardware reset the board the call to MX_USB_DEVICE_Init hangs and the host does not detect the virtual com port.  However after I burn with st-link all is well and the port is detected.  It thus seems that a hardware reset, pressing the reset button or plugging the mini usb, causes the call to MX_USB_DEVICE_Init to freeze the cpu, but when burning with st-link which resets the cpu all is well.

Any ideas why this is happening?

Regards
Pierre

Outcomes