Question
Mysterious delay in USB_SetCurrentMode in F7 USB LL driver
Posted on December 06, 2017 at 22:11
Hello,
The title says it all. There's a a mysterious delay in USB_SetCurrentMode in F7 USB LL driver (stm32f7xx_ll_usb.c V1.2.2):

Does any one know the origin/need of this delay? There's no comment (or time units) about this. It was causing the USB device to timeout on descriptors initialization when the MCU boots up while USB is already plugged in. I removed the delay and everything seems to work fine on my PC. However, I want to make sure it's not required for some systems/hosts?
Thanks
#usb-device #stm32-f7 #f7 #delay #timeout