Does anyone know how I can detect if my USB device is connected to a Host or not?
Thx Steven
Great, thanks for detailed explanation I hope somebody having same issue in future will value this :-)
So with mentioned hardware changes + adding definition USBD_VBUS_DETECT=1 for driver solves problem of connect/disconnect detection.