Page 1 of 1

Interrupt configuration STM32F7

Posted: Wed Feb 12, 2020 3:06 pm
by prashanth206
Hey all,

I was trying to enable second GPIO pin as interrupt using,

palEnablePadEvent(GPIOD, 4U, PAL_EVENT_MODE_BOTH_EDGES);
I am getting an assert in below at _pal_lld_enablepadevent can someone explain why it happens
Im using STM32F767VIT6.

/* Multiple channel setting of the same channel not allowed, first disable
it. This is done because on STM32 the same channel cannot be mapped on
multiple ports.*/
osalDbgAssert(((EXTI->RTSR1 & padmask) == 0U) &&
((EXTI->FTSR1 & padmask) == 0U), "channel already in use");

I am also looking for general recommendation on using Interrupts.

Best regards,
Guru Prashanth Sridhar

Re: Interrupt configuration STM32F7

Posted: Wed Feb 12, 2020 3:19 pm
by Giovanni
/* Multiple channel setting of the same channel not allowed, first disable
it. This is done because on STM32 the same channel cannot be mapped on
multiple ports
.*/

This, if you need details it is explained in the STM32 reference manual, in the EXTI section.

Example, you cannot use as EXTI pin4 of two different ports.

Giovanni