cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset or re-enumerate USB host CDC devices safely?

Param sivan
Associate II

Hi,

STM32F4,0693W0000059Y7sQAE.png 

Which is the safe and good method to reset the connected USB device as CDC host mode?

I am communicating with a USB sensor with my device as CDC device.At end of my process, I wants to reset the connected sensor.

So I have tried to call USBH_ReEnumerate(&hUsbHostFS);. But sometimes the firmware hangs while calling this function. I have attached the debugger window screenshot. The firmware hangs around "USB_ReadInterrupts" function. This is also happen when remove the sensor from the device. Please advice me. Thank you.

Param.

2 REPLIES 2

I don't think this is in software.

Isn't some power switching or ground disconnect involved?

JW

Thanks. Actually I am communicating with a CP210x IC(Custom driver). I am facing this problem sometime while closing the port.