AnsweredAssumed Answered

[BUG] STM32CubeF4 HAL_GPIO_DeInit()

Question asked by Laureg on Jan 27, 2017
Latest reply on Jan 27, 2017 by Khouloud G



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..


I added

EXTI->IMR &= ~((uint32_t)Pin);
right after my DeInit() call to correct it in my application, but a fix in HAL lib is needed.