Skip to main content
Associate III
March 26, 2026
Question

EXTI in STM32MP257F in cubeMX and configuring NVIC.

  • March 26, 2026
  • 1 reply
  • 235 views

Dear all, 
I was trying to setup the NVIC for EXTI for certain pins on STM32MP257F over CubeMX. However the nomenclature in CubeMX confuses me a lot. As I know there are two EXTIs: EXTI1 and EXTI2 which completely changes when we look into NVIC there it shows EXTI and EXTI1. Now the confusion is if EXTI is EXTI1 or 2 and so on.

Thanking you all.

EXTI.pngEXTI_RIF.png

with regards

Amit

 
 

1 reply

PatrickF
Technical Moderator
March 27, 2026

Hi @Amit_RS 

Agree CubeMx is not clear enough.

Looking at RM0547 Section "31 Interrupt list" will help you.

 

Regards.

In order 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.NEW ! Sidekick STM32 AI agent, see here
Amit_RSAuthor
Associate III
March 27, 2026

Hi @PatrickF ,

I looked through the reference manual, however it doesn't mention why assigning GPIOs to EXTI open up two EXTI instances i.e EXTI and EXTI1. Also I couldn't find information on what is the difference between them. If you see my first image there you can clearly see EXTI line 7 interrupt and EXTI1 line 7 interrupt. So it completely confuses me as RM never mentions it.

 

regards
Amit

PatrickF
Technical Moderator
March 27, 2026

Agreed, it is confusing. I could guess 'EXTI' is EXTI2.
I confirm you could assign a GPIO to either EXTI1 or EXTI2 (or both, but useless).
Maybe looking at generated code could help to clarify.

Screenshot 2026-03-27 091355.png
Screenshot 2026-03-27 091432.png

Screenshot 2026-03-27 091451.png

In order 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.NEW ! Sidekick STM32 AI agent, see here