The USB-Device State on a STM32F7508-DK Self powered USB-Device doesn't work.
I use a STM32F7508-DK as a USB-Device only as MSC with an SDCard.
The Board is self powered.
STM says to use VBUS sensing on self powered Devices. But with VBUS sensing enabled, the USB connection isn't registered and the USB connection doesn't work at all.
Without VBUS sensing, the USB-Device connects and gets in to configured State. Data from the SDCard can be seen on PC and copied etc.
But after disconnecting the hUsbDeviceFS.dev_state shortly turns to suspended State but immediately turns back to Configured State.
The USB Suspended State Register
((USB_OTG_DeviceTypeDef *) (USB_OTG_FS_PERIPH_BASE+USB_OTG_DEVICE_BASE))->DSTS
does not get set to 1
How do i ge the VBUS sensing working on the STM32F7508-DK?
THX for helping!
