BIG BUG - CubeMX, STM32L476 and USB OTG Device Only and HAL_GPIO_EXTI_Callback
STM32L476 with STM32Cube_FW_L4_V1.12.0. Configuring for Device only OTG, CubeMX ALWAYS generates HAL_GPIO_EXTI_Callback in usbd_conf.c for VBUSDetect. This HAL_GPIO_EXTI_Callback generated code does not have any USER CODE BEGIN... USER CODE END construct. This means that this generated code HOGS the HAL_GPIO_EXTI_Callback and does not permit any other EXTI actions to be stably implemented within the callback.
RULE 1: It is not permissible for a single generated peripheral pin function (such as HAL_GPIO_EXTI_Callback) in a way that additional normal usage of that function is blocked in a way that you cannot add the other usages of the function in a stable manner.
