Skip to main content
jdama
Visitor II
June 6, 2019
Question

STM32f302R8 NUCLEO64 EXTI interrupts firing multiple times

  • June 6, 2019
  • 1 reply
  • 1092 views

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.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 6, 2019
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..