Skip to main content
Param sivan
Associate III
October 28, 2020
Question

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

  • October 28, 2020
  • 2 replies
  • 2045 views

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.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
October 28, 2020

I don't think this is in software.

Isn't some power switching or ground disconnect involved?

JW

Param sivan
Associate III
November 12, 2020

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