Interrupt configuration STM32F7

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

Moderators: barthess, RoccoMarco

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

Interrupt configuration STM32F7

Postby prashanth206 » Wed Feb 12, 2020 3:06 pm

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: 13086
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 759 times
Been thanked: 638 times
Contact:

Re: Interrupt configuration STM32F7

Postby Giovanni » Wed Feb 12, 2020 3:19 pm

/* 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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 6 guests