好像要if ((ehciState->registerBase->OTGSC & USBHS_OTGSC_BSVIS_MASK) != 0U)置位了才能发出通知。
这个位我看规格书是:
BSVIS
B Session Valid Interrupt Status - Read/Write to Clear.
This bit is set when VBus has either risen above or fallen below the B session valid threshold.
Software must write a one to clear this bit.
是不是你的USB_OTG1_VBUS是固定在5V的。