打印

在串口试验编程时候,程序出现在bsp.o和stm32f10x_it.o重复定义

[复制链接]
403|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol Usart_SendString multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol GPIO_USART1_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol NVIC_Configuration multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART1_Config multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol USART_Interrupts_Configuration multiply defined (by uart_bsp.o and stm32f10x_it.o).
.\Objects\UART-F103.axf: Error: L6200E: Symbol Usart_SendByte multiply defined (by uart_bsp.o and stm32f10x_it.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 7 error messages.
".\Objects\UART-F103.axf" - 7 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:09

然后我再bsp.c文件中的程序加上static 就好了 但是还没有验证能不能实现试验现象。
为什么会出现这种原因啊?stm32f10x_it.c中 我啥都没写还报错??
求大腿抱!!!

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

457

主题

483

帖子

1

粉丝