just reporting another issue with the HAL lib 1.14 for STM32F4
When you first init a GPIO as EXTI and then deinit it with the HAL_GPIO_DeInit() function it will not mask the pin int source.. although it is mentioned in the DeInit function, apparently has no effect.
With this, you still getting pin interrupts from this pin evem if this is reinitialized as GPIO_input..
EXTI->IMR &= ~((uint32_t)Pin);
right after my DeInit() call to correct it in my application, but a fix in HAL lib is needed.