2017-05-02 06: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?2017-05-02 06:54 AM
Classic problem. Is USB_DP is pulled up to +5?
2017-05-02 09:19 AM
Using a multimeter I have 3.3
2017-05-02 09: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.
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'.
2017-05-30 07:13 AM
Many thanks.
2017-05-30 09:38 AM