hUsbDeviceHS.dev_state not working properly on my custom board !!!
I'm using usb vcp for my project on STM32F407VET6.
I had a XCORE407i board with a STM32F407IGt6 and when I connected it's HS usb to the PC, the "hUsbDeviceHS.dev_state" was changed to "USBD_STATE_CONFIGURED" and after disconnecting the cable, the state was changed to "USBD_STATE_SUSPENDED".
but now I designed my own board and the problem is most of the time, the STM32F407VET6 can't find out the disconnection of the USB and the state is stock on "USBD_STATE_CONFIGURED".
I checked my schematic with the XCORE407i and the only difference is the mic2075 ic that i don't use because my device is only a device on the bus. can somebody help me with this?
I don't know if it is a hardware problem or i have done something wrong !


