stm32 and usb interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-02 6:03 AM
I have a problem with usb interface.
Every time that I restart the microcontroller, I must to unplug and replug the usb cable.Is there a way to reset the usb interface an startup?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-02 6:54 AM
Classic problem. Is USB_DP is pulled up to +5?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-02 9:19 AM
Using a multimeter I have 3.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-02 9:23 AM
Thing is, if it's pulled up in hardware you'll need to either power cycle the board or unplug the PC to get it reconnected.
Perhaps consider switching the USB_DP pullup with a GPIO-controlled transistor or FET to signal the need to reinit the USB link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-03 10:48 PM
I had a similar problem on the STM32F4 series as the DP is pulled up in hardware - on boot-up I set the USB pins as GPIOs and set them low, waited for 100msec and then started the USB Host or Device driver up again which switches the pins to their alternate function for usb. This seemed to force the PC to see the device 'disappear'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-30 7:13 AM
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-30 9:38 AM
