Skip to main content
Associate III
July 30, 2025
Question

Configuring Multiple GPIO Interrupts (EXTI0–EXTI10) on STM32G491RE

  • July 30, 2025
  • 1 reply
  • 383 views

Hi,

I'm working on an STM32G491RE-based project where we need to configure 10 GPIO input pins as external interrupts. Each of these pins is on a different port and mapped to a unique EXTI line (EXTI0 to EXTI10), so there’s no conflict in EXTI line usage.

Due to current hardware limitations, we're unable to physically test all these pins simultaneously. However, I’d like to know: is it valid and supported to configure and enable all 10 EXTI lines in the firmware?

Thanks in advance!

1 reply

KnarfB
Super User
July 30, 2025

Should work, why are you sceptical?

You can set the pins temporarily to output mode and test EXTI in firmware by writing appropriate levels to the GPIOs, if that is feasible for your board.

hth

KnarfB

Associate III
July 30, 2025

Hi @KnarfB ,
Just to confirm — it's okay to enable and use all these EXTI lines at once, right?

KnarfB
Super User
July 30, 2025

I see no reason why this could fail.

Of course, the MCU cannot handle all interrupts "at once" in firmware. Take care of interrupt priorities, latencies etc. if you expect concurrent interrupts with higher frequencies.

hth

KnarfB