cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt problem

Manikandan K
Associate III

Without Interrupt signal STM32F207 print continuously.How to avoid it...

void EXTI9_5_IRQHandler(void)

{

 /* USER CODE BEGIN EXTI9_5_IRQn 0 */

 /* USER CODE END EXTI9_5_IRQn 0 */

   printf("\n\rInterrupt Occur\n\r");

 /* USER CODE BEGIN EXTI9_5_IRQn 1 */

 /* USER CODE END EXTI9_5_IRQn 1 */

}

2 REPLIES 2

>> print continuously.How to avoid it...

Try clearing the interrupt source...

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

void EXTI9_5_IRQHandler(void)

{

 /* USER CODE BEGIN EXTI9_5_IRQn 0 */

 /* USER CODE END EXTI9_5_IRQn 0 */

 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_6);

 /* USER CODE BEGIN EXTI9_5_IRQn 1 */

 /* USER CODE END EXTI9_5_IRQn 1 */

}

==========================================================================

void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)

{

 /* EXTI line interrupt detected */

 if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET)

 {

   __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);

   HAL_GPIO_EXTI_Callback(GPIO_Pin);

 }

}

===========================================================================

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {

   if (GPIO_Pin == INTERRUPT_Pin) {

      printf("\n\rInterrupt Occur\n\r");

   }

}

When I use this code ,and I just placed the jumper in interrupt pin, the Interrupt get occur without any input signal.Even though I set low priority