cancel
Showing results for 
Search instead for 
Did you mean: 

When I use STM32CunbeMX to generate external interrupt about GPIO, I cannot trigger the interrupt.

pwang.2
Associate

The chip I am using is the stm32H743IIT series. I want to detect the frequency of a signal through GPIOD1, but the external trigger cannot be performed normally. The configuration code is as follows

  GPIO_InitTypeDef GPIO_InitStruct = {0};

  __HAL_RCC_GPIOD_CLK_ENABLE();

   GPIO_InitStruct.Pin = GPIO_PIN_1;

   GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;

   GPIO_InitStruct.Pull = GPIO_NOPULL;

   GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;

   HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);

   HAL_NVIC_SetPriority(EXTI1_IRQn,2,1);      

   HAL_NVIC_EnableIRQ(EXTI1_IRQn);

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hi @pwang.2​ 

Can you please provide more information about the issue and if it possible your cubeMx file

Ghofrane