Skip to main content
pwang.2
Visitor II
August 4, 2022
Question

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

  • August 4, 2022
  • 1 reply
  • 650 views

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);

This topic has been closed for replies.

1 reply

Ghofrane GSOURI
Technical Moderator
August 24, 2022

Hi @pwang.2​ 

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

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.