AnsweredAssumed Answered

Problem when using VBUS_SENSING_ENABLED

Question asked by G.Raghavendra on May 18, 2015
Hi,

I am using the evaluation board "MCBSTM32F400" available from keil and the USB library "STM32_USB-Host-Device_Lib_V2.1" available from st.com.

In the "STM32_USB-Host-Device_Lib_V2.1" library, there is a #define by name "VBUS_SENSING_ENABLED" in the file usb_conf.h.

I am using this board with the external power supply and as the HID mouse as supported by the above specified USB library.

I am not facing any problem when VBUS_SENSING_ENABLED #define is disable / commented.

But when this #define is not commented or being in use, then whenever the usb is disconnected from the host, the software is getting hung.

Can anyone help me in this regard?

Outcomes