简体   繁体   中英

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM