Interrupt configuration STM32F7

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
prashanth206
Posts: 5
Joined: Sun Dec 09, 2018 7:20 pm

Interrupt configuration STM32F7

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Interrupt configuration STM32F7

Post 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
Post Reply