2020-10-27 10:59 PM
Hi,
STM32F4,
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.
2020-10-28 12:19 AM
I don't think this is in software.
Isn't some power switching or ground disconnect involved?
JW
2020-11-12 02:57 AM
Thanks. Actually I am communicating with a CP210x IC(Custom driver). I am facing this problem sometime while closing the port.