This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB soft disconnect

Hi all,

I am working with STM32F4xx. I want to re-initialize my USB device during the application is running. The problem is that PC doesn't recognize that USB device has changed its configuration. But when I unplug the USB and then I plug-in again everything is fine. Can I do this somehow by firmware?

I tried to set the MCU pins (which are dedicated to USB OTG) to high impedance. Then PC should recognize single-ended-zero state but it didn't work. Maybe when once the MCU pins are defined for USB OTG use I cannot modify them by GPIO commands?
Thanks for ideas.

Jan