cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f302R8 NUCLEO64 EXTI interrupts firing multiple times

jdama
Associate

Hello, I'm developing an application for the STM32F302R8 using the STM32IDE.

What is happening that any pin I choose as external interrupt EXTI, when the pulse that is free from bouncing (I checked with the oscilloscope) the EXTI handler is called several times and always randomly, I am using the default settings of the IDE , and i use the HAL_GPIO_EXTI_CALLBACK function as the interrupt calls. this is my code:

/* USER CODE BEGIN 4 */
/**
  * @brief EXTI line detection callbacks
  * @param GPIO_Pin: Specifies the pins connected EXTI line
  * @retval None
  */
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
  if(GPIO_Pin == GPIO_PIN_0)
  {
    count++ ;
  } 
}
/* USER CODE END 4 */

can anybody help me . thank you.

1 REPLY 1

Related? https://community.st.com/s/question/0D50X0000Avee6rSQA/interrupt-fires-multiple-times-on-exti95

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..