pepeb333 pepeb333 - 1 month ago 13
C Question

STM32 interrupt handler multiply defined

I want to use interrupt handlers

void EXTI3_IRQHandler(void)
{
//body
}


but when I build the project, I get the following error:


Symbol
EXTI3_IRQHandler
multiply defined (by stm32f10x_it.o and
main.o)


I have included library stm32f10x_exti.h

Answer

Handler void EXTI3_IRQHandler(void) already defined in file stm32f10x_it.c. You can replace code of your handler from main.c to this special file or comment blank handler in stm32f10x_it.c.