2025-07-29 10:30 PM
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!
2025-07-30 12:09 AM
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
2025-07-30 12:20 AM
Hi @KnarfB ,
Just to confirm — it's okay to enable and use all these EXTI lines at once, right?
2025-07-30 12:31 AM - edited 2025-07-30 12:53 AM
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