cancel
Showing results for 
Search instead for 
Did you mean: 

EXTI in STM32MP257F in cubeMX and configuring NVIC.

Amit_RS
Associate III

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

 
 
4 REPLIES 4
PatrickF
ST Employee

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.
Tip of the day: Try Sidekick STM32 AI agent, see here

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

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.
Tip of the day: Try Sidekick STM32 AI agent, see here

Yeah looking at generated code could may help. But I don't think if that it could be assigned to both 1 and 2 or it confuses because if it is so why the RIF assigns CID2 to EXTI1 only even if I haven't enabled the NVIC in any of them as in my picture. Please look into line 0, 7, and 8 in my attached pictures of RIF for EXTI 1 and EXTI 2.

 

EXT1.pngEXTI2.png