HAL_PCD_ConnectCallback() is not called on USB connection
Hi,
I'm trying to capture a USB connection / disconnection event in STM32F722RE. The interrupt HAL_PCD_IRQHandler() is called when I connect / disconnect the device to the PC, but the flags USB_OTG_GINTSTS_SRQINT and USB_OTG_GINTSTS_OTGINT are never set, so the callbacks HAL_PCD_ConnectCallback() and HAL_PCD_DisconnectCallback() are never called.
What should be done in order to set the appropriate flags?
Thanks!
