cancel
Showing results for 
Search instead for 
Did you mean: 

[BUG] STM32CubeF4 HAL_GPIO_DeInit()

Posted on January 27, 2017 at 17:13

Hi,

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.
1 REPLY 1
Khouloud GARSI
Lead II
Posted on January 27, 2017 at 17:43

Hello

Laureano_Carneiro_Ca

,

Your feedback is shared

internally

for further review. We will keep you posted about the taken actions/explanation if needed.

Thank you for your contribution and we apologize for the

inconvenience this may cause.

Khouloud.