1 year, 8 months ago.

Interrupts help

Hi guys,

can somebody please help me work out with these NVIC "settings" for external interrupts in mbed online compiler for NUCLEO-F767ZI? So I'd like to have 50 input interrupts. I thought that I can configure them simple by using mbed function

InterruptIn in[]={ names...}   

and it works UNTIL I use more than 5 Interrupt pins. When I use 6, then 1 won't work, when I use 7, then 2 won't work, and so on... A think thad thad might be MBED online compilers bug. I think that the only way to configure 50 interrupts on input pins is by using NVIC or is there any other way? I know that STM32F7 doesn't have 50 external interrupt handlers - the pins are grouped together by same pin numbers, but that doesn't even bother me. I just need to have at least one interrupt handler for all 50 pins.

Best regards, Ales Zupanc

Comment on this question

1 Answer

1 year, 8 months ago.

You can not use EXTI on all pins at the same time. See this question:

And check STM32F7xx datasheet on page 26:

Hm... So How can I configure all those pins as interrupt pins? PA_0, PC_15, PA_1, PC_14, PA_4, PH_1, PB_0, PC_1, PC_2, PC_0, PC_3, PD_3, PD_4, PG_2, PD_5, PG_3, PD_6, PE_2, PD_7, PE_4, PE_3, PE_5, PF_2, PF_1, PF_8, PF_0, PF_9, PD_1, PD_0, PG_1, PG_0, PE_1, PG_9, PG_15, PG_12, PG_10, PG_13, PD_9, PG_11

posted by Ales Zupanc 04 Sep 2017

You can't. Have you read my answer on the other question? Have you read the MCU's reference manual? There are 16 + 8 EXTI lines in an F7. GPIOs are grouped to EXTI channels, so you can not set same IO of multiple ports. (Example: PA_0 and PB_0 could not be interrupt in at the same time.) See figure 30 (292p) in the reference manual here:

posted by Mark Peter Vargha 05 Sep 2017

To post an answer, please log in.